create_webhook
Set up webhooks to receive real-time notifications for specific campaign events and lead management activities in your Multilead account.
Instructions
Create a non-global webhook
This creates a webhook that listens for specific events. Non-global webhooks are scoped to specific campaigns or resources.
Args: user_id: User ID account_id: Account ID webhooks: List of webhook configurations, each containing: - url: Webhook endpoint URL - events: List of event types to subscribe to - campaignId: (Optional) Campaign ID to scope webhook to
Returns: Created webhook details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | ||
| account_id | Yes | ||
| webhooks | Yes |
Input Schema (JSON Schema)
{
"properties": {
"account_id": {
"type": "string"
},
"user_id": {
"type": "string"
},
"webhooks": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
}
},
"required": [
"user_id",
"account_id",
"webhooks"
],
"type": "object"
}