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

# Export Metric Results as CSV

> Export metric results to a CSV file. This endpoint streams at most 100k results as the CSV file directly to the client. Use the optional filters to narrow down the results to export.



## OpenAPI

````yaml /latest.yml GET /agents/metrics/results/export
openapi: 3.0.1
info:
  title: Cartesia API
  version: 0.0.1
servers:
  - url: https://api.cartesia.ai
    description: Production
security: []
paths:
  /agents/metrics/results/export:
    get:
      tags:
        - Agents
      summary: Export Metric Results
      description: >-
        Export metric results to a CSV file. This endpoint streams at most 100k
        results as the CSV file directly to the client. Use the optional filters
        to narrow down the results to export.
      operationId: agents_export-metric-results
      parameters:
        - $ref: '#/components/parameters/CartesiaVersionHeader'
        - name: agent_id
          in: query
          description: The ID of the agent.
          required: false
          schema:
            type: string
            nullable: true
        - name: deployment_id
          in: query
          description: The ID of the deployment.
          required: false
          schema:
            type: string
            nullable: true
        - name: metric_id
          in: query
          description: The ID of the metric.
          required: false
          schema:
            type: string
            nullable: true
        - name: call_id
          in: query
          description: The ID of the call.
          required: false
          schema:
            type: string
            nullable: true
        - name: start_date
          in: query
          description: Filter metric results created at or after this RFC 3339 datetime.
          required: false
          schema:
            type: string
            format: date-time
            nullable: true
            example: '2024-04-01T00:00:00Z'
        - name: end_date
          in: query
          description: Filter metric results created before or at this RFC 3339 datetime.
          required: false
          schema:
            type: string
            format: date-time
            nullable: true
            example: '2024-04-30T23:59:59Z'
      responses:
        '200':
          description: Successfully exported metric results as a CSV file.
          content:
            text/csv:
              schema:
                type: string
                format: binary
        '400':
          description: >-
            More than 100k metric results found for the given filters. Please
            narrow down the filters to export less than 100k results.
        '404':
          description: No metric results found for the given filters.
      security:
        - APIKeyAuth: []
components:
  parameters:
    CartesiaVersionHeader:
      name: Cartesia-Version
      in: header
      description: API version header.
      required: true
      schema:
        type: string
        format: date
        example: '2026-03-01'
        enum:
          - '2026-03-01'
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Cartesia API key (`sk_car_...`). Get one at
        [play.cartesia.ai/keys](https://play.cartesia.ai/keys).

````