Skip to navigation

Send a test event

Creates one webhook.test event for this endpoint only, whatever its events list, and one delivery for it. The delivery appears in listWebhookDeliveries and follows the normal retry schedule. Test attempts do not count toward the automatic disable. A disabled or disabled_failing endpoint is refused with conflict, reason endpoint_disabled. In a suspended workspace the answer is workspace_unavailable. A replay returns the original delivery as it was created. Idempotency fingerprint: method and path.

Authentication

AuthorizationBearer

Create and manage workspace-owned keys through the existing app session routes, outside this public API. Creator and manager identities are audit actors only. Key validity follows workspace policy, expiry and explicit revocation, independently of creator membership. Do not include a workspace-selection header.

Path parameters

endpoint_idstringRequired1-128 characters
Endpoint identity within the authenticated workspace.

Headers

Idempotency-KeystringRequired1-255 characters

Stable key per logical intent, 1–255 printable characters. Persist it before sending. Retry the same key/body after an uncertain result for 24 hours. A changed body conflicts. Beyond retention, reconcile the resource before retrying; this is not permanent deduplication. Current authorization is rechecked on replay. Evaluation order: authenticate and check current authorization; look up intent; replay its stored receipt before checking the current revision; only a new intent evaluates If-Match and executes. Fingerprint includes method, path, body and original If-Match. A changed request returns idempotency_key_reused. The server stores only a keyed (HMAC) fingerprint, and no error or response ever returns a fingerprint or hash of a request. In-flight intent returns 409 idempotency_in_progress with Retry-After; retry the same intent after reconciliation. Receipts describe that attempt, not current resource state. A replay returns the original status code and body, with the response header Idempotent-Replayed: true.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
Idempotent-ReplayedstringOptional

true when this response replays a stored Idempotency-Key result. The status and body equal the original, except that a secret is null and any query of a webhook endpoint url is masked as ?… (the stored record keeps no credential).

RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

The queued test delivery.
idstring<=128 characters

Opaque delivery identifier (prefix wdl_).

endpoint_idstring<=128 characters
event_idstring<=128 characters

The event id; equal to the webhook-id header of every attempt (prefix wevt_).

event_typestring
event_created_atdatetime
call_idstring or null<=128 characters

The call of a call event; null for webhook.test.

statestring

Projected state. Stored states are pending, delivering, retrying, succeeded, failed and cancelled. held is a pending or retrying delivery whose endpoint is disabled; it makes no attempt until the endpoint is enabled. failed means all 8 attempts of the current chain failed; resend is possible for 30 days. Open response vocabulary.

cancel_reasonstring or null

Why a cancelled delivery was cancelled; null for every other state.

chain_nointeger>=1

1 for the first delivery; each resend adds 1.

attempt_countinteger0-8
Finished attempts in the current chain, a lost attempt included.
max_attemptsinteger>=1
Attempts in one chain. 8 in this version.
last_attempt_atdatetime or null
last_status_codeinteger or null100-599

HTTP status of the last finished attempt; null when it got no status line.

last_error_classstring or null

Class of the last failed attempt; null after a success or before the first attempt. http_status: a status that is not 2xx (a 3xx included, because redirects are not followed). connection: among others, a status line and headers longer than 16 KiB. lost: the sender stopped during the attempt and the attempt was counted. The response body is never read, stored or returned.

next_attempt_atdatetime or null

When the next attempt is due, for pending and retrying deliveries only; null for every other state, held included.

created_atdatetime

Fan-out time. A resend does not change it.

updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error