Response Structure
{
"webhook_id": "", ---> new_feild
"webhook_name": "", ---> new_feild
"webhook_url":"",
"event_type": "LEAD_UNSUBSCRIBED",
"event_timestamp": "", ---> new field
"from_email": "", ---> new field (optional)
"to_email": "", ---> new field use instead of `lead_email`
"lead_email":"", ---> Deprecate and instead use `to_email`
"lead_name":"", ---> Deprecate and instead use `to_name`
"to_name": "", ---> new field use instead of `lead_name`
"subject": "", ---> new field (optional)
"campaign_id": "",
"campaign_name": "",
"campaign_status": "", ---> new field (optional)
"sequence_number": "", ---> new field (optional)
"unsubscribed_client_id_map": "",
"sent_message": {
"message_id":"", ---> new field
"html":"", ---> new field
"text":"" ---> new field
"time":"" ---> new field
}, (optional)
"client_id":"" ---> new field (optional)
"app_url": "", ---> new field use instead of `ui_master_inbox_link`
"ui_master_inbox_link":"", ---> Deprecate and instead use `app_url`
"secret_key": "",
"description": "", ---> new field
"metadata": {
"webhook_created_at": "", ---> new field
} ---> new field
}
Example Response
{
"event_timestamp": "2023-09-26T11:16:24.671Z",
"lead_email": "[email protected]",
"to_email": "[email protected]",
"from_email": "[email protected]",
"lead_name": "Bob",
"to_name": "Bob",
"sequence_number": 1,
"sent_message": {
"message_id": "<[email protected]>",
"html": "<div>Testing email </div>",
"text": "Testing email",
"time": "2023-08-25T08:28:06.619Z"
},
"campaign_id": 101,
"unsubscribed_client_id_map": {},
"secret_key": "secretkey",
"app_url": "<https://app.smartlead.ai/app/master-inbox>",
"ui_master_inbox_link": "<https://app.smartlead.ai/app/master-inbox>",
"description": "Lead - [email protected] unsubscribed from the campaign",
"metadata": {
"webhook_created_at": "2023-09-26T11:02:01.385Z"
},
"webhook_url": "<https://webhook.site/5168faaa-0f49-465a-8111-1522da474abc>",
"webhook_id": 101,
"webhook_name": "Test",
"event_type": "LEAD_UNSUBSCRIBED"
}
to_email