Webhooks
Get notified about events related to your bots
POST Webhook/UpdateEndpoint
Updates the URL where NewLead will send all even notifications
"your_webhook_url"
You can also update it directly from your NewLead account
Events
New Message Received
{
"message": {
"id": "int",
"leadId": "int",
"bot": "bool",
"type": "string",
"message": "string",
"url": "string",
"createdOn": "DateTime",
"manual": "bool"
},
"botId": "int"
}
New Lead
{
"lead": {
"id": "int",
"botAccountId": "int",
"destination": "string",
"createdOn": "DateTime",
"updatedOn": "DateTime",
"unread": "bool",
"retargeted": "bool",
"manual": "bool",
"name": "string",
"lastMessageReceivedOn": "DateTime?"
},
"botId": "int"
}
Last updated