# List jobs

`GET /v1/jobs`

Returns jobs newest first. A customer's key lists its own jobs. A lab system's key lists every job not canceled.

## Headers

- `Authorization` (Bearer key, required): An API key. [Request access](/) to get one.

## Query parameters

- `before` ([JobId](/docs/types/job-id.md) (string, pattern)): List only jobs older than this one: the `next` of the page before.
- `limit` (integer, 1 to 100): How many jobs a page holds, from 1 to 100. It is 20 when not given.

## Responses

| Status | Meaning |
|---|---|
| 200 | A page of jobs. |
| 401 | Send a valid API key as `Authorization: Bearer <key>`. |
| 422 | A parameter or the body does not parse. |
| 500 | Something went wrong on our side. |

200 returns [JobList](/docs/types/job-list.md). Every error is a [Problem](/docs/types/problem.md), whose `detail` says what went wrong.

## Examples

### cURL

```bash
$ curl https://api.sequencylabs.com/v1/jobs \
  -H "Authorization: Bearer $SEQUENCY_API_KEY"
```

### Python

```python
import os
import httpx

response = httpx.get(
    "https://api.sequencylabs.com/v1/jobs",
    headers={"Authorization": f"Bearer {os.environ['SEQUENCY_API_KEY']}"},
)
response.raise_for_status()
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://api.sequencylabs.com/v1/jobs", {
  headers: {
    Authorization: `Bearer ${process.env.SEQUENCY_API_KEY}`,
  },
});
const data = await response.json();
```

### Response (200 OK)

```json
{
  "jobs": [
    {
      "canceled_at": null,
      "completed_at": null,
      "created_at": "2026-12-01T09:15:00Z",
      "credits": null,
      "id": "job_01h455vb4pex5vsknk084sn02q",
      "package_version": null,
      "request": {
        "exclusive": false,
        "reuse": false,
        "work": {
          "kind": "route_review",
          "route": [
            {
              "id": "step_1",
              "materials": [
                {
                  "equivalents": null,
                  "name": null,
                  "role": "reactant",
                  "smiles": "CCO",
                  "volume_ml": null
                }
              ],
              "procedure": null,
              "product_smiles": "CCO",
              "scale_mmol": null,
              "temperature_c": null,
              "time_h": null
            }
          ],
          "target_smiles": "CCO"
        }
      },
      "reused": [
        "step_1"
      ],
      "started_at": null,
      "status": "queued"
    }
  ],
  "next": null
}
```
