Campaigns
Get a campaign
The full campaign record, including the spec it was published from, the per-step execution plan with each step’s status, and the launch audit stamp.
GET
/
api
/
campaigns
/
{id}
Get a campaign
curl --request GET \
--url https://api.revcenter.ai/api/campaigns/{id} \
--cookie session=const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://api.revcenter.ai/api/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revcenter.ai/api/campaigns/{id}"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text){
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "smartlead",
"name": "<string>",
"status": "publishing",
"leads_pushed": 123,
"external_campaign_id": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"spec": {
"platform": "smartlead",
"name": "<string>",
"steps": [
{
"subject": "<string>",
"body": "<string>",
"delayDays": 123
}
]
},
"scan_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"steps": [
{
"key": "start",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"launched_at": "2023-11-07T05:31:56Z",
"launched_by": "<string>"
}
}{
"error": "Sign in required"
}{
"error": "Scan not found"
}{
"error": "Spec extraction failed"
}⌘I
Get a campaign
curl --request GET \
--url https://api.revcenter.ai/api/campaigns/{id} \
--cookie session=const options = {method: 'GET', headers: {cookie: 'session='}};
fetch('https://api.revcenter.ai/api/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revcenter.ai/api/campaigns/{id}"
headers = {"cookie": "session="}
response = requests.get(url, headers=headers)
print(response.text){
"campaign": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "smartlead",
"name": "<string>",
"status": "publishing",
"leads_pushed": 123,
"external_campaign_id": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"spec": {
"platform": "smartlead",
"name": "<string>",
"steps": [
{
"subject": "<string>",
"body": "<string>",
"delayDays": 123
}
]
},
"scan_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"steps": [
{
"key": "start",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"launched_at": "2023-11-07T05:31:56Z",
"launched_by": "<string>"
}
}{
"error": "Sign in required"
}{
"error": "Scan not found"
}{
"error": "Spec extraction failed"
}