# Send a test webhook event

> POST /v1/webhooks/{id}/test sends one signed `webhook.test` event to an endpoint now and reports what the endpoint answered: parameters, examples and errors.

Source: https://esigncomply.com/docs/api/account/send-a-test-webhook-event

Last updated November 26, 2026

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](https://esigncomply.com/docs/api.md#authentication).

## Request example

### cURL

```bash
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](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with a WebhookTest object.

```json
{
  "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:

```http
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
```

```json
{
  "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`](https://esigncomply.com/docs/api/errors.md#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`](https://esigncomply.com/docs/api/errors.md#invalid_request), [`missing_api_key`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`domain_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`idempotency_conflict`](https://esigncomply.com/docs/api/errors.md#idempotency_conflict), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## 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 }.

## Related

- [Account](https://esigncomply.com/docs/api/account.md): the overview of the resource and all of its operations.
- [List webhook deliveries](https://esigncomply.com/docs/api/account/list-webhook-deliveries.md): `GET /v1/webhooks/deliveries`
- [Get usage](https://esigncomply.com/docs/api/account/get-usage.md): `GET /v1/usage`
- [Create a conformance run](https://esigncomply.com/docs/api/account/create-a-conformance-run.md): `POST /v1/conformance/runs`
- [List conformance runs](https://esigncomply.com/docs/api/account/list-conformance-runs.md): `GET /v1/conformance/runs`
- [Domains](https://esigncomply.com/docs/guides/domains.md)
- [Test mode](https://esigncomply.com/docs/guides/test-mode.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
