iQ Suite - Docs
SDK ReferenceWebhooks

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.

Webhooks

Webhooks are best managed in our platform dashboard. You can create, update, and delete webhooks from the dashboard.

HTTP Request

POST /webhooks

Authentication

All requests must include an Authorization header with a valid API key.

Headers

KeyValue
AuthorizationBearer YOUR_API_KEY
Content-Typeapplication/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: string indicating whether the webhook is active.

JSON

FieldTypeDescription
urlstringThe endpoint URL for the webhook
namestringA descriptive name for the webhook
secretstringA secret key for securing payloads
enabledstringWhether the webhook is active

Request Example

 
webhook = client.create_webhook(
    url="https://your-domain.com/webhook",   # Your custom domain where the events notifications will be sent
    name="Processing Events",                # Webhook name
    enabled="true",                          # Webhook Enabled (true/false)
    secret="your-webhook-secret"             # Add a layer of security with secret
)
 
print(webhook)

Response

Success

Status Code: 201 Created

Body:

{
   "data": {
       "webhook": {
           "id": 38,
           "name": "testing_1",
           "enabled": "true",
           "created_at": "2025-01-24T10:53:53.000000Z",
           "updated_at": "2025-01-24T10:53:53.000000Z"
       }
   }
}

On this page