---
title: "Get a migration job"
method: GET
path: "/migration-jobs/{job_number}"
tags: ["private"]
---

# Get a migration job

`GET /migration-jobs/{job_number}`

## Request

- Base URL: `/v1` (relative, and the document’s source URL is not known)
- URL: `/v1/migration-jobs/{job_number}`
- Auth: API key in header `Authorization`

Gets a specific migration job using the unique job number

## Path parameters

- `job_number` integer, required

## Response `200`

Successful response

- MigrationJob
  - `job_number` integer
  - `last_updated` string, date-time
  - `label` string: The title of the source dataset, automatically populated during job creation
  - `links` object
    - `events` object: A link to all the events for the migration job
      - `href` string: A fully qualified URL to the migration job's events API response
    - `self` object: A link to the individual migration job
      - `href` string: A fully qualified URL to the migration job API response
      - `job_number` integer
    - `tasks` object: A link to all the tasks for the migration job
      - `href` string: A fully qualified URL to the migration job's tasks API response
  - `config` MigrationJobConfig
    - `collection_id` string
    - `source_id` string
    - `target_id` string
    - `type` 'static_dataset'
  - `state` 'submitted' | 'in_review' | 'approved' | 'published' | 'completed' | 'rejected' | 'cancelled' | 'migrating' | 'publishing' | 'pending_post_publish' | 'post_publishing' | 'reverting' | 'failed_post_publish' | 'failed_publish' | 'failed_migration' | 'failed_reversion'
  - `type` 'static_dataset'

## Other responses

- `401`: Request is not authenticated
- `403`: Request is not authorised
- `404`: Migration Job not found
- `500`: Generic error response

---

[API](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/dis-migration-service/revisions/5dddd1472e20?raw)
