curl --request GET \
--url https://api.politicalcomms.com/v1/phone-numbers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/phone-numbers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/phone-numbers', 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.politicalcomms.com/v1/phone-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.politicalcomms.com/v1/phone-numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.politicalcomms.com/v1/phone-numbers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/phone-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "pn_abc123",
"number": "+12025551234",
"channel": "10dlc",
"owner_type": "campaign",
"campaign_id": "camp_xyz789",
"campaign_name": "Fall 2025 GOTV",
"brand_id": "brand_abc123",
"brand_name": "Smith PAC",
"toll_free_verification_id": null,
"tf_verification_status": null,
"toll_free_registration_name": null,
"org_id": "org_123",
"org_name": "Smith Campaign 2024",
"status": "active",
"created_at": "2024-03-01T08:00:00Z",
"shared": false,
"nickname": null
},
{
"id": "pn_def456",
"number": "+18005551234",
"channel": "toll-free",
"owner_type": "toll_free_registration",
"campaign_id": null,
"campaign_name": null,
"brand_id": null,
"brand_name": null,
"toll_free_verification_id": "tfv_abc123",
"tf_verification_status": "verified",
"toll_free_registration_name": "Smith Campaign TFN",
"org_id": "org_123",
"org_name": "Smith Campaign 2024",
"status": "active",
"created_at": "2024-03-02T08:00:00Z",
"shared": false,
"nickname": null
}
]
}List Phone Numbers
List all phone numbers across both channels: 10DLC numbers (owned via a campaign) and toll-free numbers (owned via a toll-free verification). Each row carries a channel and an owner_type indicating what it belongs to. The campaign_id/campaign_name/brand_id/brand_name fields are populated for 10DLC numbers and null for toll-free; toll_free_verification_id/toll_free_registration_name/tf_verification_status are populated for toll-free numbers and null for 10DLC. Filter by organization, brand, or campaign (brand/campaign filters apply to 10DLC numbers only), and optionally by channel or owner_type.
Numbers a parent organization shared with one of the key’s organizations are included with shared: true and nickname; on those rows every owner-side name and brand_id is null. Sharing keeps billing and registration with the owner; see Sharing phone numbers with sub-organizations.
curl --request GET \
--url https://api.politicalcomms.com/v1/phone-numbers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/phone-numbers"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/phone-numbers', 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.politicalcomms.com/v1/phone-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.politicalcomms.com/v1/phone-numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.politicalcomms.com/v1/phone-numbers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/phone-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "pn_abc123",
"number": "+12025551234",
"channel": "10dlc",
"owner_type": "campaign",
"campaign_id": "camp_xyz789",
"campaign_name": "Fall 2025 GOTV",
"brand_id": "brand_abc123",
"brand_name": "Smith PAC",
"toll_free_verification_id": null,
"tf_verification_status": null,
"toll_free_registration_name": null,
"org_id": "org_123",
"org_name": "Smith Campaign 2024",
"status": "active",
"created_at": "2024-03-01T08:00:00Z",
"shared": false,
"nickname": null
},
{
"id": "pn_def456",
"number": "+18005551234",
"channel": "toll-free",
"owner_type": "toll_free_registration",
"campaign_id": null,
"campaign_name": null,
"brand_id": null,
"brand_name": null,
"toll_free_verification_id": "tfv_abc123",
"tf_verification_status": "verified",
"toll_free_registration_name": "Smith Campaign TFN",
"org_id": "org_123",
"org_name": "Smith Campaign 2024",
"status": "active",
"created_at": "2024-03-02T08:00:00Z",
"shared": false,
"nickname": null
}
]
}Authorizations
Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.
Query Parameters
Filter to a specific descendant organization
Filter to a specific brand
Filter to a specific campaign
Filter by messaging channel
10dlc, toll-free, short-code, rcs Filter by what the number belongs to: a 10DLC campaign, a toll-free verification, or neither (purchased but not yet attached)
campaign, toll_free_registration, unassigned 