Enroll contacts in a campaign
Queues immediate or scheduled enrollment jobs for one or more contacts in an active campaign.
Queues immediate or scheduled enrollment jobs for one or more contacts in an active campaign.
Authorization
apiKey In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/enrollments" \ -H "Content-Type: application/json" \ -d '{ "contactIds": [ "42c382fb-14d8-48d9-b3ff-0b7917436af9" ] }'{
"message": "string",
"enrolled": 0,
"skipped": [
{
"contactId": "b5ec5d98-4bee-4da1-ad24-dde86346cb1d",
"reason": "string"
}
],
"startAt": "2019-08-24T14:15:22Z"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string",
"code": "string",
"conflicts": [
null
]
}{
"error": "string"
}{
"error": "string"
}Enroll accounts in a campaign POST
Enrolls contacts at the given accounts. For campaigns built in the Outreach builder this queues one background job per account, the same one the app uses: it can enroll existing contacts, find new contacts matching Target Personas (`personaIds`, spends credits), cap contacts per account, and route each contact to the best-fitting campaign (`routing`). Only non-customer accounts with sales status lead or working are eligible. For campaigns created through the API, the existing contacts of each account are enrolled immediately and `personaIds`, `maxContactsPerAccount` and `routing` are rejected. The campaign must be active.
Get campaign by ID GET
Returns a campaign and its configured steps.