Developer Docs Logo
API RequestsAPI SchemaChats

Get Conversation Messages

GET/v1/conversations/{conversation_id}/messages

Retrieves messages from a conversation with pagination support. Messages can be sorted by creation date. Requires chat:read scope.

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

conversation_id*string

The unique identifier (UUID) of the conversation whose messages are requested.

Formatuuid

Query Parameters

limit?integer

Maximum number of messages per page (max 100).

Rangevalue <= 100
after?string

Cursor for pagination (get next page).

before?string

Cursor for pagination (get previous page).

sort_by?string

Sort order for messages (-created_at for newest first, +created_at for oldest first).

Default"-created_at"

Value in

  • "-created_at"
  • "+created_at"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/conversations/8b86b34d-3d4e-4f20-9d55-9d4c93d0b8a2/messages"
{  "data": [    {      "id": "b0dbb0d9-9fea-4a48-9bf6-4a5e2f0db8f6",      "content": "Hi Jane, here is the information you requested.",      "type": "MESSAGE",      "sender": {        "id": "9e9097a8-5c9a-4e1e-8218-3b833d8b0039",        "name": "Jane Agent",        "type": "AGENT"      },      "created_at": "2024-01-15T10:05:00Z"    }  ],  "metadata": {    "after": "7a30ad46-76a3-42df-9c0c-3fcf1b10f9d2",    "before": "2db87b94-212f-4f6f-badd-03b6dd6a1a4e"  }}