Skip to main content
GET
/
messages
/
paginated
{
  "data": [
    {
      "task_id": "<string>",
      "content": {
        "author": "user",
        "content": "<string>",
        "type": "text",
        "style": "static",
        "format": "plain",
        "attachments": [
          {
            "file_id": "<string>",
            "name": "<string>",
            "size": 123,
            "type": "<string>"
          }
        ]
      },
      "id": "<string>",
      "streaming_status": "IN_PROGRESS",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next_cursor": "<string>",
  "has_more": false
}

Query Parameters

limit
integer
default:50
cursor
string | null
direction
enum<string>
default:older
Available options:
older,
newer
task_id
string
required

The task ID

Response

Successful Response

Response with cursor pagination metadata.

data
TaskMessage · object[]
required

List of messages

next_cursor
string | null

Cursor for fetching the next page of older messages

has_more
boolean
default:false

Whether there are more messages to fetch