> ## Documentation Index
> Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent Metrics

> Pooled response time and accuracy for one agent version and one source

Read the pooled numbers of one agent version. Live, simulated and text-test results are never mixed: you must choose one `source`.

Times are whole milliseconds. Rates are between 0 and 1. A value below the minimum sample is `null`. Show `null` as "Not enough data", never as 0.

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key (scope `agents`)

### Path

**agentId** `string` *required*

The agent `id` (UUID). The agent must be in your workspace and saved at least once

### Query

**source** `string` *required*

`production`, `simulation` or `test`

**agent\_version** `integer` *required*

1 or more

**from** `integer`

Start of the window, in Unix seconds. Default: 24 hours ago

**to** `integer`

End of the window, in Unix seconds. Default: now

## Response

**200 OK**. The pooled results from the voice service. Fields can be `null`.

## Errors

| Status | Code | Meaning |
| - | - | - |
| 400 | `VALIDATION_ERROR` | `source` or `agent_version` is missing or wrong |
| 403 | `POLICY_DENY` | Your role cannot read agents, or the API key lacks the `agents` scope |
| 404 | `AGENT_NOT_FOUND` | No agent with this ID in your workspace |
| 409 | `AGENT_NOT_SYNCED` | Save the agent once, then try again |

## Example

```bash cURL theme={null}
curl "https://api.60db.ai/agents/AGENT_ID/metrics?source=simulation&agent_version=7" \
  -H "Authorization: Bearer your-api-key"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.