API reference
Webhooks API
4 operations for webhooks. Each one names the scope your API key needs.
Scopes used here: platform.webhook.read , platform.webhook.create , platform.webhook.update
List this workspace's outbound webhook endpoints
GET /webhooks
Scope: platform.webhook.read
Parameters
| Name | In | Description |
|---|---|---|
cursor | query | Opaque cursor from a previous response's nextCursor. |
limit | query | Page size, 1-200. Defaults to 50. |
Response 200
| Field | Type | Notes |
|---|---|---|
data | array of object required | |
data[].id | string (uuid) required | |
data[].url | string required | |
data[].events | array of string required | |
data[].status | string required | |
nextCursor | string, nullable required | Opaque. Pass back as ?cursor= for the next page; null on the last page. |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/webhooks' \
-H 'Authorization: Bearer YOUR_API_KEY' Register a webhook endpoint. The signing secret is returned exactly once
POST /webhooks
Scope: platform.webhook.create
Headers: Idempotency-Key
(see idempotency)
Request body
| Field | Type | Notes |
|---|---|---|
url | string (url) required | |
events | not yet published required |
Response 201
| Field | Type | Notes |
|---|---|---|
endpoint | object required | |
endpoint.id | string (uuid) required | |
endpoint.url | string required | |
endpoint.events | array of string required | |
endpoint.status | string required | |
secret | string required |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X POST 'https://<your-company>.<app-domain>/api/v1/webhooks' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <a unique value>' \
--data '{ … }' Fetch one webhook endpoint. The signing secret is never returned
GET /webhooks/{id}
Scope: platform.webhook.read
Parameters
| Name | In | Description |
|---|---|---|
id required | path |
Response 200
| Field | Type | Notes |
|---|---|---|
id | string (uuid) required | |
url | string required | |
events | array of string required | |
status | string required |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s 'https://<your-company>.<app-domain>/api/v1/webhooks/<id>' \
-H 'Authorization: Bearer YOUR_API_KEY' Update, reactivate, or rotate the secret of a webhook endpoint
PATCH /webhooks/{id}
Scope: platform.webhook.update
Parameters
| Name | In | Description |
|---|---|---|
id required | path |
Request body
| Field | Type | Notes |
|---|---|---|
url | string (url) | |
events | not yet published required | |
reactivate | boolean | |
rotateSecret | boolean |
Response 200
| Field | Type | Notes |
|---|---|---|
endpoint | object required | |
endpoint.id | string (uuid) required | |
endpoint.url | string required | |
endpoint.events | array of string required | |
endpoint.status | string required |
Errors: 400 · 401 · 403 · 404 · 422 · 429
(error format)
curl -s -X PATCH 'https://<your-company>.<app-domain>/api/v1/webhooks/<id>' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{ … }'