Retrieve container
GET/containers/{container_id}
Retrieve Container
Path Parameters
container_id: string
Returns
id: string
Unique identifier for the container.
created_at: number
Unix timestamp (in seconds) when the container was created.
name: string
Name of the container.
object: string
The type of this object.
status: string
Status of the container (e.g., active, deleted).
last_active_at: optional number
Unix timestamp (in seconds) when the container was last active.
Retrieve container
curl https://api.openai.com/v1/containers/cntr_682dfebaacac8198bbfe9c2474fb6f4a085685cbe3cb5863 \
-H "Authorization: Bearer $OPENAI_API_KEY"
{
"id": "cntr_682dfebaacac8198bbfe9c2474fb6f4a085685cbe3cb5863",
"object": "container",
"created_at": 1747844794,
"status": "running",
"expires_after": {
"anchor": "last_active_at",
"minutes": 20
},
"last_active_at": 1747844794,
"memory_limit": "4g",
"name": "My Container"
}
Returns Examples
{
"id": "cntr_682dfebaacac8198bbfe9c2474fb6f4a085685cbe3cb5863",
"object": "container",
"created_at": 1747844794,
"status": "running",
"expires_after": {
"anchor": "last_active_at",
"minutes": 20
},
"last_active_at": 1747844794,
"memory_limit": "4g",
"name": "My Container"
}