> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/jobs/{job_id}/logs

```text
GET https://weights.fyi/run/v1/jobs/<job_id>/logs[?outputs=1]
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-08, when the service went live on weights.fyi/run. logged content with `?outputs=1`.

**Answer time:** synchronous: the job's spans and events are read from the service's own records and answered at once, the whole log in one answer.

Returns everything the service recorded about one job, oldest first: its trace as a tracing tool would show it, without one. Entries are spans, with a start and an end, or events, a single moment; open spans have `end_at` and `duration_ms` `null`. They keep their trace and span ids, so they join what [GET /v1/traces](/run/docs/reference/traces.md) exports and your destinations receive; a job sent with a `traceparent` carries your trace id. The log is content-free; `?outputs=1` adds each page's result. Another account's job answers `404 job_not_found`.

A move to new hardware reads in order: `endpoint.interrupted`, the open calls ending with their pages back in the queue, not failed; `endpoint.resumed`; then calls with a different `attempt_id`, the job's second run. The gap is your wait: in the live drill of 2026-10-08 it was 240 s ([Jobs, progress and results](/run/docs/jobs.md#when-the-model-moves-to-new-hardware)).

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and your token. The token needs the `read` scope; reads do not count against the request rate. |
| `job_id` | path | yes | The job's identifier, `job_` followed by 24 hexadecimal characters. |
| `outputs` | query | no | `1`, `true` or `yes` adds each page's result to the entries that carry one. Anything else, or nothing, leaves them out. |

## Return value

**200 OK** with the job's log.

| Field | Meaning |
|---|---|
| `job_id` | The job's identifier, as in the path. |
| `outputs` | `true` when the entries carry each page's result, `false` when they do not. |
| `logs` | The entries, oldest first by their start. |

Each entry of `logs`:

| Field | Meaning |
|---|---|
| `trace_id` | The trace the entry belongs to, 32 hexadecimal characters: the job's own trace, or yours if you sent a `traceparent`. |
| `span_id` | The entry's own identifier, 16 hexadecimal characters. |
| `parent_span_id` | The span this entry belongs under, or `null` for the job's root span. |
| `name` | What the entry records, such as `job`, `job.queued` or `endpoint.resumed`. |
| `kind` | `span` for something with a duration, `event` for a moment. |
| `start_at`, `end_at` | When it started and ended; for an event they are equal, and for a span still open `end_at` is `null`. |
| `duration_ms` | The time between the two in milliseconds, or `null` while the span is open. |
| `status` | `ok`, or `error` when what it records failed. |
| `account_id` | Your account's number. |
| `job_id` | The job the entry belongs to. |
| `attempt_id` | The number of the run of the model the entry happened in, or `null` when it happened outside one. |
| `attributes` | The entry's details (below): counts, times, ids and codes, never page text. |
| `outputs` | Only with `?outputs=1`: for a `node.call`, each page's `label` and `probabilities` keyed by `seq`; `null` for the others. on the `job` span, a bounded sample of logged inputs and outputs, `logged_content`, with `content_cursor`. |

The entries a job can carry (the names are the service's own and stay as they are):

| Entry | Kind | What it records |
|---|---|---|
| `job` | span | Creation to completion; at the end `items_total`, `items_done`, `items_failed`, `items_cancelled`, `pages_per_second`, `status` and the cost charged so far. |
| `job.queued`, `job.cold_start`, `job.waiting_for_credit`, `job.cancelled` | events | Entering the queue; the model not ready, with its state and expected seconds; credit running out with pages to send; a cancel and the pages it stopped. |
| `endpoint.interrupted`, `endpoint.resumed` | events | The model stopping and resuming service around a move. |
| `node.call` | span | One call to the model with this job's pages: `rows` and `call_rows` (this job's and all pages in it), `chunks`, `pages_written`, `http_status`, `latency_ms`, `outcome`, `error`, and `lease_id` and `request_id`, which name the call if you ask us about it. `route`, `node_queue_depth`, `node_verdict`, `chunks_from`, `retry_after` and `action` are for our own records. |
| `training.started`, `training.checkpoint`, `training.moving`, `training.resumed`, `training.done`, `training.failed`; `node.train` | events; span | A training job's start, checkpoints, moves and resumes, end; one span per run of the training. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `read`, or the account is suspended. | Use a token with `read`. |
| `404` | `job_not_found` | There is no such job in your account. | Check the id with [GET /v1/jobs](/run/docs/reference/jobs-list.md). |

## Examples

A finished five-page batch from a test copy of the service; one attribute of the call, `chunks_from`, is left out:

```sh
curl -s https://weights.fyi/run/v1/jobs/JOB_ID/logs -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

```json
{
  "job_id": "job_5e7c50ca2489d324a215b0ba",
  "outputs": false,
  "logs": [
    {
      "trace_id": "7a4dfea36c0049bd6c1e4f5d1d1087e7",
      "span_id": "5d25160c17fbf86e",
      "parent_span_id": null,
      "name": "job",
      "kind": "span",
      "start_at": "2026-10-09T08:28:09.800Z",
      "end_at": "2026-10-09T08:28:09.803Z",
      "duration_ms": 3.0,
      "status": "ok",
      "account_id": 1,
      "job_id": "job_5e7c50ca2489d324a215b0ba",
      "attempt_id": null,
      "attributes": {
        "attempts_not_metered_yet": [1],
        "caller_trace": false,
        "cost_charged_usd_micros": 0,
        "items_cancelled": 0,
        "items_done": 5,
        "items_failed": 0,
        "items_total": 5,
        "pages_per_second": 2500.0,
        "service_class": "batch",
        "status": "SUCCEEDED"
      }
    },
    {
      "trace_id": "7a4dfea36c0049bd6c1e4f5d1d1087e7",
      "span_id": "a6c070aed79199aa",
      "parent_span_id": "5d25160c17fbf86e",
      "name": "job.queued",
      "kind": "event",
      "start_at": "2026-10-09T08:28:09.801Z",
      "end_at": "2026-10-09T08:28:09.801Z",
      "duration_ms": 0.0,
      "status": "ok",
      "account_id": 1,
      "job_id": "job_5e7c50ca2489d324a215b0ba",
      "attempt_id": null,
      "attributes": {"items_total": 5, "service_class": "batch"}
    },
    {
      "trace_id": "7a4dfea36c0049bd6c1e4f5d1d1087e7",
      "span_id": "a8bb58e2a5ee4fb8",
      "parent_span_id": "5d25160c17fbf86e",
      "name": "node.call",
      "kind": "span",
      "start_at": "2026-10-09T08:28:09.803Z",
      "end_at": "2026-10-09T08:28:09.803Z",
      "duration_ms": 0.0,
      "status": "ok",
      "account_id": 1,
      "job_id": "job_5e7c50ca2489d324a215b0ba",
      "attempt_id": 1,
      "attributes": {
        "action": null, "attempt_id": 1, "call_rows": 5, "chunks": 5, "error": null,
        "http_status": 200, "latency_ms": 0.23, "lease_id": "cc236bc54f9cf511fad79e84988953f7",
        "node_queue_depth": "0", "node_verdict": null, "outcome": "results", "pages_written": 5,
        "request_id": "cc236bc54f9cf511fad79e84988953f7", "retry_after": null, "route": "direct", "rows": 5
      }
    }
  ]
}
```

## History

- 2026-10-08: live; `?outputs=1` adds each page's result; `training.moving` recorded with status `ok`, a move being the designed path.
- 2026-10-09: the job log, [GET /v1/traces](/run/docs/reference/traces.md) and your destinations show each span by one rule.
- 2026-10-10 implementation review: logged content on the `job` span with `?outputs=1`.

## See also

[GET /v1/traces](/run/docs/reference/traces.md), [GET /v1/jobs/{job_id}/trace-content](/run/docs/reference/jobs-trace-content.md), [Tracing and exports](/run/docs/tracing.md).
