API reference

Webhooks

Event delivery endpoints, signing secrets and delivery history.

List webhooks

GET/v1/webhooks

Scopes
webhooks:read

Parameters

FieldTypeRequired
cursorquerystringno
limitqueryintegerno

Responses

  • 200WebhookList
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Create a webhook

POST/v1/webhooks

Scopes
webhooks:write
Required header
Idempotency-Key

Request bodyWebhookCreate

FieldTypeRequired
urlstring (uri)yes
event_typesarray of stringyes
descriptionstringno

Responses

  • 201Webhook
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Update a webhook

PATCH/v1/webhooks/{webhook_id}

Scopes
webhooks:write
Required header
If-Match

Parameters

FieldTypeRequired
webhook_idpathstring (uuid)yes

Request bodyWebhookUpdate

FieldTypeRequired
urlstring (uri)no
event_typesarray of stringno
statusenum: disabled, activeno

Responses

  • 200Webhook
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Delete a webhook

DELETE/v1/webhooks/{webhook_id}

Scopes
webhooks:write
Required header
If-Match

Parameters

FieldTypeRequired
webhook_idpathstring (uuid)yes

Responses

  • 204
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Send a test event

POST/v1/webhooks/{webhook_id}/test

Scopes
webhooks:write
Required header
Idempotency-Key

Parameters

FieldTypeRequired
webhook_idpathstring (uuid)yes

Responses

  • 202Delivery
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

Rotate the signing secret

POST/v1/webhooks/{webhook_id}/rotate-secret

Scopes
webhooks:write
Required header
Idempotency-Key

Parameters

FieldTypeRequired
webhook_idpathstring (uuid)yes

Request bodyReasonAction

FieldTypeRequired
reason_codestringyes
notestringno

Responses

  • 200SecretIssued
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503

List deliveries

GET/v1/webhooks/{webhook_id}/deliveries

Scopes
webhooks:read

Parameters

FieldTypeRequired
webhook_idpathstring (uuid)yes
cursorquerystringno
limitqueryintegerno

Responses

  • 200DeliveryList
  • 400
  • 401
  • 403
  • 404
  • 409
  • 412
  • 413
  • 415
  • 422
  • 428
  • 429
  • 503