> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Analytics Metrics API

The Analytics Metrics API returns the headline metrics of the dashboard **Home** page for a date range. Use it to show your AI Agent's performance in your own dashboard.

> **Info**
>
> The Analytics Metrics API is in limited availability. It is available only to AI Agents that are enrolled in it. For other AI Agents, the endpoint returns `404`. To enroll, contact your Ada team.

Download full OpenAPI spec

## Endpoint

Call `GET /api/v2/analytics/metrics/` with a date range:

```bash
curl "https://example.ada.support/api/v2/analytics/metrics/?start_date=2026-11-01&end_date=2026-11-07&time_zone=America/Toronto" \
  -H "Authorization: Bearer <API key>"
```

| Parameter    | Required | Description                                                                                                                                           |
| ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `start_date` | Yes      | The first day of the range, inclusive, in the format `YYYY-MM-DD`. Use a date from 2000-01-01 to 2100-12-31.                                          |
| `end_date`   | Yes      | The last day of the range, inclusive, in the format `YYYY-MM-DD`. Use a date from 2000-01-01 to 2100-12-31. The range can be at most 366 days.        |
| `time_zone`  | No       | The IANA time zone name that sets where each day starts and ends. The default is `UTC`. The dashboard value `UTC/UTC` is accepted and reads as `UTC`. |

The endpoint has no filters and no intervals. It returns one value for each metric over the full range. To get one value for each day, send one request for each day.

## Metrics

Each value is the number that the **Home** page shows for the same dates and time zone, with no filters. To get the same numbers as the dashboard, send the time zone of the dashboard user. Rates are percentages from 0 to 100.

| Field                       | Type           | Description                                                                                                                                                                                                                                                                                                                                              |
| --------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `conversations_opened`      | integer        | The number of conversations that opened in the range.                                                                                                                                                                                                                                                                                                    |
| `conversations_engaged`     | integer        | The number of engaged conversations in the range.                                                                                                                                                                                                                                                                                                        |
| `containment_rate`          | number         | The percentage of engaged conversations that did not hand off to a human agent.                                                                                                                                                                                                                                                                          |
| `automated_resolution_rate` | number \| null | The [Automated Resolution](/docs/optimization/performance/reports/performance-reports#automated-resolution-and-containment) rate. `null` when no conversation in the range is eligible for an assessment, or when the rate is not available. For some AI Agents, the rate is `0` in place of `null` when no conversation in the range has an assessment. |
| `csat_rate`                 | number \| null | The CSAT rate: the percentage of satisfaction surveys with a positive score. `null` when no customer submitted a survey in the range.                                                                                                                                                                                                                    |

The response also repeats `start_date`, `end_date`, and the time zone that the request used. Example:

```json
{
  "start_date": "2026-11-01",
  "end_date": "2026-11-07",
  "time_zone": "America/Toronto",
  "conversations_opened": 1200,
  "conversations_engaged": 950,
  "containment_rate": 76.4,
  "automated_resolution_rate": 61.2,
  "csat_rate": 82.5
}
```

Metrics for recent days can change for a few days. For example, the Automated Resolution assessment of a conversation arrives after the conversation ends. Request recent days again to get the final values.

## Authentication

Send a Platform API key in the `Authorization` header. See [Authentication](/reference/introduction/authentication). The endpoint accepts a key with either of these scopes:

* `platform_apis`: An API key that you create on the dashboard has this scope. It also gives access to the other Platform APIs.
* `analytics_metrics:read`: A key with only this scope reads these metrics and nothing else. The dashboard does not create keys with this scope. To get one, contact your Ada team.

## Rate limits

The endpoint has these limits for each AI Agent:

* Requests per day: 2,000
* Requests per minute: 30
* Requests per second: 2

A `429` response means that a request went over a limit. Wait, then send the request again.

## Errors

| Status | Cause                                                                                                                                                                                                        |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `400`  | A date is not in the format `YYYY-MM-DD` or is outside 2000-01-01 to 2100-12-31, `end_date` is before `start_date`, the range is more than 366 days, or the time zone is not a known IANA name or `UTC/UTC`. |
| `401`  | The API key is missing or not valid, or it does not have the `platform_apis` or `analytics_metrics:read` scope.                                                                                              |
| `404`  | The Analytics Metrics API is not turned on for your AI Agent.                                                                                                                                                |
| `503`  | The metrics are not available now. Send the request again later.                                                                                                                                             |