Webhook endpoints
Register a webhook endpoint
Authorization
ApiKey AuthorizationBearer <token>
Bearer API key in the form sk_live_…, sk_test_…, or pk_live_…. Keys are issued from the Consistly dashboard and carry product-prefixed scopes.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/webhook_endpoints" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com", "enabled_events": [ "string" ] }'{ "id": "string", "object": "webhook_endpoint", "url": "http://example.com", "description": "string", "enabled_events": [ "string" ], "status": "enabled", "signing_secret_last_four": "string", "livemode": true, "metadata": { "property1": "string", "property2": "string" }, "organization": "string", "created_by": "string", "created": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "signing_secret": "string"}