Skip to content

List Session Items

GET/v1/agents/sessions/{session_id}/items

Read conversation items (messages, tool calls, and outputs) with cursor pagination. Use this to recover output that was produced while no stream was open.

Path parameters

stringsession_idrequired

Session ID (ses_ prefix).

Query parameters

Optional<integer>limit

Page size from 1 to 100. Values outside the range return 400.

Default: 20

Optional<string>after

Cursor. Pass last_id from the previous page.

Optional<string>order

asc or desc by creation time.

Default: desc