Create webhook endpoint
POST
https://app.speybooks.com/api/v1/webhook-endpoints/Register a new webhook endpoint. A cryptographically secure signing secret is generated automatically and returned in the response. Store it securely for payload verification.
Enforces a maximum of 5 endpoints per organisation. At least one event must be subscribed.
Body parameters
events array<string> requiredEvent types to subscribe to. At least one required. See GET /webhooks for available events.
url string requiredHTTPS URL to receive webhook deliveries (max 2048 characters).
description string optionalOptional description for the endpoint (max 255 characters).
Response
201 Webhook endpoint created. Returns endpoint details including the signing secret.
Show response fields
events array<string>id integerisActive booleansecret stringurl stringError codes
400 Validation error: invalid URL, missing events, or invalid event types.
409 Maximum 5 webhook endpoints per organisation reached.