Skip to main content
POST
Add contacts to an active campaign

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Path Parameters

campaignId
string
required

The campaign's id (24-character hex ObjectId), as returned by POST /business/campaigns or as the campaignId of a GET /business/campaigns row.

Body

application/json
contactIds
string[]
required

CRM contact ids (24 hex) of the people to add: 1 to 60, each once.

Required array length: 1 - 60 elements
enrichMissingContactData
boolean
default:false

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.

Response

Success

addedCount
integer
required

How many contacts were enrolled by this call.

activationStarted
boolean
required

True when the sequence started for the contacts this call added.

creditsCharged
number
required

Credits this call spent on enrichment; 0 unless enrichMissingContactData found an email.

contacts
object[]
required