> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# Get an interactive future

> Poll an interactive future for its status and result. With wait=true, the request waits up to 25 seconds, and the service retains results for one hour.

`GET /v1/training/jobs/{job_id}/futures/{future_id}`

Every interactive-job call that does work returns a `future_id`. Poll the future
until its `status` is `completed`, `failed`, or `cancelled`. Use `wait=true` to
wait at most 25 seconds per request; a timeout can still return a nonterminal
future. Results are retained for one hour.

## Request

**X-API-Key** `string` *required*

Your Fastino API key.

**job\_id** `string` *required*

Interactive job ID.

**future\_id** `string` *required*

Future ID returned when the work was queued.

**wait** `boolean` (default: false)

Wait up to 25 seconds for an unfinished future before answering. Repeat
the request until it finishes.

```bash cURL theme={null}
curl "https://api.fastino.ai/v1/training/jobs/$TRAINING_JOB_ID/futures/$FUTURE_ID?wait=true" \
  -H "X-API-Key: $FASTINO_API_KEY"
```

## Response

**future\_id** `string`

The future.

**job\_id** `string`

The job.

**type** `string`

`create`, `load`, `forward`, `forward_backward`, `optim_step`, `save`, or `sample`.

**status** `string`

`pending`, `running`, `completed`, `failed`, or `cancelled`.

**queue\_state** `string | null`

While unfinished: `active`, or `paused_capacity` while waiting for a team training-job slot or GPU capacity.

**queue\_state\_reason** `string | null`

A human-readable capacity explanation while `queue_state` is
`paused_capacity`; otherwise `null`.

**result** `any`

Once `completed`:

* `forward` and `forward_backward`: `loss_fn_outputs` (one entry of tensors per
  datum, such as `logprobs`) and `metrics`.
* `sample`: `sequences`, each with `tokens`, `logprobs`, and `stop_reason`,
  plus `prompt_logprobs` when requested.
* `save`: the checkpoint path.
* Other types: an acknowledgement.

**error** `object | null`

When `failed` or `cancelled`: `message`, and `category` (`user` for a problem
with the request, `server` for a Fastino problem).

Token arrays in the sample result below are illustrative placeholders. Decode
real results with the tokenizer for the job's `base_model`.

```json Pending theme={null}
{
  "future_id": "FUTURE_ID",
  "job_id": "SESSION_ID:train:0",
  "type": "forward_backward",
  "status": "pending",
  "queue_state": "paused_capacity",
  "queue_state_reason": null,
  "result": null,
  "error": null
}
```

```json Completed sample theme={null}
{
  "future_id": "FUTURE_ID",
  "job_id": "SESSION_ID:train:0",
  "type": "sample",
  "status": "completed",
  "queue_state": null,
  "queue_state_reason": null,
  "result": {
    "sequences": [
      {"tokens": [59604, 13, 151645], "logprobs": [-0.21, -0.05, -0.01], "stop_reason": "stop", "topk_logprobs": null}
    ],
    "prompt_logprobs": null,
    "topk_prompt_logprobs": null,
    "prompt_cache_hit_tokens": 0
  },
  "error": null
}
```

| Status | Meaning |
| - | - |
| `404` | The job or future doesn't exist, belongs to another team, is attached to a different job, or its request record was removed after about seven days. |
| `410` | Inspect `error.message`. A lost operation can be resubmitted. If the result expired after its one-hour retention window, the operation may already have run; do not replay a mutating operation until you reconcile checkpoints and your durable loop record. See [Interactive training loop](https://docs.fastino.ai/training/training-loop.md) and [Checkpoints](https://docs.fastino.ai/training/checkpoints.md). |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.