Read a job's logged inputs and outputs
GET https://weights.fyi/run/v1/jobs/<job_id>/trace-content[?after=<id>][&limit=<1..100>]
Authorization: Bearer <token> scope: read- Available since
- 2026-10-10 implementation review: included in this build; see What is live for deployment status.
- Answer time
- synchronous: one page of copies is read.
Reads the copies of inputs and outputs that one job kept while logging was switched on (see PUT /v1/trace-preferences). Each copy is one entry: what page or result it is, whether it is an input or an output, the content itself, and when it was kept and will expire. A job made while logging was off has no entries, and the answer is an empty list, not an error.
The entries come in the order they were kept, at most limit at a time (100 at most, 100 by default), and next_after is the cursor for the next call; it is null when there is nothing more. An entry that has expired is never returned, even in the moment before the service removes it, so what you read is always what is still kept. An output entry holds the model's answer for one page as the model gave it, which carries a few more fields than the result row of GET /v1/jobs/{job_id}/results: among them the raw probabilities before calibration and the number of tokens the page had. Only your own jobs can be read: another account's job answers 404 job_not_found, as everywhere.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and your token, with the read scope. |
job_id | path | yes | The job's identifier. |
after | query | no | The next_after of the previous answer; 0, the default, starts at the beginning. |
limit | query | no | At most this many entries, from 1 to 100; 100 by default. |
Return value
200 OK:
| Field | Meaning |
|---|---|
job_id | The job the entries belong to. |
content | The entries, each with id (the entry's own number, which after counts), seq (the page's sequence number in the job), kind (input or output), payload (the copy: for an input, the page's text and your id; for an output, the model's answer; for an entry that was too large, truncated: true, original_bytes and a shortened preview), captured_at and expires_at. |
next_after | The cursor for the next call, or null when there is nothing more. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_parameter, parameter_out_of_range | after or limit is not a whole number in its range. | Fix the parameter. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work. | Use a valid token. |
403 | scope_required | The token lacks read. | Use a token with read. |
403 | cmk_key_refused | The workspace's trace key is revoked, or Key Vault refused to open the content; reason says which. | Enroll a usable key with POST /v1/workspaces. |
404 | job_not_found | No such job in your account. | Check the identifier. |
Examples
curl -s "https://weights.fyi/run/v1/jobs/JOB_ID/trace-content?after=0&limit=10" -H "Authorization: Bearer $WEIGHTS_API_KEY"The copies of a one-page call made with both switches on, from a test copy of the service:
{
"job_id": "job_fe162f1d2fcbae09d936f4b1",
"content": [
{"id": 1, "seq": 1, "kind": "input",
"payload": {"text": "Senior data engineer, Utrecht. Apply today.", "id": "p1"},
"captured_at": "2026-10-09T08:58:56.393Z", "expires_at": "2026-10-16T08:58:56.393Z"},
{"id": 2, "seq": 1, "kind": "output",
"payload": {"chunks": 1, "input_sha256": "0e9d03893cf9b487b46c69b99a496bc5859890f184509f4a97d5cc1f3bb3cb8f",
"input_tokens": 6, "label": "detail", "model_sha256": "…",
"probabilities": {"detail": 0.91, "listing": 0.03, "landing": 0.02, "not_vacancy": 0.03, "unresolved": 0.01},
"raw_probabilities": {"detail": 0.88, "listing": 0.04, "landing": 0.03, "not_vacancy": 0.04, "unresolved": 0.01},
"temperature": 1.0},
"captured_at": "2026-10-09T08:58:56.396Z", "expires_at": "2026-10-16T08:58:56.396Z"}
],
"next_after": null
}History
- 2026-10-10 implementation review: added, with the trace viewer on the panel.
- 2026-10-20 Rung 1:
403 cmk_key_refusedfor content sealed under a revoked or refusing workspace key.
See also
- PUT /v1/trace-preferences and DELETE /v1/trace-content.
- GET /v1/jobs/{job_id}/logs, whose
?outputs=1shows a bounded sample of the same copies on the job's span. - Tracing and exports, the topic.