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
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
1
Log in
Sign in at insitechat.ai.
2
Open the Developer page
Navigate to Dashboard → Developer → API Keys.
3
Create a key
Click Create API Key, give it a descriptive name (e.g. Production Server), and click Generate.
4
Copy and store it
The full key is shown only once at creation time. Copy it to a secure store; if you lose it, revoke it and create a new one.
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.
