Documentation
Jobs and results
View .mdOpenAPI

List jobs

GEThttps://weights.fyi/run/v1/jobsscope: read
text
GET https://weights.fyi/run/v1/jobs[?limit=<1 to 1,000>][&after=<cursor>]
Authorization: Bearer <token>                    scope: read
Available since
2026-10-08, when the service went live on weights.fyi/run, training jobs included. the cursor after and next_after.
Answer time
synchronous: the answer reads your jobs as they stand and never waits for any of them.

Lists your account's jobs, newest first, each as GET /v1/jobs/{job_id} shows one: page jobs, training jobs and measurement jobs together, whichever token made them. At most 1,000 jobs a page (the default; limit asks for fewer), computed fresh, so many open jobs take a little longer. Page on to older jobs with after: send an answer's next_after until it is null. A batch still being uploaded is not listed until its last line is in.

In code, note that an entry names its job in job_id, not id, and a page job's size is progress.total, not items_total as POST /v1/jobs answers; a training job's progress.total and progress.done count epochs. Tell the three kinds apart by kind: absent on a page job, finetune, or measure.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the read scope. Reads are not counted against the token's request rate.
limitquerynoHow many jobs to list, a whole number from 1 to 1,000. The default is 1,000.
afterquerynoThe next_after of the previous answer, to list the jobs older than those it held; 0, the default, starts with the newest. A whole number, not below 0.
scopequerynoworkspace, the default: every job of the workspace your credential acts in. mine: the jobs submitted with this key; for a signed-in person, those submitted with any key you issued in this workspace. A job records only the key it came with, so a job submitted from a signed-in session without a key is in no one's mine. A credential that names no person and no key has nothing of its own and is refused mine.

Return value

200 OK with one object.

FieldMeaning
jobsYour jobs, newest first by the time they were made. Each entry is a page job or a training job exactly as GET /v1/jobs/{job_id} describes it, field for field: identifier, model, service class, status, trace context, what it waits for, its times, its progress, the model's state, its cost and its runs. A training job adds kind, dataset, recipe, options, state, state_text, estimate_usd_micros, error, stop_reason and result_model. A measurement job (kind: "measure", made by POST /v1/models/{model}/measure) adds asked, result, cancel_requested, state, state_text, estimate_usd_micros and error.
next_afterThe cursor for the next, older page of jobs, or null at the oldest. Treat it as opaque: send it back as after unchanged.

Errors

StatusCodeWhen it happensWhat to do
400invalid_parameterlimit or after is not a whole number.Send a whole number.
400parameter_out_of_rangelimit is below 1 or above 1,000, or after is below 0; low and high give the bounds.Stay inside them.
400invalid_scopescope is neither mine nor workspace, or mine was asked by a credential that names no person and no key.Send mine or workspace; use workspace with such a credential.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read; for a suspended account, talk to us.

Examples

The newest job, from a test copy of the service (speeds and zero costs not live):

sh
curl -s "https://weights.fyi/run/v1/jobs?limit=2" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "jobs": [
    {
      "job_id": "job_9cc1a911d3d0ed07d9423f3a",
      "model": "laya-page-role",
      "service_class": "batch",
      "status": "SUCCEEDED",
      "traceparent": "00-37a63971738f58a19283dfb688ab035b-16fa1c149369a2e9-01",
      "waiting_for": null,
      "created_at": "2026-10-09T08:28:09.803Z",
      "started_at": "2026-10-09T08:28:09.804Z",
      "completed_at": "2026-10-09T08:28:09.807Z",
      "progress": {"total": 2, "done": 2, "failed": 0, "cancelled": 0, "queued": 0, "in_flight": 0,
                   "pages_per_second": 666.6666666666666, "eta_seconds": 0.0, "rate_window_seconds": 60.0},
      "model_state": {"state": "ready", "since": "2026-10-09T08:28:09.790Z", "expected_ready_seconds": null},
      "cost": {"usd_micros": 0, "final": false,
               "basis": "the sum of the job's charges so far, each posted as its results landed, at the prices it was admitted at"},
      "runs": [{"started_at": "2026-10-09T08:28:09.790Z", "ended_at": null, "usd_micros": 0, "final": false}]
    },
    {
      "job_id": "job_5e7c50ca2489d324a215b0ba",
      "model": "laya-page-role",
      "service_class": "batch",
      "status": "SUCCEEDED",
      "traceparent": "00-7a4dfea36c0049bd6c1e4f5d1d1087e7-5d25160c17fbf86e-01",
      "waiting_for": null,
      "created_at": "2026-10-09T08:28:09.800Z",
      "started_at": "2026-10-09T08:28:09.801Z",
      "completed_at": "2026-10-09T08:28:09.803Z",
      "progress": {"total": 5, "done": 5, "failed": 0, "cancelled": 0, "queued": 0, "in_flight": 0,
                   "pages_per_second": 2500.0, "eta_seconds": 0.0, "rate_window_seconds": 60.0},
      "model_state": {"state": "ready", "since": "2026-10-09T08:28:09.790Z", "expected_ready_seconds": null},
      "cost": {"usd_micros": 0, "final": false,
               "basis": "the sum of the job's charges so far, each posted as its results landed, at the prices it was admitted at"},
      "runs": [{"started_at": "2026-10-09T08:28:09.790Z", "ended_at": null, "usd_micros": 0, "final": false}]
    }
  ]
}

Patterns

Finding a job after a lost answer

Send the lost batch again under the same key first: a stored job comes back marked Idempotent-Replayed: true. If you get the same 5xx again, it is kept under that key for 24 h; list your newest jobs and look for one made at the time with your page count (progress.total). Follow it if it is there; if not, a new key is safe.

History

  • 2026-10-08: live, with runs on each entry and training jobs in training words.
  • 2026-10-10 implementation review: after and next_after; recovery fields in each model_state.
  • 2026-11-16: removed the stale "no cursor" sentence; documented measurement jobs in the list.
  • 2026-11-16 (built, live with the deploy that carries it): scope=mine lists only your own jobs.

See also

GET /v1/jobs/{job_id}, GET /v1/usage, Errors and limits.