Skip to Content
Webhooks

Replay a terminal webhook delivery

Permissionwebhooks:updateRetriesIdempotency-Key requiredAuthentication
POST
/webhook-deliveries/{id}/replay

Creates a new pending delivery and leaves the source immutable. snapshot (default) reuses the prior payload with a new delivery_id/delivered_at/replayed_from_id; rebuild assembles current call results at dispatch time. Both modes use the webhook's current URL and current signing secret. Pending or running sources cannot be replayed.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
mode?string
Default"snapshot"
Value in"snapshot""rebuild"

Response Body

Replay was durably created. Queue dispatch occurs only after the database commit; poll Location after Retry-After.

application/json
  1. response
delivery_id*string
Formatuuid
replayed_from_id*string
Formatuuid
mode*WebhookReplayMode
Value in"snapshot""rebuild"
status*string
Example Request
curl -X POST 'https://api.kejue.co/v1/webhook-deliveries/497f6eca-6276-4993-bfeb-53cbbbba6f08/replay' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "delivery_id": "9892f438-d31c-4ff2-bc84-146525b292ff",  "replayed_from_id": "ce0acba0-683c-4663-90cb-4a127629e174",  "mode": "snapshot",  "status": "pending"}