smartlead_upsert_campaign_webhook
Add or update webhooks for email marketing campaigns to receive notifications for events like email opens, link clicks, replies, and lead status changes.
Instructions
Add or update a webhook for a specific campaign.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | ID of the campaign to add/update webhook for | |
| categories | No | Categories for filtering webhook events (e.g. ["Interested", "NotInterested"]) | |
| event_types | Yes | Types of events to trigger the webhook. Options: EMAIL_SENT, EMAIL_OPEN, EMAIL_LINK_CLICK, EMAIL_REPLY, LEAD_UNSUBSCRIBED, LEAD_CATEGORY_UPDATED | |
| id | No | ID of the webhook to update. Set to null to create a new webhook. | |
| name | Yes | Name for the webhook | |
| webhook_url | Yes | URL to call when the webhook event occurs |