Agents
List agent session artifacts
Changed onLists immutable artifacts published by completed hosted session turns. See session artifacts.
get/agents/sessions/{session_id}/artifacts
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/sessions/{session_id}/artifacts
- 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.
environment_idstring nullable
Restrict the listing to artifacts produced by this environment.
Response
A page of durable session artifacts.
Changes
- breaking
for the
queryrequest parameterlimit, default value20was added - breaking
for the
queryrequest parameterorder, default valuedescwas added
- breaking
- info
endpoint added
- info