---
title: "Get deployment"
method: GET
path: "/v1/workspaces/{workspaceId}/deployments/{deploymentId}"
---

# Get deployment

`GET /v1/workspaces/{workspaceId}/deployments/{deploymentId}`

## Path parameters

- `workspaceId` string, required
- `deploymentId` string, required

## Response `200`

OK response

- DeploymentWithVariablesAndSystems
  - `deployment` Deployment, required
    - `description` string
    - `id` string, required
    - `jobAgentConfig` object, required
    - `jobAgentSelector` string, required — CEL expression to match job agents
    - `metadata` object
    - `name` string, required
    - `resourceSelector` string — CEL expression to determine if the deployment should be used
    - `slug` string, required
  - `systems` System[], required
    - `description` string
    - `id` string, required
    - `metadata` object
    - `name` string, required
    - `slug` string, required
    - `workspaceId` string, required
  - `variables` DeploymentVariableWithValues[], required
    - `values` DeploymentVariableValue[], required
      - `deploymentVariableId` string, required
      - `id` string, required
      - `priority` integer, required
      - `resourceSelector` string — A CEL expression to select which resources this value applies to
      - `value` union, required
        - union
          - boolean
          - number
          - integer
          - string
          - ObjectValue
            - `object` object, required
          - true
        - ReferenceValue
          - `path` string[], required
          - `reference` string, required
        - SensitiveValue
          - `valueHash` string, required
    - `variable` DeploymentVariable, required
      - `deploymentId` string, required
      - `description` string
      - `id` string, required
      - `key` string, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

## Changes

- **2026-04-23** `4d1982997771` — 1 warning
  - removed the optional property `variables/items/variable/defaultValue` from the response with the `200` status
- **2026-04-08** `6199a729d4a1` — 2 warning
  - removed the optional property `deployment/jobAgentId` from the response with the `200` status
  - removed the optional property `deployment/jobAgents` from the response with the `200` status
- **2026-04-08** `e8cfb6371d5e` — 1 info
  - the response property `deployment/jobAgentSelector` became required for the status `200`
- **2026-04-07** `cd9427a233bc` — 1 info
  - added the optional property `deployment/jobAgentSelector` to the response with the `200` status
- **2026-03-11** `ac4f338f40a7` — 1 breaking, 1 info
  - the `deployment/resourceSelector` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - removed `#/components/schemas/JsonSelector, #/components/schemas/CelSelector` from the `deployment/resourceSelector` response property `oneOf` list for the response status `200`

[Full history](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/changes/v1/workspaces/:workspaceId/deployments/:deploymentId/get.md)

---

[API](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api.md) · [All operations](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ctrlplanedev/ctrlplane-api/revisions/156e0d264995/schema)
