Skip to main content
POST
/
api
/
v1
/
campaigns
/
{campaign_id}
/
webhooks
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/webhooks?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": null,
    "name": "CRM Integration",
    "webhook_url": "https://crm.example.com/smartlead-webhook",
    "event_types": ["LEAD_REPLIED", "LEAD_OPENED"]
  }'
{
  "success": true,
  "data": {
    "id": 456,
    "name": "CRM Integration",
    "webhook_url": "https://crm.example.com/webhook",
    "event_types": ["LEAD_REPLIED", "LEAD_OPENED"]
  }
}
Configure webhooks to receive real-time notifications when campaign events occur. Integrate with CRM, Slack, or custom systems.

Path Parameters

campaign_id
number
required
Campaign ID

Query Parameters

api_key
string
required
Your SmartLead API key

Request Body

id
number
Webhook ID (null for new webhook, number to update existing)
name
string
required
Webhook name for identification
webhook_url
string
required
URL to receive webhook POST requests
event_types
array
required
Array of event types to trigger webhookCommon events:
  • LEAD_REPLIED
  • LEAD_OPENED
  • LEAD_CLICKED
  • LEAD_BOUNCED
  • LEAD_UNSUBSCRIBED
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/webhooks?api_key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": null,
    "name": "CRM Integration",
    "webhook_url": "https://crm.example.com/smartlead-webhook",
    "event_types": ["LEAD_REPLIED", "LEAD_OPENED"]
  }'

Response Example

{
  "success": true,
  "data": {
    "id": 456,
    "name": "CRM Integration",
    "webhook_url": "https://crm.example.com/webhook",
    "event_types": ["LEAD_REPLIED", "LEAD_OPENED"]
  }
}