Create message

Create a session message for a chatbot session specified by session uuid

Endpoint

POST / api / v1 / session / {uuid} / message / stream

Authorization

Authorization string Bearer <your_token>

This API utilizes streaming technique to transmit data, and as a result, it returns the data in the form of a string continuously over the connection. Once the connection is over, you can refetch the list of messages to view the actual data.

Path

uuid string required

Body

query string required

Request example

curl --location --request POST 'https://app.aichatbothub.com/api/v1/session/{uuid}/message/stream' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{"query": "Your query goes here"}'

Response example

"Chat streaming response"

Last updated