Webhooks
Register a webhook
Registers an https URL that Sofia calls with a signed JSON event, retried up to five times on failure. The secret is shown once; 10 webhooks at most.
Authorizations
AuthorizationstringrequiredYour personal key or OAuth access token, sent as
Bearer <token>.
Body
application/json
urlstringrequiredThe https address Sofia calls. A host that resolves to a private, loopback or link-local address is refused
eventsstring[]requiredThe events to receive
Response
201application/json
The webhook and its signing secret, shown only once.
idstringrequiredIdentifier of the webhook
urlstringrequiredAddress called by Sofia
eventsstring[]requiredThe subscribed events
createdAtstring<date-time>requiredWhen the webhook was registered
secretstringrequiredThe HMAC-SHA256 key that signs each delivery (
Sofia-Signature). Shown this once only
400
webhook_url_invalid: not https, or a private, loopback or link-local host. webhook_event_invalid: unknown event, or none.
401
The token is missing, unknown, expired or revoked.
403
The token does not have the webhooks:write scope.
409
webhook_limit_reached: already 10 webhooks.
4XXapplication/json
Any other error, in the error envelope.