---
title: "Get a Completion by Job ID"
method: GET
path: "/v1/job/{job_id}"
tags: ["Logging", "Results", "Completions", "Jobs", "Job Retrieval", "History", "Data Access"]
---

# Get a Completion by Job ID

`GET /v1/job/{job_id}`

## Request

- Base URL: `https://api.swarms.world`
- URL: `https://api.swarms.world/v1/job/{job_id}`
- Auth: none declared. Required headers: `x-api-key`

Fetch the stored result of a past completion by the job_id its response returned, or of a past /v1/agent/batch/completions call by its batch_id. Returns 404 when no completion with that id belongs to any API key on the caller's account, and 503 when the lookup fails and can be retried.

## Path parameters

- `job_id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- JobResultOutput: A past completion's stored response body, exactly as its endpoint returned it. Fields beyond those below depend on that endpoint.
  - `job_id` string, nullable: The job_id the completion response returned. Absent on /v1/agent/batch/completions results, which carry `batch_id` instead.
  - `batch_id` string, nullable: The batch_id a /v1/agent/batch/completions response returned. Present only on batch results.
  - `status` string, nullable: The run's status, e.g. 'success'. Absent on /v1/agent/completions results, which report `success` instead.
  - `usage` object, nullable: Token counts and the cost charged for the run, as the original response reported them.
  - `timestamp` string, nullable: When the run finished, in ISO 8601. Absent on /v1/swarm/completions results.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-22** `3d783c6da122`: 2 breaking, 1 info
  - the response property `job_id` became optional for the status `200`
  - response property `job_id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - added the optional property `batch_id` to the response with the `200` status
- **2026-10-16** `500c79520e41`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/changes/v1/job/:job_id/get.md)

---

[API](https://skmtc.dev/the-swarm-corporation/apis/swarms-api.md) - [All operations](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/revisions/fca99f497199?raw)
