Skip to content
Dashboard
API Reference

List Agent Runs ​

List recent runs for an agent with pagination and optional status/date filters.

Lists recent runs for one agent.

Required scope: agent_runs:read. See API key permissions and pipeline observability.

Request ​

bash
curl -X GET "https://api.mosaic.so/agent/[agent_id]/runs?limit=25&status=running,completed" \
  -H "Authorization: Bearer mk_your_api_key"

Query Parameters ​

FieldTypeRequiredDescription
limitnumberNoPage size (1-100, default 25).
cursorstringNoPagination cursor from next_cursor.
statusstringNoComma-separated statuses (for example: running,completed).
fromstringNoISO timestamp lower bound on created_at.
tostringNoISO timestamp upper bound on created_at.

| folder_id | string | No | Exact triggered_by.source_folder_id provider folder ID. | | batch_id | string | No | Exact triggered_by.batch_window_id batch UUID. | | batch_key | string | No | Exact batch grouping key. | | storage_trigger_id | string | No | Exact storage subscription UUID. | | production_id | string | No | Exact persisted production ID. |

These filters can be combined and match persisted trigger metadata. Runs without that metadata do not match. Use storage batches for exact batch-to-run links.

Response ​

json
{
  "runs": [
    {
      "run_id": "7f8d9c2b-4a6e-8b3f-1d5c-9e2f3a4b5c6d",
      "agent_id": "123e4567-e89b-12d3-a456-789012345678",
      "status": "completed",
      "status_message": null,
      "started_at": "2026-03-02T09:00:00Z",
      "updated_at": "2026-03-02T09:06:00Z",
      "node_status_counts": {
        "completed": 10,
        "in_progress": 0,
        "failed": 0
      },
      "inputs": [],
      "outputs": [
        {
          "id": "7ba7b810-9dad-11d1-80b4-00c04fd430c8",
          "video_url": "https://storage.googleapis.com/mosaic-outputs/...",
          "thumbnail_url": "https://storage.googleapis.com/mosaic-thumbnails/...",
          "premiere_prproj_url": "https://storage.googleapis.com/mosaic-outputs/.../timeline.zip?...",
          "completed_at": "2026-03-02T09:06:00Z",
          "original_node_id": "2ba7b810-9dad-11d1-80b4-00c04fd430c8"
        }
      ],
      "triggered_by": null
    }
  ],
  "next_cursor": null
}

outputs[] uses the same shape as Get Agent Run, including premiere_prproj_url when a Premiere Pro timeline package is attached to the render and sources[] when the output contains source citations.

This summary response does not include needs_credits. To check whether a run is credit-blocked, call Get Agent Run (run-level) and/or Get Agent Run Nodes (node-level).