---
title: "Read one of my fantasy calculations"
method: GET
path: "/v1/fantasy/jobs/{job_id}"
tags: ["fantasy"]
---

# Read one of my fantasy calculations

`GET /v1/fantasy/jobs/{job_id}`

## Request

- Base URL: `https://api.predixsport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.predixsport.com/v1/fantasy/jobs/{job_id}`
- Auth: none declared

The state of a calculation started with `Prefer: respond-async` (the NBA squad builder and the NBA transfer plan), or of one whose synchronous call answered 503 with a `Location` to this endpoint. `status` is `queued` (with `queue_position`, the jobs ahead of it), `running`, `done` or `failed`. When `done`, `result` is exactly the body the synchronous endpoint returns. When `failed`, `error` carries the status and the sentence the synchronous call would have answered. Poll every two or three seconds, a build takes up to about 30. A job is readable for six hours and only by the account that started it: anybody else gets 404. Reading it changes nothing and costs no quota.

## Path parameters

- `job_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- FantasyJobResponse
  - `job_id` string, required
  - `kind` string, required
  - `status` 'queued' | 'running' | 'done' | 'failed', required
  - `queue_position` integer, nullable
  - `result` object, nullable: When `done`: the exact body the synchronous endpoint returns (NBAFantasySquadResponse for nba.squad_builder, NBAFantasyTransfersResponse for nba.transfers).
  - `error` FantasyJobError
    - `status_code` integer, required: The status the synchronous call would have answered (400, 404, 409 or 503).
    - `detail` string, required: The sentence to show the owner.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/predixsport/apis/predixsport-api.md) · [All operations](https://skmtc.dev/predixsport/apis/predixsport-api/llms.txt) · [OpenAPI document](https://skmtc.dev/predixsport/apis/predixsport-api/revisions/02014aee733d?raw)
