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

# Bulk Add Contacts to Campaign

> Add many contacts to a campaign in one call. Either pass an explicit `contact_ids` array, or `contact_ids="all"` together with `filters` (same shape as the contact list filters). Contacts without an email or with DND set are skipped.



## OpenAPI

````yaml POST /email/campaigns/{campaign_id}/add/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /email/campaigns/{campaign_id}/add/:
    post:
      tags:
        - email
      summary: Bulk Add Contacts to Campaign
      description: >-
        Add many contacts to a campaign in one call. Either pass an explicit
        `contact_ids` array, or `contact_ids="all"` together with `filters`
        (same shape as the contact list filters). Contacts without an email or
        with DND set are skipped.
      operationId: email_campaigns_add_create
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailCampaignBulkAddContactsRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EmailCampaignBulkAddContactsRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EmailCampaignBulkAddContactsRequestRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignBulkAddContactsResponse'
          description: ''
        '400':
          description: Bad payload, malformed filters, or no contacts matched.
        '404':
          description: Campaign not found.
      security:
        - jwtAuth: []
        - {}
components:
  schemas:
    EmailCampaignBulkAddContactsRequestRequest:
      type: object
      properties:
        contact_ids:
          description: Array of contact UUIDs, or the literal string `"all"`.
        filters: {}
        limit:
          type: integer
    EmailCampaignBulkAddContactsResponse:
      type: object
      properties:
        created:
          type: integer
          description: >-
            Number of new enrollments created (existing enrollments are
            unchanged).
      required:
        - created
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````