# List all scheduled task runs

`GET https://api.endless.app/scheduled-task-runs`

Source: https://endless.app/docs/api/scheduled-tasks/org-runs

List all scheduled task runs.

## Authentication

- `bearerAuth`: HTTP bearer (JWT)

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organization_id` | query | string | yes |  |
| `scheduled_task_id` | query | string (uuid) | no |  |
| `limit` | query | integer | no |  |
| `cursor` | query | string | no |  |
| `Endless-Api-Version` | header | string | no | Pin the caller to an API major (`1`). Omit to accept the current version. A major this deployment cannot serve is refused with 400 `unsupported_api_version`. |

## Responses

### 200 OK

Content type: `application/json` — object

- `items` (array<object>, required)
  - `id` (string (uuid), required)
  - `scheduled_task_id` (string (uuid), required)
  - `organization_id` (string, required)
  - `conversation_id` (string (uuid) | null, required)
  - `workflow_run_id` (string | null, required)
  - `triggered_by_id` (string | null, required)
  - `status` ("in_progress" | "success" | "error" | "cancelled", required)
  - `error` (string | null, required)
  - `started_at` (string (date-time), required)
  - `heartbeat_at` (string (date-time), required)
  - `completed_at` (string (date-time) | null, required)
  - `credits_used` (integer, required)
  - `credits_refunded` (integer, required)
  - `schedule` (object, required)
    - `id` (string (uuid), required)
    - `name` (string, required)
    - `created_by_id` (string, required)
    - `time` (string, required)
    - `timezone` (string, required)
    - `visibility` ("private" | "workspace", required)
    - `cadence` (object | any)
    - `status` ("active" | "paused", required)
- `next_cursor` (string | null, required)

### Errors

- `400` (Error): The request is malformed, or failed input validation. `message` names the field and the rule it broke; `data.issues` carries them individually.
- `401` (Error): No bearer token, or a token that failed verification.
- `402` (Error): The workspace has no credits left, or the caller is over a spending limit.
- `403` (Error): Authenticated, but the caller's role in this workspace does not carry the permission this operation needs.
- `409` (Error): The request is well-formed, but the resource's current state forbids it — a taken name, a last admin, a limit already reached.
- `429` (Error): The caller has spent its rate-limit window. `Retry-After` says when to come back.
- `500` (Error): The request failed on our side. Safe to retry an idempotent operation with backoff.
