The InsiteChat REST API lets you programmatically list chatbots, retrieve training sources, send chat messages, and subscribe to events — useful for embedding InsiteChat inside your own product, automating support workflows, or building custom dashboards on top of your chatbot data. Webhooks deliver real-time events (lead captured, message received, conversation started, conversation escalated) to a URL of your choice — see Webhooks.Documentation Index
Fetch the complete documentation index at: https://docs.insitechat.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests are made to:Authentication
Every request must include your API key as a Bearer token in theAuthorization header:
ic_ followed by a URL-safe random token. See Authentication for how to create, list, and revoke keys.
Response Format
All responses are JSON. Successful list endpoints return a bare array:detail field describing what went wrong:
code fields on errors today; branch on the HTTP status code instead.
HTTP Status Codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request (malformed body, missing required field, or hit account limit such as max 5 active API keys) |
401 | Unauthorized — missing, invalid, or revoked API key |
404 | Resource not found, or chatbot not owned by the API key’s user |
429 | Rate limit exceeded or plan message quota exhausted (the detail text distinguishes them) |
500 | Server error |
Rate Limits
Per API key: 60 requests per minute (rolling 60-second window). When you exceed it, the API returns:Retry-After header today — back off on a fixed schedule (e.g. wait 60 seconds, then retry).
Separately, the POST /v1/chatbots/{id}/chat endpoint counts against your plan’s monthly message quota (see plans & pricing). When the quota is exhausted, the same endpoint also returns 429, but with a quota-specific detail message (e.g. "Monthly message limit reached."). Branch on the message text if you need to distinguish the two.
Need higher rate limits or quota? Contact support.
How to Get an API Key
Log in
Sign in at insitechat.ai.
Create a key
Click Create API Key, give it a descriptive name (e.g. Production Server), and click Generate.
Available Endpoints
Chatbots
List chatbots and retrieve a single chatbot’s details.
Chat
Send a message to a chatbot and receive an AI-generated reply.
Sources
List the training sources on a chatbot.
Webhooks
Configure outgoing webhooks to receive real-time events.
