Skip to content
DocsMenu

Send a test webhook event

View as Markdown

Open this page inChatGPTClaudeCursor

In the Esign Comply API, POST /v1/webhooks/{id}/test sends one signed webhook.test event to an endpoint now and reports what the endpoint answered. Use it to check your handler's signature verification before real events arrive. It takes a secret key with full_access permission.

POST /v1/webhooks/{id}/test · API version 2026-11-21

Authentication

Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under Authentication.

Request example

cURL

curl -X POST https://esigncomply.com/v1/webhooks/wh_G33e/test \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with ....

What it does

Sends one signed event of type webhook.test to the endpoint now and reports what it answered. Use it to check your signature verification before real events arrive. Handlers ignore event types they do not know and return 200.

delivered is true for a 2xx answer within 10 seconds. response_excerpt holds the first 300 characters of the response body, or the network error.

Parameters

Name In Type Required Description
id path string Yes ID of the webhook endpoint.

Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.

Response

200 OK with a WebhookTest object.

{
  "object": "webhook_test",
  "endpoint_id": "wh_G33e",
  "webhook_id": "whe_DtAG",
  "delivered": true,
  "response_status": 200,
  "response_excerpt": "{\"received\":true}"
}

Response fields

Field Type Description
object string
endpoint_id string
webhook_id string
delivered boolean
response_status integer
response_excerpt string

The event it sends

The endpoint of the example request received this delivery:

POST /webhooks/esigncomply
webhook-id: whe_DtAG
webhook-timestamp: 1795652287
webhook-signature: v1,a0+gxrXbzqsnekzEYG5ScbtXdmCdCj2zLzqYbTLyX+0=
content-type: application/json
user-agent: EsignComply-Webhooks/1.0
{
  "object": "event",
  "id": "whe_DtAG",
  "type": "webhook.test",
  "api_version": "2026-11-21",
  "livemode": false,
  "created_at": "2026-11-26T00:18:07.037Z",
  "data": {
    "message": "Test event from Esign Comply. Handlers ignore event types they do not know and return 200."
  }
}

Errors

Code HTTP When
not_found 404 No object with that ID exists in this domain and environment.

Like every call made with a secret key, it can also return invalid_request, missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, idempotency_conflict, region_mismatch, rate_limit_exceeded and internal_error.

Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.

Questions about POST /v1/webhooks/{id}/test

Which credential does POST /v1/webhooks/{id}/test need?

A secret key with full_access permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

Does POST /v1/webhooks/{id}/test work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

Does POST /v1/webhooks/{id}/test count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

Is POST /v1/webhooks/{id}/test idempotent?

Yes, with an Idempotency-Key header of up to 255 characters. A repeat with the same key and the same bytes in the body returns the original response, with the header Idempotent-Replayed: true. The same key with a different body answers 409 idempotency_conflict.

What is the rate limit for POST /v1/webhooks/{id}/test?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

Does the Node SDK have a method for POST /v1/webhooks/{id}/test?

No. Call it over HTTP, or with esc.request() in the esigncomply package, which sends the key and returns { data, error }.

Last updated · API version 2026-11-21