Skip to main content

Chatbots & routing

Base URL https://api.leadx.in/api/key/protected. Every request needs an apikey header — see Authentication.

19 endpoints.

GET /manual-chatbot

Get all manual chatbots.

Auth apikey

:::note Used by the web app components/ManualChatbotTemplatesModal.jsx, pages/AddManualChatbot.jsx, pages/ManualChatbots.jsx :::

Query parameters — the standard list contract: p, n, sortBy, sortOrder, searchBy, searchValue, filters, advancedFilters, ids, nids. See Pagination and Filtering.

Responsedata is an array of manualChatbot objects, alongside the pagination fields described in Response format. updatedBy, createdBy are populated, so they arrive as nested objects rather than ids.

POST /manual-chatbot

Create manual chatbot.

Auth apikey

:::note Used by the web app components/ManualChatbotTemplatesModal.jsx, pages/AddManualChatbot.jsx, pages/ManualChatbots.jsx :::

Request body

FieldDefault
name
description
status
nodes[]
edges[]

Required: name.

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

DELETE /manual-chatbot

Delete manual chatbot.

Auth apikey

:::note Used by the web app components/ManualChatbotTemplatesModal.jsx, pages/AddManualChatbot.jsx, pages/ManualChatbots.jsx :::

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

GET /manual-chatbot/:id

Get manual chatbot.

Auth apikey

:::note Used by the web app components/ChatWindow.jsx, components/ManualChatbotAiModal.jsx, pages/AddManualChatbot.jsx and 1 more :::

Path parameters

Name
idRequired

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

PUT /manual-chatbot/:id

Update manual chatbot.

Auth apikey

:::note Used by the web app components/ChatWindow.jsx, components/ManualChatbotAiModal.jsx, pages/AddManualChatbot.jsx and 1 more :::

Path parameters

Name
idRequired

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

DELETE /manual-chatbot/:id

Delete manual chatbot.

Auth apikey

:::note Used by the web app components/ChatWindow.jsx, components/ManualChatbotAiModal.jsx, pages/AddManualChatbot.jsx and 1 more :::

Path parameters

Name
idRequired

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

POST /manual-chatbot/ai-generate

Generate manual chatbot with AI.

Auth apikey

Request body

FieldDefaultNotes
promptThe outreach goal, in plain language.

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

Errors AIUsageLimitReached_429

GET /manual-chatbot/chatbot-router

Get chatbot router.

Auth apikey

PUT /manual-chatbot/chatbot-router

Update chatbot router.

Auth apikey

GET /manual-chatbot/chatbot-router/apps

Get entry point apps.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

GET /manual-chatbot/chatbot-router/bots

Get routable chatbots.

Auth apikey

:::note Used by the web app pages/AddManualChatbot.jsx, pages/ChatbotManager.jsx :::

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

POST /manual-chatbot/chatbot-router/entry-points

Create entry point.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

Request body

FieldDefault
channel

Required: channel.

PUT /manual-chatbot/chatbot-router/entry-points/:entryPointId

Update entry point.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

Path parameters

Name
entryPointIdRequired

DELETE /manual-chatbot/chatbot-router/entry-points/:entryPointId

Delete entry point.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

Path parameters

Name
entryPointIdRequired

POST /manual-chatbot/chatbot-router/entry-points/:entryPointId/test

Test chatbot router.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

Path parameters

Name
entryPointIdRequired

Request body

FieldDefault
text

Required: text.

Responsedata is one manualChatbot object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

POST /manual-chatbot/chatbot-router/rebuild

Rebuild chatbot router indexes.

Auth apikey

:::note Used by the web app pages/ChatbotManager.jsx :::

GET /manual-chatbot/chatbot-router/session/stop

Get chatbot session status.

Auth apikey

:::note Used by the web app components/ChatWindow.jsx :::

Responsedata is one ResponseMessage object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

PUT /manual-chatbot/chatbot-router/session/stop

Stop chatbot session.

Auth apikey

:::note Used by the web app components/ChatWindow.jsx :::

Request body

FieldDefault
channel
app
accountnull

Required: channel, app.

Responsedata is one ResponseMessage object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

POST /manual-chatbot/keywords

Extract manual chatbot keywords.

Auth apikey