---
title: "Get detailed information about a specific container"
method: GET
path: "/projects/{project_id}/environments/{environment_id}/containers/{container_id}"
tags: ["Containers"]
---

# Get detailed information about a specific container

`GET /projects/{project_id}/environments/{environment_id}/containers/{container_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{environment_id}/containers/{container_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required
- `container_id` string, required

## Response `200`

Container details

- ContainerDetailResponse: Detailed container information with environment variables and metrics
  - `container_id` string, required
  - `container_name` string, required
  - `container_port` integer, nullable: Port inside the container
  - `cpu_limit_cores` number, double, nullable: CPU limit in whole cores (e.g. 1.0). None when no limit is configured.
  - `created_at` string, required
  - `deployed_at` string, required
  - `deployment_id` integer, required
  - `environment_variables` EnvVarResponse[], required: Environment variables (sensitive values masked)
    - `is_masked` boolean, required: Whether this is a sensitive/masked value
    - `key` string, required
    - `value` string, required
  - `error_message` string, nullable: Free-form error string from Docker's container state on exit.
  - `exit_code` integer, nullable: Process exit code reported by Docker. None while still running.
  - `exit_reason` string, nullable: Human-readable reason the container exited.
  - `finished_at` string, nullable: When the container exited (Docker's FinishedAt). None while running.
  - `health_checked_at` string, nullable
  - `health_detail` string, nullable
  - `health_state` string, required
  - `host_port` integer, nullable: Port on the host machine
  - `id` integer, required
  - `image_name` string, required
  - `oom_killed` boolean, nullable: True when Docker's OOM killer terminated the container.
  - `ready_at` string, nullable
  - `resource_limits` ResourceLimitsResponse, nullable: Container resource limits
    - `cpu_limit` integer, nullable
    - `cpu_request` integer, nullable
    - `memory_limit` integer, nullable
    - `memory_request` integer, nullable
  - `restart_count` integer, nullable: Container restart count from Docker
  - `service_name` string, nullable: Compose service name (e.g. "web", "redis"). None for single-container deployments.
  - `service_url` string, nullable: Per-service URL for compose deployments. The service's first public URL when it exposes several ports.
  - `service_urls` ServicePublicUrl[]: Every public URL of this compose service, one per public port.
    - `port` integer, required: Container port this URL routes to.
    - `service` string, required: Compose service this URL routes to.
    - `url` string, required
  - `started_at` string, nullable: When the container's main process most recently started.
  - `status` string, required

## Other responses

- `404`: Container not found
- `409`: The container is placed on this process, which has no local Docker daemon
- `500`: Internal server error

## Changes

- **2026-10-18** `b1faaa2f65bf`: 2 breaking, 3 info
  - the response property `container_port` became nullable for the status `200`
  - the response property `container_port` became optional for the status `200`
  - added the optional property `health_checked_at` to the response with the `200` status
  - added the optional property `health_detail` to the response with the `200` status
  - …1 more
- **2026-10-05** `4b228ebed583`: 2 info
  - added the non-success response with the status `409`
  - added the optional property `service_urls` to the response with the `200` status
- **2026-10-05** `63a80791dc58`: 1 warning, 1 info
  - removed the optional property `service_urls` from the response with the `200` status
  - removed the non-success response with the status `409`
- **2026-09-27** `2fa9c556f2e8`: 1 info
  - added the optional property `service_urls` to the response with the `200` status
- **2026-09-20** `30549d48a6e6`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/containers/:container_id/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
