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:
- Authenticate Requests: Include your API token in every request to ensure secure access.
- Initiate a Preview Chat Session: Send a
POSTrequest to the following endpoint to start a session:The response will include ahttps://indite.io/api/v1/bots/<bot_id>/preview/startChatsessionId, which is required for all subsequent interactions in the session. - Send Messages: Communicate with the bot by sending a
POSTrequest to:Include your message in the JSON payload as follows:https://indite.io/api/v1/sessions/<session_id>/continueChat{ "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:
- Start a Live Chat Session: Initiate a live session by sending a
POSTrequest to:The response will provide ahttps://indite.io/api/v1/bots/<public_id>/startChatsessionIdfor ongoing communication. - Continue the Conversation: Send messages to the bot using a
POSTrequest to:Structure your JSON payload as follows:https://indite.io/api/v1/sessions/<session_id>/continueChat{ "message": "Your message here" }
For additional information, see the Start Chat API Reference.