POST
/
{bot_id}
curl --request POST \
  --url https://api.public.chatnode.ai/v1/{bot_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>",
  "chat_session_id": "<string>",
  "streaming": false
}'
{
  "id": "d0135d64-2f4b-4a79-9b29-af76e4ea93a7",
  "message": "Hello there! 😄 How can I assist you today?",
  "chat_session_id": "aki56d7-1719768767426",
  "urls": [],
  "docs": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bot_id
string
required

The bot id associated with the trained chatbot model.

Body

application/json
message
string
required

The message to send to your chatbot.

chat_session_id
string

The chat session id to keep track of a unique conversation. If not provided, it will default to generate a new one each time.

streaming
boolean
default:false

Whether to enable streaming response. Defaults to false.

Response

200
application/json
Message response
message
string
required

The reply message from your chatbot.

Example:

"Hello there! 😄 How can I assist you today?"

chat_session_id
string
required

The chat session id to keep track of a unique conversation.

Example:

"aki56d7-1719768767426"

id
string

The unique identifier for the message.

Example:

"d0135d64-2f4b-4a79-9b29-af76e4ea93a7"

urls
string[]

URLs related to the message.

Example:
[]
docs
string[]

document links related to the message.

Example:
[]