Agents
Create an agent environment
Changed onCreates an OpenAI-hosted environment before creating a session. Requires access to the prewarming beta.
post/agents/environments
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/environments
- AuthHTTP bearer
Headers
Idempotency-Keystring
Deduplicates creation for 24 hours within the authenticated organization, project, and creator. Retry the same JSON parameters with the same key to retrieve the original environment in its current state. Different parameters or an incomplete hosted creation return 409. Deleted environments are not recreated. After retention expires, the key may create a new environment. Without this header, each request creates a new environment.
Request body
Response
The created OpenAI-hosted environment.
Changes
- warning
added the new
suspendedenum value to theresponse property for the response status
- warning
- info
endpoint added
- info