Skip to content

DocuSign Connect webhooks: events, HMAC and best practices

DocuSign Connect sends webhooks as envelopes are sent, viewed, signed, completed, or declined. Capture them on a free webhooks.cc endpoint to see exactly what DocuSign sends, or fire realistic, correctly signed sample payloads at your own handler without touching a production account.

Start free:
or sign up with email

No credit card · 50 requests/day free · or get a guest URL without an account

Prefer a walkthrough? Read the local webhook testing guide.

DocuSign Connect webhook events

DocuSign Connect is DocuSign's webhook service. In the recommended JSON SIM format (Connect 2.0) every message carries an event string, a uri, retryCount, configurationId, apiVersion and generatedDateTime, and a data object holding accountId, envelopeId and whatever else the configuration subscribes to. These are the envelope and recipient events; the docs also list template, Workflow Builder, notary and other events.

EventWhen DocuSign sends it
envelope-createdAn envelope is created in the DocuSign UI or its status is set to created through the API (JSON SIM only)
envelope-sentThe email with the envelope link goes to at least one recipient, or it is a recipient's turn in embedded signing
envelope-deliveredAll recipients have opened the envelope on the DocuSign signing site (not an email delivery)
envelope-completedAll recipients have completed the envelope
envelope-declinedOne of the recipients declined the envelope
envelope-voidedThe sender voided the envelope or it expired; the void reason says which
envelope-resentThe envelope is resent in the UI or through the API (JSON SIM only)
envelope-correctedThe envelope is corrected in the UI or through the API (JSON SIM only)
envelope-reminder-sentThe automated reminders feature sends a reminder for the envelope (JSON SIM only)
envelope-discardA created or draft envelope is deleted or discarded (JSON SIM only)
envelope-deletedAn envelope that was already sent is deleted (JSON SIM only)
envelope-purgeThe envelope is queued to be purged (JSON SIM only)
envelope-removedDocuSign permanently deletes an envelope after its retention period (JSON SIM only)
recipient-sentThe recipient is emailed that it is their turn to sign
recipient-deliveredThe recipient has viewed the documents on the DocuSign signing site
recipient-completedThe recipient has completed their actions for the envelope, typically by signing
recipient-declinedThe recipient declines to sign
recipient-authenticationfailedThe recipient fails an authentication check, after every allowed attempt
recipient-autorespondedDocuSign is told that email delivery to the recipient failed, for example a bad address or an auto-reply
recipient-resentThe envelope is resent to a recipient (JSON SIM only)
recipient-reassignA recipient reassigns the envelope (JSON SIM only)
recipient-delegateA delegated signer is sent the envelope under a delegation rule (JSON SIM only)
recipient-finish-laterThe recipient selects Finish Later (JSON SIM only)

Source: DocuSign webhook event triggers.

DocuSign Connect HMAC signature

With Include HMAC Signature turned on for a Connect configuration, every message carries one signature header per HMAC key defined under Connect Keys. Header names are case-insensitive, so your framework may show them as x-docusign-signature-1.

DetailWhat DocuSign documents
HeadersX-DocuSign-Signature-1, X-DocuSign-Signature-2 and so on, one for each HMAC key on the account
AlgorithmHMAC with SHA-256, keyed with the HMAC secret key
Signed contentThe entire body of the POST request as bytes, line endings included
EncodingThe hash is Base64-encoded
Passing ruleA hash computed with one of your keys must exactly match its header; one match is enough, and with no match the message should not be trusted
ComparisonUse a constant-time comparison, as for any HMAC
When it failsRead the body with the right string encoding, and remove any double quote characters from the secret before computing

Source: DocuSign: How to validate an HMAC signature.

How to test DocuSign webhooks

  1. 1

    Create a webhook endpoint

    Sign in free with GitHub, Google, or email to create a persistent endpoint, or grab an instant guest URL at webhooks.cc without an account.

  2. 2

    Point DocuSign at your URL

    Paste the endpoint URL into DocuSign: DocuSign Admin → Integrations → Connect → Add Configuration.

  3. 3

    Inspect what arrives

    Each delivery appears live in the dashboard with method, headers, body, query parameters, and source IP.

  4. 4

    Forward to localhost or assert in CI

    Run whk tunnel <port> to forward webhooks to a local server, or use the TypeScript, Python or Go SDK to wait for and assert on deliveries in tests.

DocuSign webhook signature

Signature headerx-docusign-signature-1
AlgorithmHMAC-SHA256
Verification in webhooks.ccSupported: add your hmac secret and every request is checked automatically

Checking one request by hand? Paste its body and headers into the webhook signature checker, which has the DocuSign scheme built in and runs in your browser.

New to signature verification? Read the webhook signature verification guide.

Send sample DocuSign events

These DocuSign templates ship with realistic payloads and valid signature headers. Send them from the dashboard's Send button, the SDK, or your AI agent via MCP.

envelope-completedenvelope-declinedrecipient-completed
# Send a signed DocuSign sample with the SDK
await client.endpoints.sendTemplate( slug, {
  provider: "docusign",
  template: "envelope-completed",
  secret: "your-test-secret",
});

Test your DocuSign webhook handler in CI

sendTo signs each request the way DocuSign does, with your test secret from DOCUSIGN_WEBHOOK_SECRET, and posts it straight to your handler, so its signature check stays on. The second test proves the handler rejects a forged signature. Drop the file into a Vitest suite that runs against your app; for Jest, delete the first line, since Jest provides the same globals.

import { describe, expect, it } from "vitest";
import { WebhooksCC } from "@webhooks-cc/sdk";

// Runs against your app on localhost. WHK_API_KEY and DOCUSIGN_WEBHOOK_SECRET come from the env.
const client = new WebhooksCC({ apiKey: process.env.WHK_API_KEY! });
const url = "http://localhost:3000/api/webhooks/docusign";

const send = (secret: string) =>
  client.sendTo(url, {
    provider: "docusign",
    template: "envelope-completed",
    secret,
  });

describe("DocuSign webhook handler", () => {
  it("accepts a signed envelope-completed", async () => {
    const response = await send(process.env.DOCUSIGN_WEBHOOK_SECRET!);
    expect(response.status).toBeGreaterThanOrEqual(200);
    expect(response.status).toBeLessThan(300);
  });

  it("rejects a forged signature", async () => {
    const response = await send("not-the-real-secret");
    // A 4xx, not a crash: providers retry 5xx responses.
    expect(response.status).toBeGreaterThanOrEqual(400);
    expect(response.status).toBeLessThan(500);
  });
});

Let your coding agent write and run it: the webhooks.cc agent skill teaches Claude Code, Cursor, and Codex to test webhook handlers with signed payloads. More patterns in the SDK testing docs.

Everything in one place

  • Live dashboard: see deliveries the moment they arrive
  • Forward to localhost with whk tunnel
  • Replay any captured request to any URL
  • Mock responses with custom status, headers, and body
  • Forward to your servers, Slack or Discord
  • TypeScript, Python and Go SDKs for CI assertions
  • MCP server for AI coding agents

DocuSign webhook questions

More providers

Browse all 68 providers

Your DocuSign webhook URL is seconds away

Sign up free, create an endpoint, and point DocuSign at it.

or sign up with email

No credit card · or try without an account