Agents
List agent session items
Changed onLists items produced by the session's root agent, including its interactions with subagents. Each subagent has its own item history. See inspecting agent output.
get/agents/sessions/{session_id}/items
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/sessions/{session_id}/items
- AuthHTTP bearer
Path parameters
session_idstring required
The ID of the session.
Query parameters
limitinteger
The maximum number of resources to return, between 1 and 100. Defaults to 20.
order'asc' | 'desc'
The order in which paginated resources are returned.
The order in which resources are returned. Defaults to desc.
afterstring
Return resources after this resource ID in the selected order.
Response
A page of session items.
Changes
- breaking
added to the
/response propertyoneOflist for the response status - info
added
computer_use_callcomputer_use_approval_requestcomputer_use_approval_request_resultdiscriminator mapping keys to the/response property for the response status
- breaking
- info
endpoint added
- info