---
title: "GET /api/jobs/{id}"
method: GET
path: "/api/jobs/{id}"
tags: ["api", "jobs"]
---

# GET /api/jobs/{id}

`GET /api/jobs/{id}`

Get an job

## Path parameters

- `id` string, required

## Response `200`

OK

- union
  - object
    - `_id` string, required — The ID of the job
    - `sellerId` string, required — The ID of the seller of the job
    - `title` string — The title of the job
    - `type` 'transformJob', required
    - `status` 'SCHEDULED' | 'RUNNING' | 'FAILED' | 'COMPLETED' | 'COMPLETED_WITH_ERRORS' — The status of the job.
    - `runAfter` string, date-time — An ISO timestamp indicating after which time the job should be run.
    - `startedAt` string, date-time — An ISO timestamp indicating when the job started
    - `finishedAt` string, date-time — An ISO timestamp indicating when the job finished
    - `payload` union
      - object
        - `resource` 'ticketRangeInvalidation', required
        - `csv` string — An URL to download the CSV data.
        - `json` string — An URL to download the JSON data.
        - `params` object
          - `batch` string — A UUId indicating in which batch the tickets were created
          - `groups` array[]
            - integer[]
      - object
        - `csv` string — An URL to download the CSV data.
        - `json` string — An URL to download the JSON data.
  - object
    - `_id` string, required — The ID of the job
    - `sellerId` string, required — The ID of the seller of the job
    - `title` string — The title of the job
    - `status` 'SCHEDULED' | 'RUNNING' | 'FAILED' | 'COMPLETED' | 'COMPLETED_WITH_ERRORS' — The status of the job.
    - `runAfter` string, date-time — An ISO timestamp indicating after which time the job should be run.
    - `startedAt` string, date-time — An ISO timestamp indicating when the job started
    - `finishedAt` string, date-time — An ISO timestamp indicating when the job finished
    - `type` 'import' | 'export' | 'delete' | 'scheduledJob', required — The type of job.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
