---
title: "Get Test Baseline"
method: GET
path: "/voice/testing/{agentId}/baseline"
tags: ["Voice Agent Testing"]
---

# Get Test Baseline

`GET /voice/testing/{agentId}/baseline`

## Request

- Base URL: `https://api.speakai.co/v1`
- URL: `https://api.speakai.co/v1/voice/testing/{agentId}/baseline`
- Auth: API key in header `x-speakai-key` and API key in header `x-access-token`

### Get Baseline

The agent's best-scoring completed run, used to detect regressions on later runs. `null` in `data.baseline` if no run has completed yet.

## Path parameters

- `agentId` string, required

## Response `200`

OK

- object
  - `status` 'success'
  - `data` object
    - `baseline` object, nullable
      - `_id` string: MongoDB document id, included because every document has one; use suiteId to identify it.
      - `agentId` string
      - `suiteId` string
      - `bestScore` number
      - `bestRunId` string
      - `scenarioBaselines` object: Map of scenarioId to that scenario's best score.
      - `updatedAt` string, date-time

## Other responses

- `404`: Agent not found

---

[API](https://skmtc.dev/speakai/apis/speak-ai-api.md) · [All operations](https://skmtc.dev/speakai/apis/speak-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/speakai/apis/speak-ai-api/revisions/52d777e6d46e?raw)
