Webhook subscription API reference
List event types
webhooks:read.
Example:
Create subscription
webhooks:write.
Use an Idempotency-Key header.
Request:
List subscriptions
webhooks:read.
Response:
Get subscription
webhooks:read.
The sharedSecret is not returned.
Update subscription
webhooks:write.
Use an Idempotency-Key header.
Request:
events is included, it replaces the entire event set. It does not merge with existing events.
Note: the subscription API has an intentional path-shape inconsistency:
GET /accounts/{account_id}/webhooks/{subscription_id}(get one)PATCH /accounts/{account_id}/webhooks/subscriptions/{subscription_id}(update)DELETE /accounts/{account_id}/webhooks/subscriptions/{subscription_id}(archive)
Archive subscription
webhooks:write.
Archiving stops future deliveries. Delivery history is retained.
List delivery attempts
webhooks:read.
Optional pagination:
page[after] and page[before].
Delivery logs are useful for debugging:
- Whether Brale attempted delivery
- What HTTP status your endpoint returned
- Whether a delivery was retried
- Failure messages
- Attempt numbers