Skip to main content
GET
Get a Completion by Job ID

Headers

x-api-key
string
required

Path Parameters

job_id
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_-]+$

Response

Successful Response

A past completion's stored response body, exactly as its endpoint returned it. Fields beyond those below depend on that endpoint.

job_id
string | null

The job_id the completion response returned. Absent on /v1/agent/batch/completions results, which carry batch_id instead.

batch_id
string | null

The batch_id a /v1/agent/batch/completions response returned. Present only on batch results.

status
string | null

The run's status, e.g. 'success'. Absent on /v1/agent/completions results, which report success instead.

usage
Usage · object | null

Token counts and the cost charged for the run, as the original response reported them.

timestamp
string | null

When the run finished, in ISO 8601. Absent on /v1/swarm/completions results.