curl --request GET \
--url https://api.bland.ai/v1/sip/numbers \
--header 'authorization: <authorization>'{
"data": {
"numbers": [
{
"phone_number": "+14150000000",
"directions": ["inbound", "outbound"],
"sip_endpoint": "sip:trunk.provider.com",
"health_status": "healthy"
},
{
"phone_number": "+14150000001",
"directions": ["inbound"],
"sip_endpoint": null,
"health_status": "unchecked"
}
]
},
"errors": null
}
List all phone numbers with SIP configurations for your organization.
curl --request GET \
--url https://api.bland.ai/v1/sip/numbers \
--header 'authorization: <authorization>'{
"data": {
"numbers": [
{
"phone_number": "+14150000000",
"directions": ["inbound", "outbound"],
"sip_endpoint": "sip:trunk.provider.com",
"health_status": "healthy"
},
{
"phone_number": "+14150000001",
"directions": ["inbound"],
"sip_endpoint": null,
"health_status": "unchecked"
}
]
},
"errors": null
}
phone_number (string) — The phone number in E.164 formatdirections (array) — List of configured directions ("inbound", "outbound")sip_endpoint (string) — The SIP endpoint (for outbound)health_status (string) — Current health: "healthy", "unreachable", or "unchecked"curl -X GET https://api.bland.ai/v1/sip/numbers \
-H "Authorization: Bearer <token>"
{
"data": {
"numbers": [
{
"phone_number": "+14150000000",
"directions": ["inbound", "outbound"],
"sip_endpoint": "sip:trunk.provider.com",
"health_status": "healthy"
},
{
"phone_number": "+14150000001",
"directions": ["inbound"],
"sip_endpoint": null,
"health_status": "unchecked"
}
]
},
"errors": null
}
Was this page helpful?