Enroll a contact in a campaign
curl --request POST \
--url https://app.revve.ai/api/campaigns/enrollments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contactId": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"source": "<string>",
"version": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contactId: '<string>',
teamId: '<string>',
campaignId: '<string>',
source: '<string>',
version: '<string>'
})
};
fetch('https://app.revve.ai/api/campaigns/enrollments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.revve.ai/api/campaigns/enrollments"
payload = {
"contactId": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"source": "<string>",
"version": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Contact enrolled successfully",
"enrollmentId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Contact is already enrolled in this campaign",
"enrollmentId": "<string>",
"status": "<string>"
}{
"error": "<string>"
}API Reference
Enroll a contact in a campaign
Enrolls an existing Revve contact into a campaign. Use this when the contact already exists in Revve and you just need to start (or advance) their campaign journey. To create the contact and enroll it in one call, use POST /api/campaigns/contact-enrollments instead.
POST
/
api
/
campaigns
/
enrollments
Enroll a contact in a campaign
curl --request POST \
--url https://app.revve.ai/api/campaigns/enrollments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contactId": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"source": "<string>",
"version": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contactId: '<string>',
teamId: '<string>',
campaignId: '<string>',
source: '<string>',
version: '<string>'
})
};
fetch('https://app.revve.ai/api/campaigns/enrollments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.revve.ai/api/campaigns/enrollments"
payload = {
"contactId": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"source": "<string>",
"version": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Contact enrolled successfully",
"enrollmentId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Contact is already enrolled in this campaign",
"enrollmentId": "<string>",
"status": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json