curl --request GET \
--url https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master \
--header 'Authorization: Bearer YOUR_API_KEY'import requests
url = "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"enabled": true,
"masterCampaignId": "campaign_speed_to_lead_123",
"projects": [
{
"locationId": "loc_parent_123",
"projectName": "Acme Group",
"campaignId": "campaign_speed_to_lead_123",
"campaignName": "Speed to Lead",
"role": "parent",
"active": true,
"dialing": "s2l_pd",
"calendarId": "calendar_primary",
"status": "synced",
"syncedVersion": 4,
"syncVersion": 4,
"lastError": null,
"fromNumbers": [
"+14155551234"
]
},
{
"locationId": "loc_child_456",
"projectName": "Acme Clinic Denver",
"campaignId": "campaign_child_789",
"campaignName": "Speed to Lead",
"role": "child",
"active": true,
"dialing": "s2l_pd",
"calendarId": "calendar_denver",
"status": "synced",
"syncedVersion": 4,
"syncVersion": 4,
"lastError": null,
"fromNumbers": [
"+13035550123"
],
"bindingScanStatus": "ready",
"bindingScanMatchedCount": 3,
"bindingScanMissingCount": 0,
"bindingScanError": null
}
]
}
}Get master agent state
Read which projects this master agent syncs to.
Returns enabled: false with an empty list when the campaign is not a master parent. Otherwise the first row is the parent itself and every later row is a child campaign on another project, with its sync status, the version it last received, and the result of its binding scan: how many shared slots (calendar, pipeline stage, transfer number) matched an asset on that project by name, how many are still missing, and the last error if the scan failed. A child with missing bindings cannot go live until they are set on that project.
Required API key scope: campaigns:read.
curl --request GET \
--url https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master \
--header 'Authorization: Bearer YOUR_API_KEY'import requests
url = "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamfollowup.ai/api/agent-builder/agents/{id}/campaign/master")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"enabled": true,
"masterCampaignId": "campaign_speed_to_lead_123",
"projects": [
{
"locationId": "loc_parent_123",
"projectName": "Acme Group",
"campaignId": "campaign_speed_to_lead_123",
"campaignName": "Speed to Lead",
"role": "parent",
"active": true,
"dialing": "s2l_pd",
"calendarId": "calendar_primary",
"status": "synced",
"syncedVersion": 4,
"syncVersion": 4,
"lastError": null,
"fromNumbers": [
"+14155551234"
]
},
{
"locationId": "loc_child_456",
"projectName": "Acme Clinic Denver",
"campaignId": "campaign_child_789",
"campaignName": "Speed to Lead",
"role": "child",
"active": true,
"dialing": "s2l_pd",
"calendarId": "calendar_denver",
"status": "synced",
"syncedVersion": 4,
"syncVersion": 4,
"lastError": null,
"fromNumbers": [
"+13035550123"
],
"bindingScanStatus": "ready",
"bindingScanMatchedCount": 3,
"bindingScanMissingCount": 0,
"bindingScanError": null
}
]
}
}Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Path Parameters
Agent id.
1Query Parameters
Pair with campaignId; omit both for primary campaign.
1Pair with locationId; omit both for primary campaign.
1