API Reference · Webhook Endpoints
Create a webhook endpoint
Registers a new webhook endpoint. The signing secret is returned once.
POST
/v1/webhook-endpointsThe `signing_secret` field is the only time you can read the plaintext secret. Store it in your server-side secret store — LuniPay encrypts it at rest and never shows it again.
Returnswebhook_endpoint object
Body parameters
urlstringRequiredHTTPS URL that will receive deliveries.
enabled_eventsarrayRequiredEvent types to subscribe to. Use `["*"]` to receive everything.
descriptionstringOptional dashboard label.
Errors
400
parameter_invalid_url`url` is missing, not HTTPS, or malformed.