POST
/
get-chats
/
{bot_id}
curl --request POST \
  --url https://api.public.chatnode.ai/v1/get-chats/{bot_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[]'
[
  {
    "id": "9ds49k9cncp7bmp",
    "message": {
      "data": {
        "type": "ai",
        "content": "Hello there! ๐Ÿ˜„ How can I assist you today?"
      },
      "type": "ai"
    },
    "session_id": "aki56d7-1719768767426",
    "created_at": "2024-06-30T17:32:53.518+00:00"
  }
]

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.

Query Parameters

k
integer

Limit the number of conversations to look in the past "conversation_ids" will only find the conversations requested and ignore the "k" parameter

Body

application/json ยท string[]

The conversation session ids associated with the trained chatbot.

Response

200
application/json
Chat History response.
id
string
required

The unique identifier for the chat.

Example:

"9ds49k9cncp7bmp"

message
object
required

The message object containing data and type.

session_id
string
required

The session ID associated with the chat.

Example:

"aki56d7-1719768767426"

created_at
string
required

The date and time when the message was created.

Example:

"2024-06-30T17:32:53.518+00:00"