Skip to documentation
Dashboard
Webhooks

Create a webhook endpoint

Register a public HTTPS destination for selected delivery events.

POST/webhooks
On this page

Authentication

Send a RouteKite API key as a Bearer token. This endpoint requires the webhook:manage scope.

Required headers
NameTypeRequirementDescription
AuthorizationstringRequiredBearer API key with the required workspace scope.Example: Bearer rk_your_key

Request body

Request fields
NameTypeRequirementDescription
urlhttps URLRequiredA public HTTPS endpoint on port 443.
descriptionstringOptionalA short label, up to 160 characters.
eventsevent[]RequiredOne or more unique email delivery event names.

Response

Response fields
NameTypeRequirementDescription
iduuidAlwaysEndpoint ID.
signing_secretstringCreation onlySecret used to verify signed requests.

Signing secret

The creation response includes the endpoint signing secret. Store it only in your server environment and use it to verify every request.

Errors

StatusCodeWhat it meansWhat to do
400INVALID_REQUESTThe endpoint input or identifier is invalid.Correct the reported field.
401UNAUTHORIZEDThe API key is invalid.Check the Bearer header.
403FORBIDDENThe key lacks webhook:manage access.Use a key with the required scope.
404WEBHOOK_NOT_FOUNDThe endpoint is unavailable in this workspace.Check the endpoint ID and workspace.
409WEBHOOK_ALREADY_EXISTSThe destination is already registered.Use the existing endpoint or delete it first.
422INVALID_WEBHOOK_URLThe destination is not a public HTTPS endpoint.Use a public HTTPS URL on port 443.
429RATE_LIMITEDToo many requests were sent in a short period.Honor Retry-After before retrying.
500 / 503INTERNAL_ERRORThe operation could not complete.Retry after a short delay.