---
title: "Get a background job"
method: GET
path: "/jobs/{id}"
tags: ["Jobs"]
---

# Get a background job

`GET /jobs/{id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/jobs/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `id` string, required: Job ID

## Response `200`

OK

- JobResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `attempts` integer, required: Number of attempts
  - `created_at` string, required: Creation time
  - `id` string, required: Job ID
  - `last_error` string: Last error message
  - `locked_at` string: When job was locked
  - `max_attempts` integer, required: Maximum attempts
  - `payload` string: Job payload
  - `publication_id` string: Publication associated with this job, when available
  - `run_at` string, required: Scheduled run time
  - `status` string, required: Job status
  - `type` string, required: Job type

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
