Webhooks
Get your webhook endpoint
/v1/integration/webhook-endpointThe endpoint this key receives the company's events at. 404 until one is set. Requires an API key with the `webhooks:manage` scope.
Requires an Alfa API key as a bearer token. How API keys work
Headers
Alfa-Company-IdstringThe Company ID of the company to act for. Required with a platform key, and that company must have authorized your platform; a company key acts for its own company and can leave it out.
Response body
keyIdintegerrequiredThe API key the endpoint belongs to.
companyIdstringrequiredThe company whose events it receives.
urlstringrequiredWhere events are sent.
status"enabled" | "disabled"required`disabled` after three days of failed deliveries, or once removed. Setting the URL again enables it.
failingSincestring | nullrequiredWhen the current run of failed deliveries began; null while deliveries succeed.
disabledAtstring | nullrequiredWhen the endpoint was disabled.
createdAtstringrequiredWhen the endpoint was created.
updatedAtstringrequiredWhen the endpoint last changed.
secretstringThe signing secret, returned only when it is created or rotated. Store it; it is never shown again.
Responses
- 200Success.
- 400The request is malformed: invalid JSON, an unexpected body or an unknown query parameter. Problem details
- 401The bearer token is missing, expired or invalid. Problem details
- 403The caller may not perform this operation, or has no active organisation. Problem details
- 404The resource does not exist or is not visible to the caller. Problem details
- 422The request failed validation; `errors` lists each invalid field. Problem details
- 429Too many requests, or the AI service is busy. Retry after a short wait. Problem details
- 500An unexpected error. Quote the `correlationId` to support. Problem details
