---
title: "Get a specific deployment by ID for a project (identified by ID or slug)"
method: GET
path: "/projects/{project_id}/deployments/{deployment_id}"
tags: ["Deployments"]
---

# Get a specific deployment by ID for a project (identified by ID or slug)

`GET /projects/{project_id}/deployments/{deployment_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}/deployments/{deployment_id}`
- Auth: none declared

## Path parameters

- `project_id` integer, required
- `deployment_id` integer, required

## Response `200`

Deployment details

- DeploymentResponse
  - `branch` string, nullable
  - `cancelled_reason` string, nullable
  - `commit_author` string, nullable
  - `commit_date` string, date-time, nullable
  - `commit_hash` string, nullable
  - `commit_message` string, nullable
  - `created_at` string, date-time, required
  - `deployment_config` DeploymentConfigSnapshot, nullable: Deployment configuration snapshot for deployments This extends DeploymentConfig with environment variables to capture the complete state of a deployment at the time it was created.
    - `automaticDeploy` boolean: Enable automatic deployments on git push
    - `containerExecEnabled` boolean: Enable container exec/shell access
    - `cpuLimit` integer, nullable: CPU limit in millicores
    - `cpuRequest` integer, nullable: CPU request in millicores
    - `environmentVariables` object: Environment variables used for this deployment
    - `exposedPort` integer, nullable: Port exposed by the container
    - `memoryLimit` integer, nullable: Memory limit in megabytes
    - `memoryRequest` integer, nullable: Memory request in megabytes
    - `performanceMetricsEnabled` boolean: Enable performance metrics collection
    - `replicas` integer: Number of replicas
    - `sessionRecordingEnabled` boolean: Enable session recording
  - `environment` DeploymentEnvironmentResponse, required
    - `domains` string[], required: Best first: the primary address (ADR 068 D4) leads when it is known.
    - `id` integer, required
    - `name` string, required
    - `no_address_reason` string, nullable: Why nobody can reach the environment; set only when Temps is sure.
    - `primary_url` string, nullable: The environment's primary address as a URL. `null` while it is not known, or when nobody can reach the environment.
    - `service_urls` ServicePublicUrl[]: Public URLs of this environment's Docker Compose services, one per configured public port. Empty for non-Compose projects.
      - `port` integer, required: Container port this URL routes to.
      - `service` string, required: Compose service this URL routes to.
      - `url` string, required
    - `slug` string, required
  - `environment_id` integer, required
  - `failure` DeploymentFailureInfo, nullable: API view of a failed deployment's classification.
    - `classifier_version` integer, required: Version of the classifier that produced this view.
    - `code` 'out_of_memory' | 'disk_exhausted' | 'timeout' | 'health_check_failed' | 'repository_authentication' | 'repository_not_found' | 'repository_clone' | 'dns_resolution' | 'network_connection' | 'dependency_lockfile_out_of_sync' | 'dependency_resolution' | 'dependency_download' | 'runtime_version_unsupported' | 'missing_build_script' | 'compile_error' | 'dockerfile_invalid' | 'base_image_pull' | 'image_missing' | 'static_output_missing' | 'port_unavailable' | 'permission_denied' | 'invalid_configuration' | 'container_start' | 'build_error' | 'platform_internal' | 'cancelled' | 'build_timeout' | 'source_timeout' | 'image_pull_timeout' | 'health_check_timeout' | 'app_not_listening' | 'container_exited' | 'image_not_found' | 'registry_authentication' | 'registry_rate_limited' | 'image_platform_mismatch' | 'compose_file_invalid' | 'compose_variable_missing' | 'compose_policy_rejected' | 'compose_build_failed' | 'compose_up_failed' | 'compose_unavailable' | 'volume_mount' | 'route_activation' | 'registry_unavailable' | 'image_pull_failed' | 'dockerfile_copy_not_found' | 'static_output_rejected' | 'build_node_unreachable' | 'static_deploy_failed' | 'entrypoint_needs_capability' | 'unknown', required: Allowlisted failure code.
    - `failed_job` string, nullable: Pipeline job that failed (e.g. `build_image`, `deploy_compose`).
    - `remediation` string, required: Concrete, actionable fix.
    - `settings_section` 'source' | 'build' | 'deploy' | 'environment_variables' | 'git' | 'docker_registry' | 'build_limits' | 'container_security', nullable: Settings surface that fixes a given failure. The console maps each value to a deep link; the API stays independent of console routes.
    - `stage` 'source' | 'configuration' | 'dependency_install' | 'build' | 'image' | 'deploy' | 'runtime' | 'health_check' | 'resource' | 'platform' | 'unknown', required: Pipeline stage the deployment failed in.
    - `suggested_fix` SuggestedFix, nullable: How to fix a deployment whose entrypoint needs a Linux capability. Temps never applies it on its own: a person, or an agent they confirmed, changes the setting and redeploys.
      - `allow_capabilities` ContainerCapability[], required: What to allow in the project's container security setting to fix it. Empty when the binary needs a capability no project can allow.
      - `image_fix` string, required: The fix in the image instead, which keeps full hardening.
      - `not_allowed_capabilities` string[], required: Required capabilities no project can allow; only changing the image fixes those.
      - `required_capabilities` string[], required: Capabilities the entrypoint binary carries, kernel names without `CAP_` (e.g. `NET_BIND_SERVICE`).
      - `setting` string, required: The project setting that fixes it.
      - `setting_path` string, nullable: The API path that reads and changes the setting, when the project is known (`/projects/{id}/container-security`).
      - `verified` boolean, required: Whether Temps read them from the binary (true) or inferred them because it could not read its file capabilities (false).
    - `timeout_elapsed_seconds` integer, nullable: How long the timed-out step ran, in seconds, when the reason states it.
    - `timeout_limit_seconds` integer, nullable: Time limit that was hit, in seconds, when the failure is a timeout and the reason states it.
    - `title` string, required: Short human title, e.g. "Image tag not found".
  - `finished_at` string, date-time, nullable
  - `id` integer, required
  - `image_user` string, nullable: The `USER` the image declares, as written (`nodejs`, `10001:10001`). `null` when it declares none (it then runs as root) or the deployment was not checked.
  - `is_current` boolean, required
  - `metadata` DeploymentMetadata, nullable: Deployment metadata - typed information about the deployment
    - `buildDurationMs` integer, nullable: Build duration in milliseconds
    - `builder` string, nullable: Docker builder used (e.g., "nixpacks", "dockerfile")
    - `command` string[], nullable: Command passed to a prebuilt image entrypoint. Stored in deployment metadata so redeploy, rollback, and node failover reproduce the exact workload rather than falling back to the image default.
    - `deploymentDurationMs` integer, nullable: Deployment duration in milliseconds
    - `deploymentSourceType` 'external' | 'git' | 'docker_image' | 'static_files' | 'uploaded_source' | 'manual', nullable: Source type for project deployments Determines where the deployment artifacts come from: - `External`: Telemetry only, without hosting - `Git`: Source code from a Git repository (traditional flow) - `DockerImage`: Pre-built Docker image from external registry - `StaticFiles`: Pre-built static files uploaded as a bundle - `UploadedSource`: Source archive uploaded without a Git repository - `Manual`: Flexible type that accepts any deployment method
    - `dockerfilePath` string, nullable: Dockerfile path if using Dockerfile builder
    - `externalImageId` integer, nullable: External image ID (reference to external_images table)
    - `externalImageRef` string, nullable: External Docker image reference (for docker_image source type) e.g., "ghcr.io/org/app:v1.0" or "docker.io/myapp:sha-abc123"
    - `fileCount` integer, nullable: Number of files in the build output
    - `gitPushEvent` GitPushEvent, nullable: Git push event information that triggered the deployment
      - `branch` string, required: Branch that was pushed
      - `commit` string, required: Commit SHA
      - `owner` string, required: Repository owner/organization
      - `repo` string, required: Repository name
    - `healthCheckPath` string, nullable: Explicit deploy-time HTTP health-check path override. Image/static deploys can't read `.temps.yaml`, so this lets the deploy request set a custom path (e.g. "/api/healthz"). When present it takes priority over any `.temps.yaml` `health.path` value. Always starts with '/'.
    - `imageSizeBytes` integer, nullable: Total size of the built image in bytes
    - `imageUploadedLocally` boolean: Whether the image was uploaded directly (via docker save/load) rather than pulled from registry When true, the PullExternalImageJob is skipped since the image is already loaded locally
    - `isRollback` boolean: Whether this is a rollback deployment
    - `labels` string[]: Custom labels/tags for the deployment
    - `rolledBackFromId` integer, nullable: ID of the deployment this was rolled back from (if applicable)
    - `runtimeOverrides` ContainerRuntimeOverrides, nullable: Exec-form container startup overrides. Arguments are passed verbatim without shell parsing; use an explicit shell entrypoint when shell syntax is needed.
      - `command` string[], nullable: Override image CMD. On creation, omitted/null uses the image default. On partial project updates, omission preserves the stored override; send null to restore the image default.
      - `entrypoint` string[], nullable: Override image ENTRYPOINT. On creation, omitted/null inherits; [] clears it. On partial project updates, omission preserves the stored override; send null to restore the image default, or [] to clear the entrypoint.
    - `sourceBundleContentType` string, nullable: Uploaded source archive content type.
    - `sourceBundleId` integer, nullable: Uploaded source archive ID. Source archives are extracted before the regular preset build pipeline and do not require Git metadata.
    - `sourceBundlePath` string, nullable: Uploaded source archive path in the Temps data directory.
    - `staticBundleContentType` string, nullable: Static bundle content type (for proper extraction: application/gzip or application/zip)
    - `staticBundleId` integer, nullable: Static bundle ID (reference to static_bundles table, for static_files source type)
    - `staticBundlePath` string, nullable: Static bundle path in blob storage (for static_files source type)
    - `uploadedImageId` string, nullable: Docker image ID of the locally uploaded image (sha256:...) Used to verify the image exists before deployment
  - `project_id` integer, required
  - `reachability_warning` ReachabilityWarning, nullable: D5: a successful deploy nobody can open. Computed, never stored.
    - `environment` string, required: The environment's label, as visitors would see it in a hostname.
    - `environment_id` integer, required
    - `fixes` ReachabilityFix[], required: The fixes that fit this install, best first.
      - `command` string, nullable: The command to run, when that is the fix.
      - `connector_id` integer, nullable: For the tunnel fix: the connector that would carry it.
      - `hostname` string, nullable: For the tunnel fix: the hostname it would get.
      - `href` string, nullable: The console page that applies it.
      - `kind` 'tunnel_environment_hosts' | 'preview_domain' | 'custom_domain' | 'worker_ingress', required: One way to fix a [`ReachabilityWarning`], in the order D5 lists them.
      - `label` string, required: What the button and the log line say.
    - `headline` string, required: `Deployed, but nobody can reach <label> yet`.
    - `reason` string, required: Why, about the address visitors would try first.
  - `runs_as_root` boolean: Whether this deployment's image runs its process as root (uid 0). Resolved once by the deploy pipeline, before any replica started, against the image's own `/etc/passwd`. `false` when the image runs as another user, its user could not be resolved, or the deployment predates the check. Advisory: a root image still deploys.
  - `screenshot_location` string, nullable
  - `started_at` string, date-time, nullable
  - `status` string, required
  - `tag` string, nullable
  - `url` string, required

## Other responses

- `404`: Project or deployment not found
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 4 breaking
  - the `commit_date` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `created_at` response's property type changed from `integer` to `string`, and format from `int64` to `date-time` for status `200`
  - the `finished_at` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
  - the `started_at` response's property type changed from `integer, null` to `string, null`, and format from `int64` to `date-time` for status `200`
- **2026-11-22** `2940c998fac2`: 2 warning, 1 info
  - added the new `container_security` enum value to the `failure/oneOf[#/components/schemas/DeploymentFailureInfo]/settings_section/oneOf[#/components/schemas/FailureSettingsSection]/` response property for the response status `200`
  - added the new `entrypoint_needs_capability` enum value to the `failure/oneOf[#/components/schemas/DeploymentFailureInfo]/code` response property for the response status `200`
  - added the optional property `failure/oneOf[#/components/schemas/DeploymentFailureInfo]/suggested_fix` to the response with the `200` status
- **2026-11-21** `aca961f8ebde`: 2 info
  - added the optional property `image_user` to the response with the `200` status
  - added the optional property `runs_as_root` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/deployments/:deployment_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)
