Client API Overview
The Client API is an HTTP API that lets external systems send messages to the AI Thinks chatbot platform.
Messages are not processed in this service; after validation they are forwarded to the platform message-processing layer.
What it does
| Responsibility | Description |
|---|---|
| Message to existing chat | Sends type + content to an active conversation within the last 24 hours |
| Push / outbound template | Reaches the user after 24 hours (or for outbound needs) via an approved template |
| Authorization | Access is scoped by a company access token |
Conversation window
Active chat within last 24 hours
→ POST /message/send
24 hours expired / outbound reach
→ POST /push-message
Integration flow
1. Get an access token (admin panel / Access Tokens)
2. Header: x-access-token
3. POST /message/send → message to existing chat
or
POST /push-message → outbound template message
Base URL
const BASE_URL = 'https://client-api.chatbot.aithinks.net';
Live service: https://client-api.chatbot.aithinks.net/
Next steps
- Create Access Token
- Authentication
- Send message —
POST /message/send - Push message —
POST /push-message - Message types
- Error format