# Webhook endpoints

Register endpoints and inspect deliveries.

Base URL: https://api.audiobly.com

### POST /v1/webhook-endpoints

Create webhook

Register a webhook endpoint for your organisation. The response includes the
signing `secret` (prefixed `whsec_`) — it is shown only once, so store it to verify
delivery signatures. Requires organisation-management permission.

Scope: org_manage

Body (JSON):

- `subscribed_events` (array of string, required): The event types this endpoint should receive.
- `url` (string, required): The https address that receives the notifications.
- `enabled` (boolean): Whether the endpoint receives notifications; the default is true.

Responses:

- 201: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
