Contents

API reference

Webhooks

API reference descriptions are provided in English to preserve the exact published contract.

Redeliver a selection of retained events

POST /v1/accounts/{AC}/events/redeliver

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (2 fields)
Request body
NameTypeRequiredDescription
endpointSidstring (WH… SID)
eventSidsstring (EV… SID)[]yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Redeliver a retained event to its subscribed endpoints (DEV-017)

POST /v1/accounts/{AC}/events/{EV}/redeliver

Send a retained event again, to every subscribed endpoint or to one with `endpointSid`. Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
EVpath · string (EV… SID)yes
Request body (1 fields)
Request body
NameTypeRequiredDescription
endpointSidstring (WH… SID)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List webhook deliveries for one retained resource

GET /v1/accounts/{AC}/webhook-deliveries

Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
resourceSidquery · string (max 128 chars)yes
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List the event types a webhook endpoint can subscribe to

GET /v1/accounts/{AC}/webhook-event-types

Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List customer webhook endpoints

GET /v1/accounts/{AC}/webhooks

List your webhook endpoints with their verification and delivery state. Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
ACpath · string (AC… SID)yesAccount SID

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Create a customer webhook endpoint

POST /v1/accounts/{AC}/webhooks

Register an HTTPS endpoint for events. It receives nothing until verified. Needs a recent step-up (`stepUpToken`). Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yesAccount SID
Request body (6 fields)
Request body
NameTypeRequiredDescription
apiVersionstring (pattern ^\d{4}-\d{2}-\d{2}$)
concurrencyCapinteger (1–256)
eventFiltersstring (max 128 chars)[]
stepUpTokenstring (max 256 chars)
timeoutMsinteger (1000–30000)
urlstring (uri, max 2048 chars)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Fetch a customer webhook endpoint

GET /v1/accounts/{AC}/webhooks/{WH}

Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Update a customer webhook endpoint

PATCH /v1/accounts/{AC}/webhooks/{WH}

Change an endpoint's URL, event filters, timeout or concurrency. Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes
Request body (6 fields)
Request body
NameTypeRequiredDescription
apiVersionstring (pattern ^\d{4}-\d{2}-\d{2}$)
concurrencyCapinteger (1–256)
eventFiltersstring (max 128 chars)[]
stepUpTokenstring (max 256 chars)
timeoutMsinteger (1000–30000)
urlstring (uri, max 2048 chars)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Disable a customer webhook endpoint

DELETE /v1/accounts/{AC}/webhooks/{WH}

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

List webhook delivery history

GET /v1/accounts/{AC}/webhooks/{WH}/deliveries

Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
limitquery · integer (1–100)
cursorquery · string (max 2048 chars)
sortquery · "createdAt" | "-createdAt"
resourceSidquery · string (max 128 chars)
eventIdquery · string (EV… SID)
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Retry queued or failed webhook deliveries, oldest first

POST /v1/accounts/{AC}/webhooks/{WH}/deliveries/retry

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
deliverySidsstring (WD… SID)[]
state"pending" | "failed"

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Fetch webhook delivery request and attempt history

GET /v1/accounts/{AC}/webhooks/{WH}/deliveries/{WD}

Required scope: `webhooks:read`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes
WDpath · string (WD… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Redeliver a retained event without reprocessing its resource

POST /v1/accounts/{AC}/webhooks/{WH}/deliveries/{WD}/retry

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes
WDpath · string (WD… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Pause endpoint delivery

POST /v1/accounts/{AC}/webhooks/{WH}/pause

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Resume endpoint delivery

POST /v1/accounts/{AC}/webhooks/{WH}/resume

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

End the signing-secret rotation overlap immediately

POST /v1/accounts/{AC}/webhooks/{WH}/secret/end-overlap

Expires the previous signing secret now. Deliveries stop carrying its `v1=` signature, so any integration still verifying with the old secret fails from this moment. Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Rotate the endpoint signing secret with overlap

POST /v1/accounts/{AC}/webhooks/{WH}/secret/rotate

Issue a new signing secret. The old one keeps signing alongside it until `expiresAt`, so you can deploy the new one without dropping events. Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes
Request body (2 fields)
Request body
NameTypeRequiredDescription
expiresAtstring (date-time)
stepUpTokenstring (max 256 chars)

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Send a signed test.ping event

POST /v1/accounts/{AC}/webhooks/{WH}/test

Send a signed `test.ping` event to the endpoint and report how it answered. Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.

Verify endpoint ownership and activate delivery

POST /v1/accounts/{AC}/webhooks/{WH}/verify

Required scope: `webhooks:write`.

Parameters

Parameters
NameTypeRequiredDescription
ACpath · string (AC… SID)yes
WHpath · string (WH… SID)yes

Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.