Skip to main content
GET
/
agents
/
metrics
/
results
/
export
Export Metric Results
curl --request GET \
  --url https://api.cartesia.ai/agents/metrics/results/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Cartesia-Version: <cartesia-version>'
"<string>"

Authorizations

Authorization
string
header
required

Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.

Headers

Cartesia-Version
enum<string>
required

API version header.

Available options:
2026-03-01
Example:

"2026-03-01"

Query Parameters

agent_id
string | null

The ID of the agent.

deployment_id
string | null

The ID of the deployment.

metric_id
string | null

The ID of the metric.

call_id
string | null

The ID of the call.

start_date
string<date-time> | null

Filter metric results created at or after this RFC 3339 datetime.

Example:

"2024-04-01T00:00:00Z"

end_date
string<date-time> | null

Filter metric results created before or at this RFC 3339 datetime.

Example:

"2024-04-30T23:59:59Z"

limit
integer

The maximum number of rows to return in this CSV page, between 1 and 1000. Passing this parameter enables paginated mode; omit it (along with starting_after and ending_before) to stream the full result set.

Required range: 1 <= x <= 1000
starting_after
string | null

An opaque pagination cursor. Returns the page of results after this cursor. Pass the X-Next-Cursor value from the previous page to fetch the next page. Treat the cursor as an opaque string. Cannot be combined with ending_before.

ending_before
string | null

An opaque pagination cursor. Returns the page of results before this cursor. Treat the cursor as an opaque string. Cannot be combined with starting_after.

Response

Successfully exported metric results as a CSV file.

The response is of type file.