Skip to main content
GET
/
sip-trunks
/
trunks
/
{trunk_id}
/
numbers
cURL
curl --request GET \
  --url https://api.bolna.ai/sip-trunks/trunks/{trunk_id}/numbers \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "phone_number": "<string>",
    "name": "<string>",
    "byot_trunk_id": "<string>",
    "telephony_provider": "sip-trunk",
    "deleted": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]
SIP Trunking is currently in Beta.

Please reach out to us at enterprise@bolna.ai or schedule a call at https://www.bolna.ai/meet for more information and access.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trunk_id
string
required

The unique trunk ID

Response

List of phone numbers

id
string

Unique phone number identifier.

phone_number
string

The DID phone number stored on the trunk.

name
string

Optional label for the phone number.

byot_trunk_id
string

The SIP trunk ID that this phone number belongs to.

telephony_provider
string

Provider type for BYOT numbers.

Example:

"sip-trunk"

deleted
boolean

Whether the phone number is deleted.

created_at
string<date-time>

ISO timestamp when the phone number was created.

updated_at
string<date-time>

ISO timestamp when the phone number was last updated.