Skip to main content

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

ResponsibilityDescription
Message to existing chatSends type + content to an active conversation within the last 24 hours
Push / outbound templateReaches the user after 24 hours (or for outbound needs) via an approved template
AuthorizationAccess 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

  1. Create Access Token
  2. Authentication
  3. Send messagePOST /message/send
  4. Push messagePOST /push-message
  5. Message types
  6. Error format