Skip to navigation

Send a test delivery

Queues a webhookEndpoint.tested event for the endpoint and returns its pending delivery. The test is signed only with the current secret, even during a rotation, and makes one attempt without retries. Follow it in the endpoint’s deliveries filtered by its eventId, as in the Location header. A paused or deleted endpoint is refused. Where webhook sending is off, the request answers 503 and queues nothing.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

webhookEndpointIdstringRequiredformat: "uuid"
The webhook endpoint ID.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Request

No members. Send no body or an empty JSON object.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Locationstring

Path of the resource, relative to the API host, for example /api/v2/embeddedSessions/0b6f3c1e-5d2a-4c8e-9a71-3f4d2e1b6c90.

Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:

Response

The pending test delivery.
idstringformat: "uuid"
Delivery ID.
objectenum

Always webhookDelivery.

Allowed values:
livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

createdAtdatetime
When the delivery was created.
updatedAtdatetime
When the delivery last changed.
webhookEndpointIdstringformat: "uuid"
The endpoint the event was sent to.
eventIdstringformat: "uuid"

The event sent, and the webhook-id of every attempt.

triggerenum

EVENT for the event’s own delivery, REPLAY for a replay and TEST for a test delivery.

Allowed values:
statusenum

PENDING until an attempt succeeds (SUCCEEDED), the attempts or the delivery window run out (FAILED), or the delivery ends without sending (CANCELED).

Allowed values:
attemptCountinteger>=0

Every attempt made, including those no longer listed in attempts.

attemptslist of objects
The most recent attempts, newest first, at most 20.
statusReasonenumOptional

Why a FAILED or CANCELED delivery ended.

nextAttemptAtdatetimeOptional

When the next attempt is due. Present while PENDING and no attempt is running.

completedAtdatetimeOptional
When the delivery reached its final status.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error