API reference / Webhooks and integrations
Register a webhook endpoint
POST/v1/orgs/{orgId}/webhooks
Register an HTTPS endpoint (webhooks:manage, AAL2). Production requires the staff production-API grant. The signing secret is returned once.
When to use it
Once per receiving URL. Store the signing secret from the response; it is shown once. Private, loopback and link-local addresses are rejected.
Before you call it
- Permission
webhooks:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
Request body
| Field | What it does |
|---|---|
urlstring (uri)required | No description in the spec yet. |
descriptionstring | No description in the spec yet. |
eventsenum[]required | No description in the spec yet. One of |
Response 201
The endpoint and its signing secret
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
urlstringrequired | No description in the spec yet. |
descriptionstring | No description in the spec yet. |
eventsstring[]required | No description in the spec yet. |
disabled_atstring (date-time) | No description in the spec yet. |
failingbooleanrequired | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
signing_secretstringrequired | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
invalid_url422 | webhook URL must be https |
events_required422 | choose at least one event |
invalid_event422 | unknown event: |
Every error is a Problem document. Branch on code; quote request_id to support.