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

# Add contacts to an active campaign

> Adds up to 60 specific contacts straight into an active campaign, without adding them to one of its lists, and starts their sequence. Every contact comes back with its own `outcome`, so one 202 can hold a mix: `added`, `already_in_campaign`, `missing_valid_email`, `missing_linkedin`, `contact_not_found`, `unsubscribed` (the contact opted out of your team's email, so they are never enrolled) or `enrolment_failed`. `leadId` is set for `added` and is the id the lead routes take. Repeating a call is harmless: a contact already in the campaign is reported, not enrolled twice. `enrichMissingContactData` spends credits at the enrichment price, only when an email is found, and `creditsCharged` reports what the call spent. Only the token owner's own campaigns resolve: a campaign delegated to you, one shared by your team's visibility settings, and a deleted one all answer 404.

Errors:
- `404` `CAMPAIGN_NOT_FOUND` — No campaign with this id exists, it belongs to another account (including a campaign delegated to you or shared by your team's visibility settings), or it has been deleted.
- `409` `CAMPAIGN_NOT_ACTIVE` — The campaign is not active, so contacts cannot be added to it directly.
- `409` `CAMPAIGN_LIST_FULL` — Adding these contacts would take the campaign past its maximum number of leads; none were added.
- `422` `NO_ACTIVE_EMAIL_ACCOUNTS` — The campaign sends email, and no active email account can send it.
- `422` `NO_ACTIVE_LINKEDIN_ACCOUNTS` — The campaign uses LinkedIn, and no active LinkedIn account can send it.
- `422` `VALIDATION_FAILED` — campaignId or a contact id is not a 24-character hex id, `contactIds` is outside 1-60 or repeats an id, or the body carries an unknown field.
- `429` `RATE_LIMITED` — Either this endpoint's own cap (10 requests/minute, 500/day) or the shared campaigns bucket (30/minute, 1,000/day for this token owner, shared by every /business/campaigns, /business/scheduled-sends, /business/campaign-templates and /business/knowledge-hubs call) was exceeded. The RateLimit-* headers on the response describe the shared bucket, so a refusal from this endpoint's own cap can still report requests remaining and carries no Retry-After.
- `500` `UNEXPECTED_ERROR` — An unhandled failure; the detail stays in our logs and is never returned.

Requires one of the following token scopes: campaigns.



## OpenAPI

````yaml /openapi.json post /business/campaigns/{campaignId}/contacts
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: LinkedIn
  - name: Conversations
  - name: Account
  - name: Sending accounts
  - name: Data
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Tracking domains
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Exclusions
  - name: Contacts
paths:
  /business/campaigns/{campaignId}/contacts:
    post:
      tags:
        - Campaigns
      summary: Add contacts to an active campaign
      description: >-
        Adds up to 60 specific contacts straight into an active campaign,
        without adding them to one of its lists, and starts their sequence.
        Every contact comes back with its own `outcome`, so one 202 can hold a
        mix: `added`, `already_in_campaign`, `missing_valid_email`,
        `missing_linkedin`, `contact_not_found`, `unsubscribed` (the contact
        opted out of your team's email, so they are never enrolled) or
        `enrolment_failed`. `leadId` is set for `added` and is the id the lead
        routes take. Repeating a call is harmless: a contact already in the
        campaign is reported, not enrolled twice. `enrichMissingContactData`
        spends credits at the enrichment price, only when an email is found, and
        `creditsCharged` reports what the call spent. Only the token owner's own
        campaigns resolve: a campaign delegated to you, one shared by your
        team's visibility settings, and a deleted one all answer 404.


        Errors:

        - `404` `CAMPAIGN_NOT_FOUND` — No campaign with this id exists, it
        belongs to another account (including a campaign delegated to you or
        shared by your team's visibility settings), or it has been deleted.

        - `409` `CAMPAIGN_NOT_ACTIVE` — The campaign is not active, so contacts
        cannot be added to it directly.

        - `409` `CAMPAIGN_LIST_FULL` — Adding these contacts would take the
        campaign past its maximum number of leads; none were added.

        - `422` `NO_ACTIVE_EMAIL_ACCOUNTS` — The campaign sends email, and no
        active email account can send it.

        - `422` `NO_ACTIVE_LINKEDIN_ACCOUNTS` — The campaign uses LinkedIn, and
        no active LinkedIn account can send it.

        - `422` `VALIDATION_FAILED` — campaignId or a contact id is not a
        24-character hex id, `contactIds` is outside 1-60 or repeats an id, or
        the body carries an unknown field.

        - `429` `RATE_LIMITED` — Either this endpoint's own cap (10
        requests/minute, 500/day) or the shared campaigns bucket (30/minute,
        1,000/day for this token owner, shared by every /business/campaigns,
        /business/scheduled-sends, /business/campaign-templates and
        /business/knowledge-hubs call) was exceeded. The RateLimit-* headers on
        the response describe the shared bucket, so a refusal from this
        endpoint's own cap can still report requests remaining and carries no
        Retry-After.

        - `500` `UNEXPECTED_ERROR` — An unhandled failure; the detail stays in
        our logs and is never returned.


        Requires one of the following token scopes: campaigns.
      operationId: addCampaignContacts
      parameters:
        - name: campaignId
          in: path
          required: true
          description: >-
            The campaign's id (24-character hex ObjectId), as returned by POST
            /business/campaigns or as the campaignId of a GET
            /business/campaigns row.
          schema:
            type: string
            description: >-
              The campaign's id (24-character hex ObjectId), as returned by POST
              /business/campaigns or as the campaignId of a GET
              /business/campaigns row.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contactIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 60
                  description: >-
                    CRM contact ids (24 hex) of the people to add: 1 to 60, each
                    once.
                enrichMissingContactData:
                  type: boolean
                  default: false
                  description: >-
                    When the campaign sends email, first run an email enrichment
                    for each contact without a valid work email, as the app's
                    Add to Campaign does (charged at the enrichment price, only
                    when an email is found). Left false, those contacts are not
                    added and come back as missing_valid_email.
              required:
                - contactIds
      responses:
        '202':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  addedCount:
                    type: integer
                    description: How many contacts were enrolled by this call.
                  activationStarted:
                    type: boolean
                    description: >-
                      True when the sequence started for the contacts this call
                      added.
                  creditsCharged:
                    type: number
                    description: >-
                      Credits this call spent on enrichment; 0 unless
                      `enrichMissingContactData` found an email.
                  contacts:
                    type: array
                    items:
                      type: object
                      properties:
                        contactId:
                          type: string
                        outcome:
                          type: string
                          enum:
                            - added
                            - already_in_campaign
                            - missing_valid_email
                            - missing_linkedin
                            - contact_not_found
                            - unsubscribed
                            - enrolment_failed
                        leadId:
                          type:
                            - string
                            - 'null'
                          description: >-
                            The new lead's id; set only when `outcome` is
                            `added`.
                        name:
                          type:
                            - string
                            - 'null'
                      required:
                        - contactId
                        - outcome
                        - leadId
                        - name
                required:
                  - addedCount
                  - activationStarted
                  - creditsCharged
                  - contacts
              example:
                addedCount: 1
                activationStarted: true
                creditsCharged: 0
                contacts:
                  - contactId: 6a8dce146dc0b3d9029c2301
                    outcome: added
                    leadId: 6a8dce146dc0b3d9029c22e4
                    name: Imogen Low
                  - contactId: 6a8dce146dc0b3d9029c2302
                    outcome: missing_valid_email
                    leadId: null
                    name: Tomas Reid
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````

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