Webhooks
Replay a terminal webhook delivery
POST
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.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
mode?stringDefault
"snapshot"Value in
"snapshot""rebuild"Replay was durably created. Queue dispatch occurs only after the database commit; poll Location after Retry-After.
application/json- response
delivery_id*stringFormat
uuidreplayed_from_id*stringFormat
uuidmode*WebhookReplayModeValue in
"snapshot""rebuild"status*stringcurl -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"}