curl -X PUT "https://server.smartlead.ai/api/v1/webhook/update/12345?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Updated Webhook",
"webhook_url": "https://example.com/webhook",
"event_types": ["EMAIL_SENT", "EMAIL_REPLIED", "EMAIL_BOUNCED"],
"categories": []
}'
{
"ok": true,
"id": 12345,
"message": "Webhook saved successfully"
}
Update the configuration of an existing webhook
curl -X PUT "https://server.smartlead.ai/api/v1/webhook/update/12345?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Updated Webhook",
"webhook_url": "https://example.com/webhook",
"event_types": ["EMAIL_SENT", "EMAIL_REPLIED", "EMAIL_BOUNCED"],
"categories": []
}'
{
"ok": true,
"id": 12345,
"message": "Webhook saved successfully"
}
EMAIL_SENT, EMAIL_OPENED, EMAIL_REPLIED, EMAIL_CLICKED, LEAD_UNSUBSCRIBED, EMAIL_BOUNCED)curl -X PUT "https://server.smartlead.ai/api/v1/webhook/update/12345?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Updated Webhook",
"webhook_url": "https://example.com/webhook",
"event_types": ["EMAIL_SENT", "EMAIL_REPLIED", "EMAIL_BOUNCED"],
"categories": []
}'
{
"ok": true,
"id": 12345,
"message": "Webhook saved successfully"
}