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

# Export Campaign

> Exports campaign data (e.g. analytics or logs) as a downloadable ZIP or Excel file.



## OpenAPI

````yaml GET /v2/export/campaign/{campaign_id}/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /v2/export/campaign/{campaign_id}/:
    get:
      summary: Export campaign data as downloadable file
      description: >-
        Exports campaign data (e.g. analytics or logs) as a downloadable ZIP or
        Excel file.
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: The unique ID of the campaign (e.g., quickcamp2062236c)
          schema:
            type: string
        - name: Company-Name
          in: header
          required: true
          description: The schema name for multi-tenancy (company-wise DB separation)
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: outcome
          in: query
          required: false
          schema:
            type: string
        - name: date
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: from_date
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: to_date
          in: query
          required: false
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Downloadable campaign export file (ZIP, CSV, or Excel)
          content:
            application/zip:
              schema:
                type: string
                format: binary
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````