Skip to main content

Webhooks API

Manage webhook endpoints programmatically.

Current implemented route family: api/v1/webhook-endpoints

The Webhook Endpoint object

{
"id": "we_abc123",
"object": "webhook_endpoint",
"url": "https://yoursite.com/webhooks/ikawaari",
"enabled_events": ["payment_intent.succeeded", "payment_intent.payment_failed"],
"enabled": true
}

Endpoints

MethodEndpointDescription
POST/api/v1/webhook-endpointsCreate a webhook endpoint
GET/api/v1/webhook-endpoints/{id}Retrieve a webhook endpoint
GET/api/v1/webhook-endpointsList webhook endpoints
POST/api/v1/webhook-endpoints/{id}Update a webhook endpoint
POST/api/v1/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 /api/v1/webhook-endpoints
ParameterTypeRequiredDescription
urlstringNoURL that receives webhook events.
enabled_eventsstring[]NoList of event types to subscribe to.

The create response also includes secret. Store it server-side: it is used to verify webhook signatures.

{
"url": "https://yoursite.com/webhooks/ikawaari",
"enabled_events": ["payment_intent.succeeded", "payment_intent.payment_failed"]
}

Update a Webhook Endpoint

POST /api/v1/webhook-endpoints/{id}
ParameterTypeRequiredDescription
urlstringNoNew webhook URL.
enabled_eventsstring[]NoNew subscribed event list.
enabledbooleanNoEnables or disables the endpoint.