---
title: "Get deployment"
method: GET
path: "/api/v1/deployments/{deploymentId}"
tags: ["deployments"]
---

# Get deployment

`GET /api/v1/deployments/{deploymentId}`

## Request

- Base URL: `https://api.trigger.dev`
- URL: `https://api.trigger.dev/api/v1/deployments/{deploymentId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/triggerdotdev/apis/trigger-dev-v3-rest-api/docs/api/v1/deployments/:deploymentId/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve information about a specific deployment by its ID.

## Response `200`

Successful request

- object
  - `id` string: The deployment ID
  - `status` 'PENDING' | 'INSTALLING' | 'BUILDING' | 'DEPLOYING' | 'DEPLOYED' | 'FAILED' | 'CANCELED' | 'TIMED_OUT': The current status of the deployment
  - `contentHash` string: Hash of the deployment content
  - `shortCode` string: The short code for the deployment
  - `version` string: The deployment version (e.g., "20250228.1")
  - `imageReference` string, nullable: Reference to the deployment image
  - `imagePlatform` string: Platform of the deployment image
  - `externalId` string: The external deployment id this deployment was deployed under (`--external-id`), used by version skew protection to pin runs. Absent if the deployment was deployed without one
  - `externalBuildData` object, nullable: External build data if applicable
  - `errorData` object, nullable: Error data if the deployment failed
  - `worker` object, nullable: Worker information if available
    - `id` string
    - `version` string
    - `tasks` object[]
      - `id` string
      - `slug` string
      - `filePath` string
      - `exportName` string

## Other responses

- `401`: Unauthorized - Access token is missing or invalid
- `404`: Deployment not found

## Changes

- **2026-09-07** `7ba473919f79`: 1 info
  - added the optional property `externalId` to the response with the `200` status
- **2026-01-30** `081d78e002cb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/triggerdotdev/apis/trigger-dev-v3-rest-api/changes/api/v1/deployments/:deploymentId/get.md)

---

[API](https://skmtc.dev/triggerdotdev/apis/trigger-dev-v3-rest-api.md) - [All operations](https://skmtc.dev/triggerdotdev/apis/trigger-dev-v3-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/triggerdotdev/apis/trigger-dev-v3-rest-api/revisions/441161111493?raw)
