NewLead AI
  • 🏠Get Started
  • 💻App - app.newlead.ai
    • 📈Dashboard
    • 🤖My Bots
    • 👼Leads
  • 🚀API - api.newlead.ai
    • 🔐Authentication
    • 🤖Bots
    • 🔌Link bot to channel
    • 👼Leads
    • 🗣️Messages
    • 🔗Webhooks
    • ⚡Give it a try!
  • ❓FAQ
Powered by GitBook
On this page
  • POST Webhook/UpdateEndpoint
  • Events
  1. API - api.newlead.ai

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"
}
PreviousMessagesNextGive it a try!

Last updated 11 months ago

🚀
🔗