Create a webhook endpoint
Register an HTTPS endpoint to receive webhook events for your integration.
Subscribe to one or more event categories — coarse families of events rather than
individual topics. The available categories are: onramp, offramp, conversion,
transfer, deposit, kyc.
The response includes a signing_secret (prefixed whsec_) returned in plaintext
exactly once — on create and on rotate-secret only. Store it securely; you cannot retrieve
it again. Use it to verify the signature on every delivered event.
New endpoints are created inactive (active: false). Activate the endpoint with a
PATCH once you have stored the signing secret and are ready to receive deliveries.
Body
url— required. Must be a valid HTTPS URL.event_categories— required. Non-empty array of event categories (see above). Unknown values are rejected with400.
Example
POST /v1/notifications/webhooks
{
"url": "https://merchant.example.com/webhooks",
"event_categories": ["onramp", "conversion"]
}
Authorizations
API key issued during merchant onboarding.
Headers
Optional client-supplied key. Identical key + identical body within 24h replays the original response. Identical key + different body returns 409 idempotency_conflict. The hash is over raw bytes — clients retrying must send the byte-identical body; a re-serialised JSON payload will produce a different hash and a 409. Strongly recommended for retry-safe clients.
^[A-Za-z0-9_\-]{8,255}$Body
CreateWebhookEndpointDto