---
title: "Export Metric Results"
method: GET
path: "/agents/metrics/results/export"
tags: ["Agents"]
---

# Export Metric Results

`GET /agents/metrics/results/export`

Exports metric results as a CSV file.

By default, with no pagination parameters, the endpoint streams the entire matching result set as a single CSV. To page through results instead, pass `limit` and `starting_after` / `ending_before`. Paginated responses include the `X-Has-More` and `X-Next-Cursor` headers. Up to 100,000 rows can be exported per request in either mode; requests whose total matching set exceeds this cap return a `400` error.

## Query parameters

- `agent_id` string, nullable
- `deployment_id` string, nullable
- `metric_id` string, nullable
- `call_id` string, nullable
- `start_date` string, date-time, nullable
- `end_date` string, date-time, nullable
- `limit` integer
- `starting_after` string, nullable
- `ending_before` string, nullable

## Headers

- `Cartesia-Version` '2026-03-01', date, required

## Response `200`

Successfully exported metric results as a CSV file.

## Other responses

- `400` — More than 100k metric results found for the given filters. Please narrow down the filters to export less than 100k results.
- `404` — No metric results found for the given filters.

---

[API](https://skmtc.net/cartesia/apis/cartesia-api.md) · [All operations](https://skmtc.net/cartesia/apis/cartesia-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cartesia/cartesia-api/revisions/8910812440d3/schema)
