Chat Flow
Publish Bots
API
API

Integrate your bot seamlessly with external services or applications using HTTP requests. This API supports programmatic interactions, enabling flexibility across various programming languages and platforms.

Preview Mode

Test your bot in a controlled environment before deploying it to production. Follow these steps to get started:

  1. Authenticate Requests: Include your API token in every request to ensure secure access.
  2. Initiate a Preview Chat Session: Send a POST request to the following endpoint to start a session:
    https://indite.io/api/v1/bots/<bot_id>/preview/startChat
    The response will include a sessionId, which is required for all subsequent interactions in the session.
  3. Send Messages: Communicate with the bot by sending a POST request to:
    https://indite.io/api/v1/sessions/<session_id>/continueChat
    Include your message in the JSON payload as follows:
    {
      "message": "Your message here"
    }

For comprehensive details, consult the Start Preview Chat API Reference.

Live Mode

When your bot is ready for production, use the following endpoints to enable live interactions:

  1. Start a Live Chat Session: Initiate a live session by sending a POST request to:
    https://indite.io/api/v1/bots/<public_id>/startChat
    The response will provide a sessionId for ongoing communication.
  2. Continue the Conversation: Send messages to the bot using a POST request to:
    https://indite.io/api/v1/sessions/<session_id>/continueChat
    Structure your JSON payload as follows:
    {
      "message": "Your message here"
    }

For additional information, see the Start Chat API Reference.

Indite Documentation v1.4.0
PrivacyTermsSupport