Webhook endpoints
The webhook endpoint object
Endpoints, signing secrets and the delivery log.
Endpoints, signing secrets and the delivery log.
Endpoints
GET /v1/webhook_deliveries/{id}: Retrieve a deliveryPOST /v1/webhook_deliveries/{id}/retry: Resend a deliveryGET /v1/webhook_endpoints: List webhook endpointsPOST /v1/webhook_endpoints: Create a webhook endpointGET /v1/webhook_endpoints/{id}: Retrieve a webhook endpointPATCH /v1/webhook_endpoints/{id}: Update a webhook endpointDELETE /v1/webhook_endpoints/{id}: Delete a webhook endpointGET /v1/webhook_endpoints/{id}/deliveries: List deliveries of an endpointPOST /v1/webhook_endpoints/{id}/rotate_secret: Rotate the signing secretPOST /v1/webhook_endpoints/{id}/test: Send a test event
Attributes
idstringUnique identifier (
we_…).objectstringlivemodebooleanurlstringdescriptionstring | nullenabled_eventsarray of strings["*"]or the subscribed event types.statusstringOne of:
enabled,disableddisabled_reasonstring | nullOne of:
merchant,failingfailing: disabled automatically after failing for 3 days.api_versionstringfailing_sincestring (date-time) | nullFirst failure since the last successful delivery (null while healthy).
last_success_atstring (date-time) | nullLast successful delivery.
secret_rotation_ends_atstring (date-time) | nullWhile set, deliveries are also signed with the previous secret (rotation overlap).
secretstringSigning secret (
whsec_…). Returned ONLY when the endpoint is created or its secret rotated: store it now.createdstring (date-time)Creation time.
updatedstring (date-time)Last change.
Example
{
"id": "we_2Lk9Qm4Xz7Pv1Rt8Wb3Ns6Hd",
"object": "webhook_endpoint",
"livemode": false,
"url": "https://example.com/zylopay/webhooks",
"description": "Order service (test)",
"enabled_events": [
"payment.succeeded",
"payment_intent.*",
"refund.*"
],
"status": "enabled",
"disabled_reason": null,
"api_version": "2026-09-28",
"failing_since": null,
"last_success_at": "2026-09-28T14:02:41.000Z",
"secret_rotation_ends_at": null,
"created": "2026-09-20T10:00:00.000Z",
"updated": "2026-09-20T10:00:00.000Z"
}