GET /v2/runs
List runs in accessible projects newest first.
How to use
Use this for run history or reconciliation. Follow next_cursor with unchanged filters. created_by_id is the exact returned actor ID; personal-key runs use the owner ID. Status filters use lowercase v2 values.
Authentication and permissions
Required permissions: analytics.read. Resource and owner access checks also apply.
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Only return runs of this project.
Only return runs currently in this status.
Only return runs started this way. unknown is not filterable because it represents an unpublished value.
Filter by the exact created_by.id returned on a run: a user ID, organization ID, or end-user ID. Personal API-key runs use the owner's user ID.
Only return runs created at or after this time.
Only return runs created at or before this time.
Opaque identifier for the page to return, taken from a previous response's next_cursor. Omit it to read the first page.
Number of runs to return in the page.
50Successful Response
Machine-readable response code, when provided.
Invalid cursor or filter.
Authentication required.
Analytics read permission required.
Validation Error
curl --fail-with-body -sS \
"$STACKAI_BASE_URL/v2/runs" \
-H "Authorization: Bearer $STACKAI_API_KEY"{
"response_code": "text",
"meta": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"data": [
{
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"project_id": "text",
"project_version": 1,
"status": "queued",
"error": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"started_at": "2026-01-01T00:00:00.000Z",
"completed_at": "2026-01-01T00:00:00.000Z",
"run_type": "workflow_builder",
"created_by": {
"type": "user",
"id": "text"
},
"usage": {
"total_tokens": 1,
"details": [
{
"provider": "text",
"model_id": "text",
"connection_id": "123e4567-e89b-12d3-a456-426614174000",
"input_tokens": 1,
"output_tokens": 1
}
]
},
"parent_run_id": "123e4567-e89b-12d3-a456-426614174000",
"parent_project_id": "text"
}
],
"next_cursor": "text",
"prev_cursor": "text",
"current_cursor": "text"
}Last updated
Was this helpful?

