Webhooks

List, register and delete webhook endpoints.

See Webhooks & events for the events and how deliveries are signed.

list_webhooks

List an organization’s webhook endpoints. Never returns their secrets. Maps to GET /organizations/:org/webhooks.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug

Returns the list of endpoints.

create_webhook

Register an outbound webhook. Maps to POST /organizations/:org/webhooks.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
urlstring (URL)Yese.g. https://acme.com/hooks/loginwith
eventsarray of stringYesRouting-key patterns, e.g. ["tenant.*","*.deleted"], or ["#"] for everything

Returns the created endpoint. Its signing secret is in this result once, and only here.

delete_webhook

Delete a webhook endpoint. Maps to DELETE /organizations/:org/webhooks/:id.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
idstringYesThe endpoint to delete

Returns OK (no content).