Skip to main content

Webhooks API

Manage webhook endpoints programmatically.

Current implemented route family: webhook_endpoints

The Webhook Endpoint object

{
"id": "we_abc123",
"object": "webhook_endpoint",
"url": "https://yoursite.com/webhooks/ikawaari",
"events": ["payment_intent.succeeded", "payment_intent.payment_failed"],
"enabled": true,
"secret": "whsec_...xxxx",
"created": 1708300800
}

Endpoints

MethodEndpointDescription
POST/webhook_endpointsCreate a webhook endpoint
GET/webhook_endpoints/{id}Retrieve a webhook endpoint
GET/webhook_endpointsList webhook endpoints
POST/webhook_endpoints/{id}Update a webhook endpoint
POST/webhook_endpoints/{id}/rotate_secretRotate a webhook signing secret

Merchant dashboard APIs also expose additional webhook management operations under merchant route families, including test, replay, and attempts inspection.

Create a Webhook Endpoint

POST /webhook_endpoints
ParameterTypeRequiredDescription
urlstringThe URL to receive webhook events
eventsstring[]List of event types to subscribe to
enabledbooleanWhether the endpoint is active (default: true)