GET
/
backend
/
chat
/
sessions
/
{sessionId}
/
chats

This endpoint retrieves all messages for a specific conversation. You can use the conversation_id parameter to specify the conversation for which you want to retrieve messages. To get the conversation_id, use the get conversations endpoint.

The endpoint is paginated, and you can specify the offset and limit parameters to control the amount of data returned.

Path Parameters

sessionId
string
required

The ID of the conversation for which to retrieve messages.

Query Parameters

offset
integer
default: "0"

The number of items to skip before starting to collect the result set.

limit
integer
default: "50"

The maximum number of items to return.

Headers

Authorization
string
required

Bearer token for authentication.

Response Fields

action_called
boolean

Indicates whether an action was called to handle the message.

client_extra_params
object

Additional parameters that the client can send to the bot.

from
string

The sender of the message. Can be ‘copilot’ or ‘user’.

knowldgebase_called
boolean

Indicates whether the knowledge base was called to handle the message.

message
string

The message text.

This endpoint is protected by the same JWT that the user uses to call other APIs. The response will include data for the specified chatbot, along with other metadata information.

This endpoint points to the (v2) version of the API. The (v2) version of the API is the latest version and is recommended for all new development. Please update your code to use the (v2) version of the API.