🔑API Key
This section shows how to generate API Token for your Bots.
Generate API Token
Here is a step-by-step guide to generate an API Token.
Step 1: Create Chat History
Navigate to the API Key page.
Under Select Bot, choose your bot.

Your API Key is displayed on this page.

Enter a message, then click the Add Button and Create to generate chat history.

Once created, the message “Chat history created successfully” will appear, along with a Chat ID.

Step 2: Get Response API
Enter your query in the input field.
Click Submit to generate a response.
The response will display in the output panel.

Example code snippets are provided below to show how to call the API with your Bot ID, Chat ID, Query, and API Key.

Notes
The API key must be included in the
Authorization
header of every request.Example requests and responses are provided in both cURL and JavaScript.
For reliability, always validate
chat_id
before requesting a response.
Last updated