> ## 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 operation

> Poll this until the state is succeeded, failed or cancelled. A failed job has a failureCode.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/deployments/{id}/jobs/{jobId}
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}/jobs/{jobId}:
    get:
      tags:
        - Operations
      summary: Read one operation
      description: >-
        Poll this until the state is succeeded, failed or cancelled. A failed
        job has a failureCode.
      operationId: getJob
      parameters:
        - name: id
          in: path
          required: true
          description: The deployment id.
          schema:
            type: string
            format: uuid
        - name: jobId
          in: path
          required: true
          description: The job id.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The job.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    const: true
                  message:
                    type: string
                  data:
                    $ref: '#/components/schemas/Job'
                  request_id:
                    type: string
                required:
                  - success
                  - message
                  - data
                  - request_id
              example:
                success: true
                message: Job retrieved successfully
                data:
                  id: 0d9c8b7a-6f5e-4d3c-9b2a-1f0e9d8c7b6a
                  deploymentId: e2a7c9f0-1b3d-4c5e-9f8a-7b6c5d4e3f21
                  type: deploy_release
                  state: succeeded
                  failureCode: null
                  createdAt: '2026-11-20T14:20:00.000Z'
                  startedAt: '2026-11-20T14:20:31.000Z'
                  finishedAt: '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:
    Job:
      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)$
        deploymentId:
          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)$
        type:
          type: string
          enum:
            - install
            - deploy_release
            - rollback
            - restart
            - config_update
            - destroy
            - migration
            - infra_upgrade
            - health_report
            - preflight
            - health_check
            - configure_domain
            - remove_domain
            - purge
        state:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - cancelled
        failureCode:
          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))$
        startedAt:
          anyOf:
            - 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))$
            - type: 'null'
        finishedAt:
          anyOf:
            - 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))$
            - type: 'null'
      required:
        - id
        - deploymentId
        - type
        - state
        - failureCode
        - createdAt
        - startedAt
        - finishedAt
      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.