Get an inbound SIP trunk
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sip_trunk": {
"id": "2d4f6a8c-0e1b-4c3d-8e5f-7a9b1c2d3e4f",
"project_id": "3f6c1a52-8d0e-4b8f-9a51-2c7d4e0b9f13",
"name": "Head office PBX",
"whitelist_cidrs": [
"203.0.113.10/32"
],
"allowed_e164s": [
"14155550123",
"14155550124"
],
"status": "active",
"secure_media": "enabled",
"livekit_trunk_id": "ST_a1b2c3d4e5f6",
"livekit_dispatch_rule_id": "SDR_f6e5d4c3b2a1",
"sip_headers": [],
"created_at": "Mon Nov 09 2026 14:00:02 GMT+0000 (Coordinated Universal Time)",
"updated_at": "Tue Nov 10 2026 11:20:15 GMT+0000 (Coordinated Universal Time)"
}
}{
"error": "Invalid or revoked token"
}{
"error": "SIP trunk not found"
}Inbound SIP trunks
Get an inbound SIP trunk
Returns one inbound SIP trunk, with the numbers bound to it in allowed_e164s.
GET
/
v1
/
projects
/
{projectId}
/
telephony
/
sip-trunks
/
{id}
Get an inbound SIP trunk
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/telephony/sip-trunks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sip_trunk": {
"id": "2d4f6a8c-0e1b-4c3d-8e5f-7a9b1c2d3e4f",
"project_id": "3f6c1a52-8d0e-4b8f-9a51-2c7d4e0b9f13",
"name": "Head office PBX",
"whitelist_cidrs": [
"203.0.113.10/32"
],
"allowed_e164s": [
"14155550123",
"14155550124"
],
"status": "active",
"secure_media": "enabled",
"livekit_trunk_id": "ST_a1b2c3d4e5f6",
"livekit_dispatch_rule_id": "SDR_f6e5d4c3b2a1",
"sip_headers": [],
"created_at": "Mon Nov 09 2026 14:00:02 GMT+0000 (Coordinated Universal Time)",
"updated_at": "Tue Nov 10 2026 11:20:15 GMT+0000 (Coordinated Universal Time)"
}
}{
"error": "Invalid or revoked token"
}{
"error": "SIP trunk not found"
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.