Response Structure
{
"webhook_id": "", ---> new_feild
"webhook_name": "", ---> new_feild
"webhook_url":"",
"lead_id":""
"event_type": "LEAD_CATEGORY_UPDATED",
"created_at": "", ---> new field
"event_timestamp": "", ---> new field
"from":"" ---> Deprecate and instead use `from_email`
"from_email": "", new field use instead of `from`
"to":"", ---> Deprecate and instead use `to_email`
"lead_email":"" , ---> Deprecate and instead use `to_email`
"to_email": "", new field use instead of `to` and `lead_email`
"lead_name":"", ---> Deprecate and instead use `to_name`
"to_name": "", new field use instead of `lead_name`
"campaign_id": "",
"campaign_name": "",
"campaign_status": "", ---> new field
"category": "", ---> Deprecate and instead use `lead_category.new_name`
"lead_category_id":"", ---> Deprecate and instead use `lead_category.new_id`
"lead_category": {
"old_id":"", ---> new field
"old_name":"", ---> new field
"new_id":"" ---> new field use instead of `lead_category_id`
"new_name":"", ---> new field use instead of `category`
},
"lead_data": {
"email":"",
"first_name": "Ramesh",
"linkedin_profile": "linkedin.com",
"custom_fields": { first_line: "Super massive black hole"},
"last_name": "Kumar",
"phone_number": "23454212",
"company_name": "Smartlead",
"website": "smartlead.ai",
"location": "global",
"company_url": "smartlead.ai",
},
"history": [{
stats_id: "",
type: ",
message_id: "",
time: "",
email_body: "",
subject: "",
}],
"lastReply": {
stats_id: "",
type: "",
message_id: "",
time: "",
email_body: ""
} // Deprecte and instead use `last_reply` (renamed for standardisation)
"last_reply": {
stats_id: "",
type: "",
message_id: "",
time: "",
email_body: ""
}
"client_id":"", ---> new field
"secret_key": "",
"app_url": "", ---> new field use instead of `ui_master_inbox_link`
"ui_master_inbox_link":"", ---> Deprecte and instead use `app_url`,
"description": "", ---> new field
"metadata": {
"webhook_created_at": "", ---> new field
} ---> new field
}
Example Response
{
"campaign_status": "STOPPED",
"client_id": null,
"lead_id": 100,
"lead_email": "[email protected]",
"lead_name": "Bob",
"lead_data": {
"email": "[email protected]",
"first_name": "Bob",
"last_name": "Jon",
"phone_number": "9090887755",
"company_name": "Five2One",
"website": "www.five2one.com.au",
"location": "India",
"custom_fields": {
"role": "Softwate Engineer",
"lead_guid": "guid",
"undefined": 1,
"integration_lead_unique_id": null,
"227f554e-9e92-44d0-a175-9d5d703c6121": 1,
"3877eb8c-2f0a-4547-bc7d-0dcd153c0d79": 1,
"d1f90358-ca04-4c30-9347-a6a75cf2cc96": 1,
"e81322da-458a-4ddd-9d9f-b9011ca3aaaf": 1
},
"linkedin_profile": "<https://www.linkedin.com/in/profile_name/>",
"company_url": "",
"category": {
"name": "Interested",
"sentiment_type": "positive"
}
},
"category": "Interested",
"lead_category_id": 1,
"lead_category": {
"old_id": null,
"old_name": null,
"new_id": 1,
"new_name": "Interested"
},
"campaign_name": "test",
"campaign_id": 10,
"from_email": "[email protected]",
"to": "[email protected]",
"to_email": "[email protected]",
"to_name": "John",
"history": [
{
"stats_id": "id",
"type": "SENT",
"message_id": "<[email protected]>",
"time": "2023-08-25T08:28:06.619Z",
"email_body": "<div>Testing email</div>",
"subject": "Test Email 1"
},
{
"stats_id": "id",
"type": "REPLY",
"message_id": "<[email protected]>",
"time": "2023-08-25T08:32:45.000Z",
"email_body": "<div>Testing email</div>"
},
{
"stats_id": "id",
"time": "2023-08-28T13:12:07+00:00",
"type": "REPLY",
"email_body": "<div>Testing email</div>",
"message_id": "<[email protected]>"
}
],
"lastReply": {
"time": "2023-08-28T13:12:07+00:00",
"type": "REPLY",
"email_body": "<div>Testing email</div>",
"message_id": "<[email protected]>"
},
"last_reply": {
"time": "2023-08-28T13:12:07+00:00",
"type": "REPLY",
"email_body": "<div>Testing email</div>",
"message_id": "<[email protected]>"
},
"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] category updated to Interested for campaign - test",
"metadata": {
"webhook_created_at": "2023-09-26T11:02:01.385Z"
},
"webhook_url": "<https://webhook.site/5168fa12-0f49-45ta-81ss-1522da474a77>",
"webhook_id": 100,
"webhook_name": "Ramesh Test",
"event_type": "LEAD_CATEGORY_UPDATED"
}
from_email
to_email
to_email
to_name