Create a webhook
Register a new webhook endpoint and subscribe it to one or more event types.
Authorization
Public key Secret key In: header
In: header
Request Body
application/json
POST /v0/webhooks/create Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v0/webhooks/create" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "status": "active", "secret": "stringstringstri" }'{ "status": "success", "data": { "webhook": { "object": "webhook", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "status": "active", "secret": "string", "events": [ "payment_success" ], "lastBlockReason": "malformed_url", "lastBlockedAt": null, "consecutiveFailures": 0, "failingSince": null, "createdAt": 0, "deletedAt": null } }}List webhooks GET
Retrieve all configured webhooks for the workspace, newest first. A workspace may have at most a small, fixed number of webhooks configured at once — see the create endpoint's error if that limit is reached.
Send a test event POST
Fire a synthetic event of the given type. It is delivered to every active webhook currently subscribed to that event type — not just one — the same way a real event would be, including retries on failure. Useful for verifying a receiving endpoint without a real purchase.