curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"contactIds": [
"<string>"
]
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts"
payload = { "contactIds": ["<string>"] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({contactIds: ['<string>']})
};
fetch('https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}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:
404CAMPAIGN_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.409CAMPAIGN_NOT_ACTIVE— The campaign is not active, so contacts cannot be added to it directly.409CAMPAIGN_LIST_FULL— Adding these contacts would take the campaign past its maximum number of leads; none were added.422NO_ACTIVE_EMAIL_ACCOUNTS— The campaign sends email, and no active email account can send it.422NO_ACTIVE_LINKEDIN_ACCOUNTS— The campaign uses LinkedIn, and no active LinkedIn account can send it.422VALIDATION_FAILED— campaignId or a contact id is not a 24-character hex id,contactIdsis outside 1-60 or repeats an id, or the body carries an unknown field.429RATE_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.500UNEXPECTED_ERROR— An unhandled failure; the detail stays in our logs and is never returned.
Requires one of the following token scopes: campaigns.
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"contactIds": [
"<string>"
]
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts"
payload = { "contactIds": ["<string>"] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({contactIds: ['<string>']})
};
fetch('https://api.tryfuse.ai/api/v1/business/campaigns/{campaignId}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Path Parameters
Body
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