---
ai:
  exclude: true
search:
  tags:
    - Backup and Restore
    - GET
seo:
  description: >-
    Get job by id. The user must be a sysadmin or the… Reference for the GET
    /rest/api/backup-restore/jobs/{jobId} endpoint in the Confluence Data Center
    API.
sidebar:
  label: Get job by ID
  badge: GET
title: Get job by ID
type: openapi-operation
---
Get job by id. The user must be a sysadmin or the owner of the job.

`GET /rest/api/backup-restore/jobs/{jobId}`

**Responses**

- `200` — Returns a JSON representation of the backup/restore job
- `400` — Returned if jobId is null
- `403` — Returned if job not found or user doesn't have permission to see it

Response example, 200:

```json
{
  "id": 1,
  "jobOperation": "BACKUP",
  "jobScope": "SITE",
  "jobState": "IN_PROGRESS",
  "createTime": "2020-01-01T01:01:01Z",
  "startProcessingTime": "2020-01-01T01:01:01Z",
  "finishProcessingTime": "2020-01-01T01:01:01Z",
  "cancelTime": "2020-01-01T01:01:01Z",
  "errorMessage": "Error message",
  "owner": "admin",
  "cancelledBy": "admin",
  "fileName": "backup-2020-01-01.zip",
  "spaceKeys": "spaceKey1,spaceKey2",
  "fileDeleteTime": "2020-01-01T01:01:01Z",
  "fileExists": true
}
```
