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

# Upload CSV audience

> Upload a CSV file to set the audience for a campaign.



## OpenAPI

````yaml /api-reference/voxys_campaigns_swagger.json post /api/v1/accounts/{account_id}/campaigns/{campaign_id}/campaign_audience/upload_csv
openapi: 3.1.0
info:
  title: Voxys Connect – Extended Features
  description: >-
    API documentation for Voxys Connect extended features: Campaigns, WhatsApp
    Templates & Flows, Appointments, Scheduled Messages, Projects, Internal
    Channels, Customer Pulse, and Reports.
  version: 1.0.0
  contact:
    email: support@voxys.ai
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://connect.voxys.ai
security:
  - userApiKey: []
tags:
  - name: Campaigns Extended
    description: Campaign triggering, analytics, scheduling, audiences, and contact lists
  - name: Scheduled Messages
    description: Schedule messages for future delivery
  - name: Outbound Reports
    description: Analytics for outbound campaign and template messages (v2)
paths:
  /api/v1/accounts/{account_id}/campaigns/{campaign_id}/campaign_audience/upload_csv:
    post:
      tags:
        - Campaigns Extended
      summary: Upload CSV audience
      description: Upload a CSV file to set the audience for a campaign.
      operationId: uploadCampaignAudienceCsv
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: CSV file with contact phone numbers
      responses:
        '200':
          description: CSV uploaded and audience set
        '401':
          $ref: '#/components/responses/unauthorized'
        '422':
          $ref: '#/components/responses/unprocessable'
components:
  responses:
    unauthorized:
      description: Authentication failed – invalid or missing api_access_token
    unprocessable:
      description: Unprocessable entity – validation errors
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        All API requests must include the `api_access_token` header with a valid
        agent or administrator token.

````