Create a contact and enroll it in a campaign
curl --request POST \
--url https://app.revve.ai/api/campaigns/contact-enrollments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"name": "<string>",
"email": "<string>",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '<string>',
teamId: '<string>',
campaignId: '<string>',
name: '<string>',
email: '<string>',
companyName: '<string>',
companyWebsite: '<string>',
timezone: '<string>'
})
};
fetch('https://app.revve.ai/api/campaigns/contact-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/contact-enrollments"
payload = {
"phoneNumber": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"name": "<string>",
"email": "<string>",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "success",
"contactId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}API Reference
Create a contact and enroll it in a campaign
Creates (or updates, if a matching contact already exists) a Revve contact from a phone number and enrolls it into a campaign in one call. Use this when the contact doesn’t exist in Revve yet — for example, a lead arriving straight from your core system or CRM. If campaignId is omitted, this only creates/updates the contact without enrolling it in anything.
POST
/
api
/
campaigns
/
contact-enrollments
Create a contact and enroll it in a campaign
curl --request POST \
--url https://app.revve.ai/api/campaigns/contact-enrollments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"name": "<string>",
"email": "<string>",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '<string>',
teamId: '<string>',
campaignId: '<string>',
name: '<string>',
email: '<string>',
companyName: '<string>',
companyWebsite: '<string>',
timezone: '<string>'
})
};
fetch('https://app.revve.ai/api/campaigns/contact-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/contact-enrollments"
payload = {
"phoneNumber": "<string>",
"teamId": "<string>",
"campaignId": "<string>",
"name": "<string>",
"email": "<string>",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "success",
"contactId": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json