> ## 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.

# Add Lead to Campaign

> Adds a single lead to the specified campaign.

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



## OpenAPI

````yaml POST /v1/api/voice-campaigns/{campaign_id}/leads
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:
  /v1/api/voice-campaigns/{campaign_id}/leads:
    post:
      tags:
        - Leads (v1)
      summary: Add Lead to Campaign
      description: >-
        Adds a single lead to the specified campaign.


        ## Authentication

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

        `Authorization: Bearer <api_key>`
      operationId: addLeadToCampaignV1
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Identifier of the campaign. Required.
          schema:
            type: string
            example: camp_abc123
      requestBody:
        required: true
        description: Lead details to add to the campaign
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddLeadV1Request'
      responses:
        '200':
          description: Lead added successfully. Returns status and confirmation message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
              example:
                status: success
                message: Lead added to the campaign successfully
        '400':
          description: >-
            Invalid request data. Check that phone_number and tenant_id are
            present and correctly formatted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorWithArray'
              example:
                message: Invalid data
                error:
                  - 'Lead phone number is missing: phone_number'
        '401':
          description: >-
            Authentication failed. Authorization header is missing or the Bearer
            token is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Authorization header not found
        '403':
          description: >-
            Access denied. The API key is disabled or the campaigns API feature
            is not available on your plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: API key is disabled
        '404':
          description: >-
            Resource not found. Verify the API key exists and the tenant_id is
            correct.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Tenant not found
        '405':
          description: HTTP method not allowed on this endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: Invalid request method
        '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:
    AddLeadV1Request:
      type: object
      required:
        - tenant_id
        - phone_number
      properties:
        tenant_id:
          type: string
          description: Tenant global ID (base64-encoded). Required.
          example: VGVuYW50OjEyMw==
        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
    ErrorWithArray:
      type: object
      properties:
        message:
          type: string
        error:
          type: array
          items:
            type: string
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````