# List test invocation runs

Page through runs for one invocation, optionally returning only runs updated after a timestamp; transcripts and frozen definitions are excluded.

## Endpoint

`GET /api/v1/workspaces/{workspace_id}/test-invocations/{invocation_id}/runs`

## Authentication

| Class | Authentication | Minimum role | API key |
| --- | --- | --- | --- |
| customer-api | Bearer API key or dashboard session cookie; dashboard mutations also require X-CX-Request: 1. | member | Allowed |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | path | `string` | Yes | — |
| `invocation_id` | path | `string` | Yes | — |
| `cursor` | query | `string or null` | No | — |
| `page_size` | query | `integer` | No | — |
| `updated_after` | query | `string or null` | No | — |

## Request body

This operation has no request body.

## Example

```bash
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/test-invocations/invo_demo/runs?page_size=100' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Responses

| Status | Description | Content |
| --- | --- | --- |
| 4XX | Handled client error | application/json: `ErrorResponse` |
| 200 | Successful Response | application/json: `RunListResponse` |

### 4XX application/json response schema

| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `$` | `object` | ErrorResponse | — | No | Yes | — | — |
| `error` | `object` | ErrorItem | — | No | Yes | — | — |
| `error.code` | `string` | — | — | No | Yes | — | — |
| `error.details` | `object` | — | — | No | No | — | — |
| `error.message` | `string` | — | — | No | Yes | — | — |

### 200 application/json response schema

| Field path | Type | Reference | Format | Nullable | Required | Enum | Description |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `$` | `object` | RunListResponse | — | No | Yes | — | — |
| `has_more` | `boolean` | — | — | No | Yes | — | — |
| `items` | `array<RunSummary>` | — | — | No | Yes | — | — |
| `items[]` | `object` | RunSummary | — | No | Yes | — | — |
| `items[].allows_real_tools` | `boolean` | — | — | No | Yes | — | — |
| `items[].completed_at` | `string or null` | — | date-time | Yes | Yes | — | — |
| `items[].cost_usd` | `number` | — | — | No | Yes | — | — |
| `items[].id` | `string` | — | — | No | Yes | — | — |
| `items[].input_tokens` | `integer` | — | — | No | Yes | — | — |
| `items[].invocation_item_id` | `string` | — | — | No | Yes | — | — |
| `items[].output_tokens` | `integer` | — | — | No | Yes | — | — |
| `items[].repeat_index` | `integer` | — | — | No | Yes | — | — |
| `items[].result` | `object` | SimulationRunResult or NextReplyRunResult or ToolInvocationRunResult or RunFailureResult or PendingRunResult | — | No | Yes | — | — |
| `items[].result.conversation_id` | `string or null` | — | — | Yes | No | — | — |
| `items[].result.evaluations` | `array<TestEvaluation>` | — | — | No | Yes | — | — |
| `items[].result.evaluations[]` | `object` | TestEvaluation | — | No | Yes | — | — |
| `items[].result.evaluations[].rationale` | `string` | — | — | No | Yes | — | — |
| `items[].result.evaluations[].status` | `string` | — | — | No | Yes | "success", "failure" | — |
| `items[].result.failure_code` | `string or null` | — | — | Yes | No | "evaluator_error", "mock_not_matched", "quota_exceeded", "runtime_error", "tool_unavailable" | — |
| `items[].result.evaluation` | `object or null` | TestEvaluation | — | Yes | No | — | — |
| `items[].result.evaluation.rationale` | `string` | — | — | No | Yes | — | — |
| `items[].result.evaluation.status` | `string` | — | — | No | Yes | "success", "failure" | — |
| `items[].result.response` | `string` | — | — | No | Yes | — | — |
| `items[].result.calls` | `array<ToolCallEvidence>` | — | — | No | Yes | — | — |
| `items[].result.calls[]` | `object` | ToolCallEvidence | — | No | Yes | — | — |
| `items[].result.calls[].arguments` | `object or null` | — | — | Yes | Yes | — | — |
| `items[].result.calls[].arguments_raw` | `string or null` | — | — | Yes | No | — | — |
| `items[].result.calls[].name` | `string` | — | — | No | Yes | — | — |
| `items[].result.calls[].origin` | `string` | — | — | No | Yes | "llm", "workflow", "built_in", "transition" | — |
| `items[].result.calls[].tool_id` | `string` | — | — | No | Yes | — | — |
| `items[].result.calls[].tool_type` | `string` | — | — | No | Yes | "system", "webhook", "google_sheets", "client", "workflow", "api_integration_webhook", "mcp", "code", "workflow_transition" | — |
| `items[].result.parameter_results` | `array<ParameterEvaluation> or null` | — | — | Yes | No | — | — |
| `items[].result.parameter_results[]` | `object` | ParameterEvaluation | — | No | Yes | — | — |
| `items[].result.parameter_results[].error` | `string or null` | — | — | Yes | No | — | — |
| `items[].result.parameter_results[].matched` | `boolean` | — | — | No | Yes | — | — |
| `items[].result.parameter_results[].reason` | `string` | — | — | No | Yes | — | — |
| `items[].result.passed` | `boolean or null` | — | — | Yes | No | — | — |
| `items[].started_at` | `string or null` | — | date-time | Yes | Yes | — | — |
| `items[].status` | `string` | — | — | No | Yes | "pending", "running", "passed", "failed", "interrupted" | — |
| `items[].updated_at` | `string` | — | date-time | No | Yes | — | — |
| `next_cursor` | `string or null` | — | — | Yes | Yes | — | — |

### Response example

```json
{
  "items": [],
  "has_more": false,
  "next_cursor": "string"
}
```

## Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the [distributed error index](/docs/reference/api/errors) to find each code's canonical domain page.

| Status | Code | Description |
| --- | --- | --- |
| 401 | `unauthenticated` | Authentication is missing, invalid, or revoked. |
| 403 | `forbidden` | The authenticated caller does not have access to this operation. |
| 404 | `not_found` | The requested workspace resource was not found. |
| 422 | `validation_failed` | The request did not pass field or business validation. |

## Related operations

- [Run agent tests](/docs/api-reference/test-invocations/create-test-invocation) — `POST /api/v1/workspaces/{workspace_id}/agents/{agent_id}/test-invocations`
- [Get a test invocation](/docs/api-reference/test-invocations/get-test-invocation) — `GET /api/v1/workspaces/{workspace_id}/test-invocations/{invocation_id}`
- [Get a test invocation run](/docs/api-reference/test-invocations/get-test-invocation-run) — `GET /api/v1/workspaces/{workspace_id}/test-invocations/{invocation_id}/runs/{run_id}`
