Create Webhook
Create a new webhook for receiving asynchronous event notifications.
Description
The Create Webhook
endpoint allows you to set up a webhook that listens for specific events and sends notifications to your specified URL. Webhooks are useful for integrating real-time event data into your applications.
HTTP Request
POST /webhooks
Authentication
All requests must include an Authorization
header with a valid API key.
Headers
Key | Value |
---|---|
Authorization | Bearer YOUR_API_KEY |
Content-Type | application/json |
Request Body
- url: The URL where the webhook notifications will be sent.
- name: A descriptive name for the webhook.
- secret: A secret key to secure webhook payloads.
- enabled: Boolean indicating whether the webhook is active.
JSON
Field | Type | Description |
---|---|---|
url | string | The endpoint URL for the webhook |
name | string | A descriptive name for the webhook |
secret | string | A secret key for securing payloads |
enabled | boolean | Whether the webhook is active |
Request Example
Response
Success
Status Code: 201 Created
Body: