Agents
List agent session turns
Changed onLists turns by creation time and turn ID. The after cursor is exclusive in the selected order. See session turns.
get/agents/sessions/{session_id}/turns
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/sessions/{session_id}/turns
- 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 turns.
Changes
- warning
added the new
billing_not_activeenum value to the///////response property for the response status
- warning
- info
endpoint added
- info