List items for a specific subagent turn to verify messages, tool calls, and reasoning summaries.
Endpoint
GET /agents/sessions/{session_id}/subagents/{subagent_id}/turns/{turn_id}/items
Returns items for a specific subagent turn. Returns 200 on success. The query does not start or resume a subagent, and does not create resources.
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
session_id | Yes | string | Session ID, for example sess_xxx |
subagent_id | Yes | string | Stable subagent ID, for example subagent_xxx |
turn_id | Yes | string | Public turn ID, for example turn_xxx |
Request parameters
| Field | Required | Type | Description |
|---|---|---|---|
limit | No | integer | Page size, range 1–100, default 20 |
order | No | string | Sort direction, asc or desc, default desc |
after | No | string | The last_id from the previous page; the cursor item is excluded |
before is ignored and is not used for reverse pagination. Use order and after to page.
Request example
Response example
Response fields
List envelope:
| Field | Type | Description |
|---|---|---|
object | string | List object type, fixed as list |
data | array<Item> | Items on this page; [] when empty |
first_id | string / null | First item ID on this page; null for an empty page |
last_id | string / null | Last item ID on this page; null for an empty page; use it as after |
has_more | boolean | Whether the current scan direction has another page |
id, turn_id, and type. Business fields are at the top level. For item types and content parts, see List Items.
Persisted items use final content. SSE item.added can show an in-progress item; an unfinished real-time item is not guaranteed to appear in the list.
Error codes
| HTTP status | Error type / code | Solution |
|---|---|---|
400 | invalid_request_error / invalid_request_error | Fix limit and order as described in the query parameters; use the last_id returned by the previous page as after |
404 | not_found_error / not_found_error | Confirm that the session, subagent, and turn exist in the same workspace, and use matching path levels |
502 | server_error / agents_api_upstream_unavailable | Retry later. If it keeps failing, submit a ticket with the x-request-id from the response headers |