v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBWebhooks
Create a new webhook
Creates a new webhook endpoint for receiving notifications. Marketplaces can set the X-On-Behalf-Of header to provision the endpoint in an owned sub-merchant's Svix app; such endpoints default to direct (non-Connect) event types. Without the header the endpoint is created on the caller's own account (marketplaces keep Connect event defaults).
post/api/webhook
Request body
Example request
{
"url": "https://api.example.com/webhook",
"eventTypes": [
"payment.settled",
"subscription.active"
]
}Response
Create a new webhook successful
Example response
{
"webhookId": "webhook_1234567890abcdef",
"webhookUrl": "https://api.example.com/webhook",
"secret": "whsec_abcdef1234567890abcdef1234567890abcdef"
}