---
title: "List Run Tasks"
method: GET
path: "/agent_run/{run_id}/tasks"
tags: ["Pipeline Observability"]
---

# List Run Tasks

`GET /agent_run/{run_id}/tasks`

## Request

- Base URL: `https://api.mosaic.so`
- URL: `https://api.mosaic.so/agent_run/{run_id}/tasks`
- Auth: HTTP bearer

Paginate all currently attached tasks for an authorized run. Use this endpoint for exhaustive task inspection; tasks embedded in progress are a snapshot. progress is a percentage; heartbeat_timestamp indicates last task activity. Detached historical attempts are excluded.

## Path parameters

- `run_id` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string
- `from` string, date-time
- `to` string, date-time
- `updated_from` string, date-time
- `workspace_id` string, uuid
- `node_id` string, uuid

## Headers

- `X-Workspace-Id` string, uuid

## Response `200`

Current organization-scoped evidence.

- object
  - `tasks` CanvasRunTask[]
    - `id` string, uuid, required: Task ID.
    - `agent_node_id` string, uuid, required: Attached runtime tile ID; detached attempts are not included.
    - `status` string, nullable, required: Persisted task status.
    - `progress` number, nullable, required: Reported task progress in percent (0–100), or null when unreported.
    - `needs_credits` boolean, required: Whether this task is waiting for credits.
    - `error_message` string, nullable, required: Task error details.
    - `heartbeat_timestamp` string, date-time, nullable, required: Last worker heartbeat, when available.
    - `created_at` string, date-time, required: Task creation time.
    - `updated_at` string, date-time, nullable, required: Task row update time.
  - `next_cursor` string, nullable: Opaque cursor for the next page; null at the end.
  - `run_id` string, uuid: Requested run ID.

## Other responses

- `400`: Invalid UUID, cursor, limit, timestamp, filter, or unsupported updated_from on batch items.
- `401`: Missing, invalid, or revoked API key.
- `403`: Insufficient API key scope, unavailable paid-plan access, or workspace header/query mismatch. Scope errors include code, required_scope, granted_scopes, retryable, and resolution. Other authorization errors retain detail.
- `404`: Requested run, trigger, or batch is absent or outside the authorized organization/workspace.
- `500`: Database or query failure. Never interpret this as an empty successful result; use bounded backoff.

---

[API](https://skmtc.dev/mosaic/apis/mosaic-ai-api.md) - [All operations](https://skmtc.dev/mosaic/apis/mosaic-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mosaic/apis/mosaic-ai-api/revisions/c20e9fc606a4?raw)
