---
title: "List job deployments"
method: GET
path: "/job/{jobId}/deploymentHistory"
tags: ["Job Deployment History"]
---

# List job deployments

`GET /job/{jobId}/deploymentHistory`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/job/{jobId}/deploymentHistory`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/job/:jobId/deploymentHistory/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the 20 last job deployments

## Path parameters

- `jobId` string, uuid, required

## Response `200`

List deployment history

- object
  - `page` number, required
  - `page_size` number, required
  - `results` DeploymentHistoryJobResponse[]
    - `id` string, uuid, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time
    - `name` string: name of the job
    - `status` 'BUILDING' | 'BUILD_ERROR' | 'CANCELED' | 'CANCELING' | 'DELETED' | 'DELETE_ERROR' | 'DELETE_QUEUED' | 'DELETING' | 'DEPLOYED' | 'DEPLOYING' | 'DEPLOYMENT_ERROR' | 'DEPLOYMENT_QUEUED' | 'EXECUTING' | 'QUEUED' | 'READY' | 'RECAP' | 'RESTARTED' | 'RESTARTING' | 'RESTART_ERROR' | 'RESTART_QUEUED' | 'STOPPED' | 'STOPPING' | 'STOP_ERROR' | 'STOP_QUEUED' | 'WAITING_DELETING' | 'WAITING_RESTARTING' | 'WAITING_RUNNING' | 'WAITING_STOPPING'
    - `image_name` string
    - `tag` string
    - `commit` Commit, nullable
      - `created_at` string, date-time, required
      - `git_commit_id` string, required
      - `tag` string, required
      - `message` string, required
      - `author_name` string, required
      - `author_avatar_url` string
      - `commit_page_url` string
    - `schedule` object
      - `event` 'ON_START' | 'ON_STOP' | 'ON_DELETE' | 'CRON': On which event the job is going to run. ON_START means when a deployment is requested for the environment ON_STOP means when a stop of the environment is requested ON_DELETE means when an environment delete is requested CRON means at a scheduled interval
      - `schedule_at` string, cron, nullable: Can only be set if the event is CRON. Represent the cron format for the job schedule without seconds. For example: `* * * * *` represent the cron to launch the job every minute. See https://crontab.guru/ to WISIWIG interface. Timezone is UTC
    - `arguments` string[]
    - `entrypoint` string

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
