# JobList

A page of jobs, newest first.

## Fields

- `jobs` (array of [Job](/docs/types/job.md), required)
  - `created_at` (string, RFC 3339, required)
  - `id` ([JobId](/docs/types/job-id.md) (string, pattern), required): A job's ID: `job_` and then the job's UUID in 26 characters of base32, as a TypeID (github.com/jetify-com/typeid).
  - `request` ([JobRequest](/docs/types/job-request.md), required): The request as the API accepted it.
  - `reused` (array of [Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): The IDs of the request's reactions answered by results measured for an earlier job, which the lab does not run and which cost the reuse rate. A synthesis is served whole or not at all, and lists `target` when it is. It is empty when the job reuses nothing, and until the lab may see the job, seconds after it is made.
  - `status` ([JobStatus](/docs/types/job-status.md) (one of "queued", "running", "completed", "canceled"), required): Where a job is. The database works it out; a job starts when the lab sends its first record for it. A job the lab reopens to correct or add to its data is `running` again until its next package is ready.
  - `canceled_at` (string, RFC 3339 or null)
  - `completed_at` (string, RFC 3339 or null): When the job's newest package was written. It is null while the job is not `completed`.
  - `credits` ([NonNegative](/docs/types/non-negative.md) (number, 0 to 10¹²) or null): What the job holds until it completes, then what it cost, in credits. It is null for a lab system's key.
  - `package_version` (integer, at least 0 or null): The number of the job's newest package: 1 for its first, and one more each time the lab reopens the job and finishes it again. Compare it with the version you hold to see a new package. It is null until the first.
  - `started_at` (string, RFC 3339 or null)
- `next` ([JobId](/docs/types/job-id.md) (string, pattern) or null): Pass it as `before` for the next page. It is null on the last page.

## Used by

- [GET /v1/jobs](/docs/jobs/list-jobs.md)
