Agents
List agent environments
Changed onLists OpenAI-hosted environments owned by the authenticated principal. Requires access to the prewarming beta.
get/agents/environments
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/environments
- AuthHTTP bearer
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.
type'openai_hosted'
The hosting type of an execution environment.
The hosting type to list. Defaults to openai_hosted.
Response
A page of owned environments.
Changes
- warning
added the new
suspendedenum value to the//response property for the response status
- warning
- info
endpoint added
- info