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

# Bulk Add Leads to Campaign

> Queues multiple leads for asynchronous addition to the specified campaign.

## Authentication
All requests require an `Authorization` header using Bearer token authentication:
`Authorization: Bearer <api_key>`



## OpenAPI

````yaml POST /api/v2/voice-campaigns/{campaign_id}/leads/bulk
openapi: 3.1.0
info:
  title: VoiceAIWrapper API
  description: >-
    REST API for managing campaigns, leads, clients, web widgets, and voice
    providers on VoiceAIWrapper.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.voiceaiwrapper.app
security:
  - bearerAuth: []
paths:
  /api/v2/voice-campaigns/{campaign_id}/leads/bulk:
    post:
      tags:
        - Leads (v2)
      summary: Bulk Add Leads to Campaign
      description: >-
        Queues multiple leads for asynchronous addition to the specified
        campaign.


        ## Authentication

        All requests require an `Authorization` header using Bearer token
        authentication:

        `Authorization: Bearer <api_key>`
      operationId: bulkAddLeadsToCampaignV2
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Identifier of the campaign. Required.
          schema:
            type: string
            example: camp_abc123
      requestBody:
        required: true
        description: Array of lead objects to add
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AddLeadV2Request'
              example:
                - phone_number: '+14155552671'
                  first_name: Jane
                  last_name: Doe
                - phone_number: '+14155559999'
                  first_name: John
                  last_name: Smith
      responses:
        '200':
          description: >-
            Leads queued successfully. Processing happens asynchronously - check
            campaign lead counts to confirm completion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
              example:
                status: success
                message: Leads are queued to be added to the campaign
        '400':
          description: Invalid request data. Request body must be a non-empty JSON array.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Body must be a non-empty list
        '401':
          description: Authentication failed. Ensure the Bearer token is present and valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: >-
            Resource not found. The tenant associated with the API key was not
            found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Tenant not found
        '500':
          description: Internal server error. Contact support if this persists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Internal server error
components:
  schemas:
    AddLeadV2Request:
      type: object
      required:
        - phone_number
      properties:
        phone_number:
          type: string
          description: Lead phone number in E.164 format. Required.
          example: '+14155552671'
        first_name:
          type: string
          description: Lead first name. Optional.
          example: Jane
        last_name:
          type: string
          description: Lead last name. Optional.
          example: Doe
        email:
          type: string
          format: email
          description: Lead email address. Optional.
          example: jane.doe@example.com
        custom_fields:
          type: object
          additionalProperties: true
          description: >-
            Additional key-value pairs for call script personalisation.
            Optional.
          example:
            company: Acme Corp
            plan: enterprise
    SuccessMessage:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````