curl "https://server.smartlead.ai/api/v1/campaigns/123/webhooks?api_key=YOUR_KEY"
{
"success": true,
"data": [
{
"id": 456,
"name": "CRM Integration",
"webhook_url": "https://crm.example.com/webhook",
"event_types": ["LEAD_REPLIED", "LEAD_OPENED"],
"is_active": true
}
]
}
Retrieve all webhooks configured for a campaign
curl "https://server.smartlead.ai/api/v1/campaigns/123/webhooks?api_key=YOUR_KEY"
{
"success": true,
"data": [
{
"id": 456,
"name": "CRM Integration",
"webhook_url": "https://crm.example.com/webhook",
"event_types": ["LEAD_REPLIED", "LEAD_OPENED"],
"is_active": true
}
]
}
curl "https://server.smartlead.ai/api/v1/campaigns/123/webhooks?api_key=YOUR_KEY"
{
"success": true,
"data": [
{
"id": 456,
"name": "CRM Integration",
"webhook_url": "https://crm.example.com/webhook",
"event_types": ["LEAD_REPLIED", "LEAD_OPENED"],
"is_active": true
}
]
}