List voice numbers
curl --request GET \
--url https://prod-platform-core-api.20x.business/api/v1/voice-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-platform-core-api.20x.business/api/v1/voice-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod-platform-core-api.20x.business/api/v1/voice-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Numbers
List voice numbers
List the phone numbers registered to your tenant
GET
/
voice-numbers
List voice numbers
curl --request GET \
--url https://prod-platform-core-api.20x.business/api/v1/voice-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://prod-platform-core-api.20x.business/api/v1/voice-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod-platform-core-api.20x.business/api/v1/voice-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Returns every voice number registered to your tenant, including which agent each
one is assigned to. Use the
id from this list as voiceNumberId when
placing a call or
creating a campaign.
curl https://prod-comms-engine-api.20x.business/api/v1/voice-numbers \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY"
requests.get(
"https://prod-comms-engine-api.20x.business/api/v1/voice-numbers",
headers={"Authorization": f"Bearer {API_KEY}"},
)
await fetch("https://prod-comms-engine-api.20x.business/api/v1/voice-numbers", {
headers: { Authorization: `Bearer ${API_KEY}` },
});
Response
[
{
"id": "660e8400-e29b-41d4-a716-446655440000",
"number": "+14155551234",
"provider": "TWILIO",
"agentId": "550e8400-e29b-41d4-a716-446655440000",
"isActive": true
}
]

