Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

List test invocations

List visible Agent Testing invocations with cursor pagination and an optional Agent filter; run transcripts are excluded from this summary response.

Endpoint

GET/api/v1/workspaces/{workspace_id}/test-invocations

Authentication

Operation classAuthenticationMinimum roleAPI key
customer-apiBearer API key or dashboard session cookie; dashboard mutations also require X-CX-Request: 1.memberAllowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
cursorquerystring or nullNo—
page_sizequeryintegerNo—
agent_idquerystring or nullNo—

Request body

This operation has no request body.

Example

cURL
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/test-invocations?page_size=30' \
  --header 'Authorization: Bearer YOUR_API_KEY'

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
200Successful Responseapplication/json: InvocationListResponse

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

200 application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectInvocationListResponse—NoYes——
has_moreboolean——NoYes——
itemsarray<InvocationSummary>——NoYes——
items[]objectInvocationSummary—NoYes——
items[].agent_idstring——NoYes——
items[].branch_idstring——NoYes——
items[].bucketing_statusstring——NoYes"not_applicable", "pending", "completed", "failed"—
items[].completed_atstring or null—date-timeYesYes——
items[].cost_usdnumber——NoYes——
items[].countsobjectInvocationCounts—NoYes——
items[].counts.failedinteger——NoYes——
items[].counts.interruptedinteger——NoYes——
items[].counts.passedinteger——NoYes——
items[].counts.pendinginteger——NoYes——
items[].counts.runninginteger——NoYes——
items[].created_atstring—date-timeNoYes——
items[].created_bystring——NoYes——
items[].idstring——NoYes——
items[].input_tokensinteger——NoYes——
items[].output_tokensinteger——NoYes——
items[].pass_ratenumber or null——YesYes——
items[].repeat_countinteger——NoYes——
items[].statusstring——NoYes"pending", "running", "completed"—
items[].targetstring——NoYes"draft", "live"—
next_cursorstring or null——YesYes——

Response example

Response body 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 to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
403forbiddenThe authenticated caller does not have access to this operation.
404not_foundThe requested workspace resource was not found.
422validation_failedThe request did not pass field or business validation.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. 200 application/json response schema
  9. Response example
  10. Errors
  11. Related operations