Skip to main content
GET
List Conversation Messages

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Query Parameters

user
string
required

End-user identifier, defined by your app and unique within it. Conversations belong to the app, the environment, and this user together; later reads and changes must send the same value. See End User Identity.

Required string length: 1 - 255
conversation_id
string<uuid>
required

ID of the conversation to read. Get conversation IDs from List Conversations.

first_id
string<uuid>

Pagination cursor: the id of the first message on the current page. Pass it to fetch the previous (older) page; omit to fetch the latest messages.

limit
integer
default:20

Number of chat history messages to return per request.

Required range: 1 <= x <= 100

Response

One page of the conversation's messages, oldest first.

limit
integer

Page size applied to this page.

has_more
boolean

Whether earlier messages exist.

data
object[]

Messages, oldest first.