create
POST /v1/webhooks. The reply is the endpoint plus secret — shown once.
urlmust behttps://on a public host. Loopback, private, link-local, unique-local and IPv6-literal addresses, andlocalhost/*.localhost/*.local/*.internalnames, reject withvalidation_failedonurl(so doesupdate).eventsis["*"]or a list of event type names; an unknown name rejects. The delivered types —session.idle,message.completed,budget.exceeded,media.job.*,browser.*,file.imported,app.*,wallet.*,card.*— are listed in full on Webhooks → Event types.
list
GET /v1/webhooks, cursor-paginated. No secret on any entry.
get
GET /v1/webhooks/{id}.
update
PATCH /v1/webhooks/{id}. WebhookPatch is { url?, events?, enabled? }.
An endpoint disables itself (enabled: false) after 10 failed attempts in a row, or 24 hours without a success. Re-enable it with update(id, { enabled: true }) once the receiver is fixed, then call test — the failure count only resets on a success, so a re-enabled endpoint that fails again is switched straight back off. See auto-disable.
rotate
POST /v1/webhooks/{id}/rotate, body { overlap_hours } when given. The reply is { id, secret, overlap_expires_at } — the new secret, shown once. Both secrets sign until overlap_expires_at, so a receiver can redeploy without dropping a delivery.
deliveries
GET /v1/webhooks/{id}/deliveries — attempts, statuses, and response codes.
delivery
GET /v1/webhooks/{id}/deliveries/{delivery_id}.
test
POST /v1/webhooks/{id}/test. Sends a webhook.test envelope to the endpoint’s real URL and answers the pending delivery row.
redeliver
POST /v1/webhooks/{id}/deliveries/{delivery_id}/redeliver. Resends a past delivery’s exact envelope — a new attempt, the same evt_ id, so an idempotent receiver stays correct.
delete
DELETE /v1/webhooks/{id}.