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

# Export Conversations as CSV

> Export up to 5,000 conversations as a CSV file with dynamic columns for evaluation criteria and data collection results.



## OpenAPI

````yaml https://api.threetone.in/openapi.json get /v1/voiceai/conversations/export
openapi: 3.1.0
info:
  title: Threetone API Documentation
  version: 1.0.0
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/voiceai/conversations/export:
    get:
      tags:
        - Conversations
      summary: Export Conversations as CSV
      description: >-
        Export up to 5,000 conversations as a CSV file with dynamic columns for
        evaluation criteria and data collection results.
      operationId: conversations_export
      parameters:
        - name: agent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by agent ID.
            title: Agent Id
          description: Filter by agent ID.
        - name: call_successful
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/EvaluationSuccessResult'
              - type: 'null'
            description: Filter by success result (success/failure/unknown).
            title: Call Successful
          description: Filter by success result (success/failure/unknown).
        - name: call_start_before_unix
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Unix timestamp to filter conversations before this date.
            title: Call Start Before Unix
          description: Unix timestamp to filter conversations before this date.
        - name: call_start_after_unix
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Unix timestamp to filter conversations after this date.
            title: Call Start After Unix
          description: Unix timestamp to filter conversations after this date.
        - name: call_duration_min_secs
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Minimum call duration in seconds.
            title: Call Duration Min Secs
          description: Minimum call duration in seconds.
        - name: call_duration_max_secs
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Maximum call duration in seconds.
            title: Call Duration Max Secs
          description: Maximum call duration in seconds.
        - name: rating_min
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 5
                minimum: 1
              - type: 'null'
            description: Minimum rating (1-5).
            title: Rating Min
          description: Minimum rating (1-5).
        - name: rating_max
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 5
                minimum: 1
              - type: 'null'
            description: Maximum rating (1-5).
            title: Rating Max
          description: Maximum rating (1-5).
        - name: direction
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/ConversationDirection'
              - type: 'null'
            description: Filter by call direction (inbound/outbound/web).
            title: Direction
          description: Filter by call direction (inbound/outbound/web).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 5000
            minimum: 1
            description: Maximum number of rows to export (max 5000).
            default: 1000
            title: Limit
          description: Maximum number of rows to export (max 5000).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    EvaluationSuccessResult:
      type: string
      enum:
        - success
        - failure
        - unknown
      title: EvaluationSuccessResult
      description: Result of conversation success evaluation
    ConversationDirection:
      type: string
      enum:
        - inbound
        - outbound
        - web
      title: ConversationDirection
      description: |-
        Direction of a conversation.

        - inbound: Phone call received (SIP/Twilio)
        - outbound: Phone call initiated by agent
        - web: Web widget / dashboard talk-to initiated conversation
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: API key for programmatic access
      in: header
      name: x-api-key
    HTTPBearer:
      type: http
      description: JWT Bearer token for dashboard access
      scheme: bearer

````