Pay: webhooks
Create a webhook endpoint
POST
/v1/webhook_endpointshttps:// only, checked against private, local and cloud-metadata addresses. The signing secret
(whsec_…) is returned once; an idempotent replay returns secret: null. Signature:
X-Signature: sha256=HMAC(secret, "{X-Timestamp}.{raw body}"), as for Alerts webhooks.
At most 10 active endpoints per environment (webhook_endpoint_limit).
- Safe to retry with the Idempotency-Key header: see Idempotency.
Headers#
Idempotency-KeystringrequiredRequired on every Pay POST; makes it safe to retry for 24 hours. Scoped to the key's environment.
Request body#
urlstringrequiredevent_typesarray of stringEmpty or absent: all events.
Responses#
201Endpoint created;
secret shown once.Object fields
idstring · uuidobjectstringenvironmentstringurlstringevent_typesarray of stringstatusstringcreated_atstring · date-timedisabled_atstring · date-timenullablesecretstringnullable
4xx · 5xxError.
Standard error format: see Errors.