List messages in a channel
Retrieve the message history for a channel. Results are paginated using a cursor. Filter by session_id or role.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| channel_id | string | path | Yes | The unique identifier of the channel. |
| session_id | string | query | No | Filter messages to a specific session. |
| role | string | query | No | Filter by role: user or assistant. |
| cursor | string | query | No | Pagination cursor from a previous response. |
| limit | integer | query | No | Number of results to return (default 20, max 100). |
Response
{
"messages": [
{
"id": "msg_01hxyz",
"session_id": "ses_01hxyz",
"role": "user",
"content": "string",
"created_at": "2026-03-19T12:00:00Z"
}
],
"next_cursor": "cur_01hxyz",
"has_more": true
}