List runs
const url = 'https://example.com/v1/runs?limit=25&scopeKind=tenant&replays=exclude&startedBy=person&actsFor=me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/runs?limit=25&scopeKind=tenant&replays=exclude&startedBy=person&actsFor=me' \ --header 'Authorization: Bearer <token>'Cursor-paginated. Fixed sort order: createdAt desc, id desc; with completedAfter or completedBefore, completedAt asc, id asc, paged by completedAfter and afterRunId instead of a cursor. With authorization on, it lists every run in the projects the caller may read, and in the projects where they may only run, the runs that act for them (actsFor); the runtime applies this in its query, so a page is full when there are more. Across projects (no scope, the workspace or an org), those projects come from the authorization store’s list, which answers at most 1000 by default: a caller who reads or runs more may miss the runs of some. A workspace admin’s list doesn’t go through it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Page of runs.
object
Example
{ "data": [ { "flowVersionVia": "explicit", "flowPinnedScope": { "kind": "tenant" }, "status": "pending", "agent": { "via": "explicit", "pinnedScope": { "kind": "tenant" } }, "waitingFor": { "approvals": [ { "approver": { "kind": "member" }, "connection": { "as": "company" } } ], "other": [ { "what": "child-run" } ] }, "trigger": { "kind": "schedule" }, "startedBy": "person" } ]}Malformed cursor, filter or scope.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}