Skip to content
Dashboard
API Reference

List Pipeline Runs ​

Discover runs with bounded lightweight pages, without loading graphs, inputs, outputs, or per-run tile evidence.

Required scope: agent_runs:read. Prefer this endpoint for large pipeline dashboards; load progress/tasks only for runs you need to inspect.

bash
curl "https://api.mosaic.so/pipeline_runs?folder_id=drive-folder-7&status=running&limit=25" \
  -H "Authorization: Bearer mk_your_api_key" \
  -H "X-Workspace-Id: 66666666-6666-4666-8666-666666666666"

Parameters ​

ParameterMeaning
limitInteger 1–100; default 25.
cursorPrevious next_cursor, passed verbatim with unchanged filters.
workspace_idWorkspace UUID within your organization; must match X-Workspace-Id if both are supplied.
agent_idAgent UUID.
statusOne exact persisted status, for example running or completed.
from, toInclusive ISO 8601 bounds on run creation time.
updated_fromInclusive run-row update watermark. Tile/task changes are tracked separately.
folder_idExact trigger_info.source_folder_id provider folder ID.
batch_idExact trigger_info.batch_window_id batch UUID.
batch_keyExact persisted batch grouping key.
storage_trigger_idExact trigger_info.storage_trigger_subscription_id UUID.
production_idExact persisted production ID.

Filters can be combined. Runs without matching source metadata are excluded. Use IDs returned by your own API calls; the UUIDs below are examples.

Response example ​

json
{
  "runs": [
    {
      "id": "44444444-4444-4444-8444-444444444444",
      "agent_id": "11111111-1111-4111-8111-111111111111",
      "workspace_id": "66666666-6666-4666-8666-666666666666",
      "status": "running",
      "status_message": null,
      "created_at": "2026-10-15T12:00:00Z",
      "updated_at": "2026-10-15T12:01:00Z",
      "trigger_info": {
        "source_folder_id": "drive-folder-7",
        "batch_window_id": "33333333-3333-4333-8333-333333333333"
      }
    }
  ],
  "next_cursor": null
}

id is the run UUID; pass it as run_id to progress, tasks, or delivery receipts. status_message provides persisted status details. updated_at may be null for historical rows whose update time is unknown. trigger_info may be null for manually started runs. agent_id may be null if the originating agent is unavailable.

Fetch every next_cursor until null. On subsequent polls, restart without a cursor and overlap your updated_from watermark. See polling and error handling. A missing permission returns a structured 403 naming agent_runs:read; retrying with the same key cannot grant access.