> ## Documentation Index
> Fetch the complete documentation index at: https://deployz.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read one deployment and its state



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/deployments/{id}
openapi: 3.1.0
info:
  title: Deployz vendor API
  version: 1.0.0
  description: >-
    Build releases and deploy them to your customers from your own pipeline.
    Create an API key on the API keys page of the Deployz dashboard, and send it
    in the header `Authorization: Bearer <key>`. A key has read or deploy
    permission and works only while the person who created it is an owner or an
    admin. Deploy, restart and rollback answer 202 with a job. Poll the job
    until its state is succeeded, failed or cancelled. Every answer is `{
    success, message, data, request_id }`, except this document. Every error is
    `{ success: false, error: { code, message }, request_id }`. The `request_id`
    is also the `X-Request-Id` header: quote it when you ask for support. A key
    can make 120 requests a minute. Over the limit the answer is 429 with a
    `Retry-After` header.
servers:
  - url: https://api.deployz.dev
security:
  - bearerAuth: []
tags:
  - name: Applications
    description: The applications of your organization.
  - name: Releases
    description: Build a release from a commit and follow its build.
  - name: Deployments
    description: Read deployments, and deploy, restart, or roll back one.
  - name: Operations
    description: Follow an operation that deploy, restart, or rollback started.
paths:
  /api/v1/deployments/{id}:
    get:
      tags:
        - Deployments
      summary: Read one deployment and its state
      operationId: getDeployment
      parameters:
        - name: id
          in: path
          required: true
          description: The deployment id.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The deployment.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    const: true
                  message:
                    type: string
                  data:
                    $ref: '#/components/schemas/Deployment'
                  request_id:
                    type: string
                required:
                  - success
                  - message
                  - data
                  - request_id
              example:
                success: true
                message: Deployment retrieved successfully
                data:
                  id: e2a7c9f0-1b3d-4c5e-9f8a-7b6c5d4e3f21
                  applicationId: 3f1c2a9e-7b4d-4e8a-9c21-5d6f7a8b9c0d
                  applicationName: acme-crm
                  customerId: 5c8d7e6f-4a3b-4c2d-8e1f-0a9b8c7d6e5f
                  customerName: Northwind Logistics
                  region: eu-west-1
                  installStatus: null
                  state: HEALTHY
                  cleanupState: null
                  healthStatus: HEALTHY
                  currentRelease:
                    id: b7e4d2c1-5a6f-4b3e-8d9c-0a1b2c3d4e5f
                    version: 1.4.0
                  url: https://crm.example.com
                  createdAt: '2026-10-05T11:20:00.000Z'
                  updatedAt: '2026-11-20T14:31:09.000Z'
                request_id: 8c5d4c68-b488-41c7-934f-6f9e9ce83d7b
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Deployment:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        applicationId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        applicationName:
          type: string
        customerId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        customerName:
          type: string
        region:
          type: string
          enum:
            - us-east-1
            - us-east-2
            - us-west-1
            - us-west-2
            - ca-central-1
            - sa-east-1
            - eu-west-1
            - eu-west-2
            - eu-west-3
            - eu-central-1
            - eu-north-1
            - ap-northeast-1
            - ap-northeast-2
            - ap-northeast-3
            - ap-south-1
            - ap-southeast-1
            - ap-southeast-2
        installStatus:
          anyOf:
            - type: string
              enum:
                - waiting_for_release
                - ready_to_install
            - type: 'null'
        state:
          type: string
          enum:
            - NOT_INSTALLED
            - WAITING_FOR_RELAY
            - INSTALLING
            - HEALTHY
            - UPDATING
            - UPDATE_AVAILABLE
            - FAILED
            - DISCONNECTED
            - DELETING
            - DELETED
        cleanupState:
          anyOf:
            - type: string
              enum:
                - SKIPPED_RELAY_OFFLINE
                - PURGE_FAILED
                - CONFIRMED_BY_OWNER
                - COMPLETE
            - type: 'null'
        healthStatus:
          type: string
          enum:
            - UNKNOWN
            - HEALTHY
            - DEGRADED
            - UNHEALTHY
        currentRelease:
          anyOf:
            - type: object
              properties:
                id:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                version:
                  type:
                    - string
                    - 'null'
              required:
                - id
                - version
              additionalProperties: false
            - type: 'null'
        url:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      required:
        - id
        - applicationId
        - applicationName
        - customerId
        - customerName
        - region
        - installStatus
        - state
        - cleanupState
        - healthStatus
        - currentRelease
        - url
        - createdAt
        - updatedAt
      additionalProperties: false
    Error:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
          additionalProperties: false
        request_id:
          type: string
      required:
        - success
        - error
        - request_id
      additionalProperties: false
  responses:
    Unauthorized:
      description: >-
        The key is missing or not valid. Codes: API_KEY_INVALID,
        API_KEY_EXPIRED, KEY_CREATOR_INACTIVE.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: API_KEY_INVALID
              message: The API key is not valid
            request_id: 8c5d4c68-b488-41c7-934f-6f9e9ce83d7b
    NotFound:
      description: The resource does not exist in your organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 'More than 120 requests in one minute. Code: RATE_LIMITED.'
      headers:
        Retry-After:
          description: Seconds to wait.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: RATE_LIMITED
              message: Too many requests. Wait before you try again.
            request_id: 8c5d4c68-b488-41c7-934f-6f9e9ce83d7b
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key: dz_<id>_<secret>.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.