v1
latestOpenAPI 3.1.02026-07-1342112262.5 KBWebhooks
Create webhook subscription
Create webhook subscription
Required scopes: application/webhooks:read, application/webhooks:write
post/v1/webhooks/subscriptions/
Request body
Example request
{
"event_types": [
"payment.created"
],
"name": "Example Webhook Subscription",
"notification_url": "https://webhook.site/1d9d0c3c-c0f9-4def-8cf1-99efb5931eca"
}Response
Successful Response
Example response
{
"created_at": "2024-11-19T15:27:02+00:00",
"enabled": true,
"event_types": [
"payment.created"
],
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"name": "Example Webhook Subscription",
"notification_url": "https://webhook.site/1d9d0c3c-c0f9-4def-8cf1-99efb5931eca",
"secret": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD",
"updated_at": "2024-11-19T15:27:02+00:00"
}