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

# Add contacts to a campaign

> **Enrol directory contacts into a campaign**

Creates one campaign membership per contact. Contacts already in the campaign
are skipped, and addresses blocked in any of the campaign's workspaces are
reported under `details.blocked` without being enrolled. Suppression is
enforced at the send pipeline regardless.



## OpenAPI

````yaml /public_openapi.json post /api/public/v1/contacts/bulk/campaigns
openapi: 3.0.3
info:
  title: ColdSend Public API
  description: >-
    Programmatic access to ColdSend for managing cold email campaigns and sender
    accounts.
  version: 1.0.0
  contact:
    name: ColdSend Support
    email: support@coldsend.pro
    url: https://coldsend.pro
servers:
  - url: https://api.coldsend.pro
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/public/v1/contacts/bulk/campaigns:
    post:
      tags:
        - Contacts
      summary: Add contacts to a campaign
      description: >-
        **Enrol directory contacts into a campaign**


        Creates one campaign membership per contact. Contacts already in the
        campaign

        are skipped, and addresses blocked in any of the campaign's workspaces
        are

        reported under `details.blocked` without being enrolled. Suppression is

        enforced at the send pipeline regardless.
      operationId: bulk_add_to_campaign_api_public_v1_contacts_bulk_campaigns_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Contacts enrolled in the campaign
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactBulkApiResponse'
        '403':
          description: Insufficient permissions - requires 'contacts:update' scope
        '404':
          description: Campaign not found in this team
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ContactBulkApiResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        message:
          type: string
          title: Message
        requested:
          type: integer
          title: Requested
        affected:
          type: integer
          title: Affected
        skipped:
          type: integer
          title: Skipped
          default: 0
        not_found:
          type: integer
          title: Not Found
          default: 0
        details:
          additionalProperties: true
          type: object
          nullable: true
          title: Details
      type: object
      required:
        - message
        - requested
        - affected
      title: ContactBulkApiResponse
      description: |-
        Outcome of a bulk directory operation.

        The service treats every bulk call as a per-contact no-op-on-repeat:
        `affected` counts contacts the operation changed, `skipped` counts
        contacts it already satisfied, and `not_found` counts IDs outside the
        caller's team. Re-running the same request is therefore safe.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key with format cs_live_xxx

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.