Developers / Agents

Get a test run

GET https://api.echonova.ai/v1/agents/{agentId}/test-runs/{testRunId}

Returns one test run of the agent with its status and the chat so far. A scripted run shows running until every message has been answered, then passed, failed or incomplete. Needs the agents:read scope on the key.

Headers

Authorization string Required

Bearer, a space, then your API key, which starts with ek_. Create keys in the portal under Developers, API Keys.

Path parameters

agentId string Required

The agent id, as GET /v1/agents returned it.

testRunId string Required

The test run id, as GET /v1/agents/{agentId}/test-runs returned it.

Response

200 application/json Every response uses this envelope.

data object

The result.

success boolean

true for a successful call.

statusCode integer

Repeats the HTTP status.

errorMessage string or null

null on success.

Errors

Same envelope, with success false and data null. All errors

GET /v1/agents/{agentId}/test-runs/{testRunId}

curl "https://api.echonova.ai/v1/agents/{agentId}/test-runs/{testRunId}" \
  -H "Authorization: Bearer YOUR_API_KEY"

{
  "data": {
    "id": "6655a1b2c3d4e5f6a7b8c9d0",
    "kind": "chat",
    "status": "passed",
    "startedAt": "2026-11-03T10:00:00.000Z",
    "endedAt": "2026-11-03T10:01:00.000Z",
    "latencyMs": 800,
    "replyP50Ms": 700,
    "replyP95Ms": 1200,
    "turns": 4,
    "toolsTriggered": 1,
    "toolsTotal": 2,
    "plannedTurns": 2,
    "messages": [
      {
        "id": "6652a1b2c3d4e5f6a7b8c9d0",
        "direction": "inbound",
        "sender": "customer",
        "text": "How much is the Pro plan?",
        "createdAt": "2026-11-02T10:00:01.000Z"
      }
    ]
  },
  "success": true,
  "statusCode": 200,
  "errorMessage": null
}