Skip to main content

API Endpoint

The API endpoint for obtaining a streaming response is:

Request Body

To get a streaming response, send a POST request to the API endpoint with a JSON request. Here’s an example JSON request:
  • bot_id (string): ID of your bot.
  • message (string): Message from the user.
  • session_id (string): ID of the session.

Example Request

Here are example commands to obtain a streaming response using the ChatFly API:

Response Body

The streaming response is as follows:
  • string (string): A string of the response.
Result with Python, equivalent to JavaScript and Curl: response streaming