v1
latestOpenAPI 3.0.32026-07-264469137.7 KBWebhooks
Create a webhook endpoint
Register a URL to receive webhook events, and choose which events to subscribe to. The signing secret is returned once in the response. Requires the webhooks:write scope.
post/v1/webhooks/endpoints
Request body
Example request
{
"name": "Production events",
"url": "https://api.example.com/webhooks/bachs",
"event_types": [
"collection.succeeded",
"collection.failed"
]
}Response
The created endpoint, including its signing secret.
Example response
{
"endpoint_id": "whe_1a2b3c4d5e",
"name": "Production events",
"url": "https://api.example.com/webhooks/bachs",
"enabled": true,
"event_types": [
"collection.succeeded",
"collection.failed"
],
"created_at": "2026-04-27T12:00:00Z",
"updated_at": "2026-04-27T12:00:00Z",
"signing_secret": "whsec_1a2b3c4d5e6f7g8h"
}