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

# Export Calls

> Export calls data in CSV or JSON format.



## OpenAPI

````yaml /openapi.json get /api/calls/export
openapi: 3.1.0
info:
  description: >-
    Build and run voice assistants: configure an assistant, give it tools,
    knowledge and playbooks, place and read calls, and manage contacts,
    campaigns and analytics.


    Authenticate every request with an API key as a bearer token. See the API
    introduction for the response envelope, pagination and error shapes.
  title: Qall API
  version: 0.1.0
servers:
  - description: Production
    url: https://qall.io
security: []
paths:
  /api/calls/export:
    get:
      tags:
        - calls
      summary: Export Calls
      description: Export calls data in CSV or JSON format.
      operationId: export_calls_api_calls_export_get
      parameters:
        - in: query
          name: format
          required: false
          schema:
            default: csv
            title: Format
            type: string
        - in: query
          name: search
          required: false
          schema:
            title: Search
            type: string
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Status
        - in: query
          name: assistant_id
          required: false
          schema:
            anyOf:
              - items:
                  type: integer
                type: array
              - type: 'null'
            title: Assistant Id
        - in: query
          name: contact_id
          required: false
          schema:
            title: Contact Id
            type: integer
        - in: query
          name: direction
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Direction
        - in: query
          name: end_reason
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: End Reason
        - in: query
          name: phone_number_id
          required: false
          schema:
            anyOf:
              - items:
                  type: integer
                type: array
              - type: 'null'
            title: Phone Number Id
        - in: query
          name: outcome_status
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            title: Outcome Status
        - in: query
          name: duration_min
          required: false
          schema:
            anyOf:
              - minimum: 0
                type: integer
              - type: 'null'
            title: Duration Min
        - in: query
          name: duration_max
          required: false
          schema:
            anyOf:
              - minimum: 0
                type: integer
              - type: 'null'
            title: Duration Max
        - in: query
          name: has_recording
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Has Recording
        - in: query
          name: has_transcript
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Has Transcript
        - in: query
          name: date_range
          required: false
          schema:
            title: Date Range
            type: string
        - in: query
          name: date_from
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Date From
        - in: query
          name: date_to
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Date To
      responses:
        '200':
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.