---
title: "List runs"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List runs

Path: Simplcron API › Runs

`GET /v1/runs`

Read environment-scoped run history. Continue at the next cursor using the same filters.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Query parameters

- `status` (`listRuns.query.status`; string, optional) — Filter by status. Use waiting for runs paused at a Wait Until or Wait for Reply checkpoint and scheduled for runs that have a future start time.
  - one of `"scheduled"`, `"queued"`, `"waiting"`, `"running"`, `"retrying"`, `"succeeded"`, `"failed"`, `"cancelled"`
- `task` (`listRuns.query.task`; string, optional) — Filter by task slug.
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
- `limit` (`listRuns.query.limit`; integer, optional) — Maximum runs to return.
  - maximum: `100` · minimum: `1`
- `cursor` (`listRuns.query.cursor`; string, optional) — Opaque nextCursor returned by a previous page.

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/v1/runs' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/runs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/runs"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Page of runs

#### Example

```json
{
  "runs": [
    {
      "id": "string",
      "runId": "string",
      "task": "string",
      "taskName": "string",
      "status": "scheduled",
      "source": "string",
      "attempt": 5,
      "maxAttempts": 3,
      "payload": {},
      "output": null,
      "error": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "startedAt": "2019-08-24T14:15:22Z",
      "finishedAt": "2019-08-24T14:15:22Z",
      "runAt": "2019-08-24T14:15:22Z",
      "nextAttemptAt": "2019-08-24T14:15:22Z",
      "waitUntil": "2019-08-24T14:15:22Z",
      "waitStartedAt": "2019-08-24T14:15:22Z",
      "waitResumedAt": "2019-08-24T14:15:22Z",
      "replyTimeoutSeconds": 5,
      "waitOutcome": "reply",
      "reply": {
        "receivedAt": "2019-08-24T14:15:22Z",
        "payload": {}
      },
      "durationMs": 0,
      "previousRunId": "string"
    }
  ],
  "nextCursor": "string"
}
```

- `runs` (`listRuns.response.200.runs`; array of object, required)
  - `id` (`listRuns.response.200.runs.id`; string, required)
  - `task` (`listRuns.response.200.runs.task`; string, required)
    - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
  - `status` (`listRuns.response.200.runs.status`; string, required)
    - one of `"scheduled"`, `"queued"`, `"waiting"`, `"running"`, `"retrying"`, `"succeeded"`, `"failed"`, `"cancelled"`
  - `attempt` (`listRuns.response.200.runs.attempt`; integer, required)
    - maximum: `5` · minimum: `0`
  - `maxAttempts` (`listRuns.response.200.runs.maxAttempts`; integer, required)
    - maximum: `5` · minimum: `1` · default: `3`
  - `createdAt` (`listRuns.response.200.runs.createdAt`; string, required)
    - format: `date-time`
  - `runId` (`listRuns.response.200.runs.runId`; string, optional)
  - `taskName` (`listRuns.response.200.runs.taskName`; string, optional)
  - `source` (`listRuns.response.200.runs.source`; string, optional)
  - `payload` (`listRuns.response.200.runs.payload`; object, optional)
  - `output` (`listRuns.response.200.runs.output`; unknown, optional)
  - `error` (`listRuns.response.200.runs.error`; any of, optional)
    - any of the following: `string`, `null`
  - `startedAt` (`listRuns.response.200.runs.startedAt`; any of, optional)
    - any of the following: `string`, `null`
  - `finishedAt` (`listRuns.response.200.runs.finishedAt`; any of, optional)
    - any of the following: `string`, `null`
  - `runAt` (`listRuns.response.200.runs.runAt`; any of, optional)
    - any of the following: `string`, `null`
  - `nextAttemptAt` (`listRuns.response.200.runs.nextAttemptAt`; any of, optional)
    - any of the following: `string`, `null`
  - `waitUntil` (`listRuns.response.200.runs.waitUntil`; string, optional) — Planned resume time for Wait Until or the reply deadline for Wait for Reply.
    - format: `date-time`
  - `waitStartedAt` (`listRuns.response.200.runs.waitStartedAt`; string | null, optional) — Time when a wait run entered its pause, or null until it has paused.
    - format: `date-time`
  - `waitResumedAt` (`listRuns.response.200.runs.waitResumedAt`; string | null, optional) — Time when a wait run resumed, or null before resumption.
    - format: `date-time`
  - `replyTimeoutSeconds` (`listRuns.response.200.runs.replyTimeoutSeconds`; integer, optional) — Timeout applied to this Wait for Reply run.
    - maximum: `2592000` · minimum: `5`
  - `waitOutcome` (`listRuns.response.200.runs.waitOutcome`; string | null, optional) — Outcome of a Wait for Reply run. Null until the run resumes.
    - one of `"reply"`, `"timeout"`, `null`
  - `reply` (`listRuns.response.200.runs.reply`; object | null, optional) — The accepted reply on a full Wait for Reply run record. Null while there is no accepted reply, including after timeout. Run summaries omit this field.
    - `receivedAt` (`listRuns.response.200.runs.reply.receivedAt`; string, required)
      - format: `date-time`
    - `payload` (`listRuns.response.200.runs.reply.payload`; object, required)
  - `durationMs` (`listRuns.response.200.runs.durationMs`; any of, optional)
    - any of the following: `number`, `null`
  - `previousRunId` (`listRuns.response.200.runs.previousRunId`; any of, optional)
    - any of the following: `string`, `null`
- `nextCursor` (`listRuns.response.200.nextCursor`; any of, required)
  - any of the following: `string`, `null`

### 400

Invalid input

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listRuns.response.400.error`; string, required)

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listRuns.response.401.error`; string, required)

### 403

The credential lacks permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listRuns.response.403.error`; string, required)


Source: https://simplcron.dev/docs/api/list-runs/index.md
