--limit sets the page size, and the response includes a top-level cursor when more runs are available; pass it back with --cursor to fetch the next page.
Flags
| Flag | Description |
|---|---|
--limit <n> | Maximum runs to return per page. Must be a positive integer up to 100. Defaults to 20. |
--cursor <token> | Resume from a previous response’s cursor to fetch the next page. |
Output
| Field | Type | Description |
|---|---|---|
data[].routineRunId | string | Run id. Pass to clay routines runs get. |
data[].routineId | string | The routine that was run. |
data[].status | "in_progress" | "complete" | "validation_failed" | Current run status. |
data[].total | number | Total items in the run. |
data[].finished | number | Items that have finished so far. |
cursor | string | Present when more runs are available. Pass it back via --cursor. Omitted on the last page. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --limit is not a positive integer or exceeds 100. |
auth_forbidden | 3 | The API key lacks the cli:all scope (or all). |

