Skip to Content
Webhooks

Send webhook test event

Permissionwebhooks:updateRetriesIdempotency-Key requiredAuthentication
POST
/webhooks/{id}/test

Durably creates a signed call.completed test delivery with test=true and call=null. Queue publication occurs only after the database commit, and the durable scanner recovers publication failures. Poll Location after Retry-After.

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

Response Body

Test delivery created.

application/json
  1. response
delivery_id*string
Formatuuid
status*string
Example Request
curl -X POST 'https://api.kejue.co/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/test' \  -H 'Idempotency-Key: string'
Example Response
{  "delivery_id": "9892f438-d31c-4ff2-bc84-146525b292ff",  "status": "pending"}