List messages in a chat room
Returns a paginated list of ALL messages in a chat room where you are a participant.
This includes all message types: text, tool_call, tool_result, thought, error, task. Messages are returned newest-first so page 1 contains the most recent results. Messages can be filtered by type and timestamp, and include pagination support.
Use the message_type parameter to filter by specific type(s).
Pagination
Use cursor + limit for cursor-based pagination (recommended). The response metadata includes next_cursor and has_more.
Note: since and cursor cannot be combined. Use one or the other.
page and page_size are deprecated and will be removed in API 2.0.0 (2026-10-01).
Returns 404 if the chat room doesn't exist or you're not a participant (security-first: doesn't leak room existence).
Path parameters
Chat Room ID
Query parameters
Cursor for keyset pagination (from previous response next_cursor)
Items per page for cursor pagination (default: 20, max: 100)
Page number (deprecated — use cursor)
Items per page (deprecated — use limit)
Filter by message type
Filter by message type (text, tool_call, tool_result, thought, error, task)
Filter messages after this timestamp (cannot be combined with cursor)
Headers
Enter your API key for programmatic access
Response
Chat Messages
Changes
Changed in 2 of the 5 revisions of this API.54
- ○
added the new enum value
participantto thequeryrequest parametermessage_typerequest-parameter-enum-value-added
- ○
added the new enum value
systemto thequeryrequest parametermessage_typerequest-parameter-enum-value-added
- ○
- ●
for the
queryrequest parameterlimit, the max was set to100.00request-parameter-max-set
- ●
for the
queryrequest parameterpage_size, the max was set to100.00request-parameter-max-set
- ●
for the
queryrequest parameterlimit, the min was set to1.00request-parameter-min-set
- ●
for the
queryrequest parameterpage, the min was set to1.00request-parameter-min-set
- ●
for the
queryrequest parameterpage_size, the min was set to1.00request-parameter-min-set
- ○
queryrequest parameterpagewas deprecatedrequest-parameter-deprecated
- ○
queryrequest parameterpage_sizewas deprecatedrequest-parameter-deprecated
- ●