Skip to main content

Run a test case of an agent

POST 

https://platform.docana.com/api/v1/agents/:agentId/test-cases/:testCaseId/run/

Queues the evaluation and returns immediately with a stable runId. The queued run is visible immediately; the worker atomically claims it before evaluation. The evaluation replays the eval spec steps against the agent and records per-step results. Poll GET /api/v1/agents/{agentId}/test-runs/{runId}/ to track progress and use POST /api/v1/agents/{agentId}/test-runs/{runId}/stop/ to cancel. The test case must be enabled and associated with an application. Accepts an optional JSON body { repeats?, minPassRate?, target? } to override the eval spec's own values for this run only and/or evaluate a specific branch instead of the current main draft.

Request

Responses

The test run was scheduled