🔑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

  1. Navigate to the API Key page.

  2. Under Select Bot, choose your bot.

  1. Your API Key is displayed on this page.

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

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

Step 2: Get Response API

  1. Enter your query in the input field.

  2. Click Submit to generate a response.

  3. The response will display in the output panel.

  1. 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