Skip to content

Get a trunk phone number

GET
/v1/Accounts/{auth_id}/SipTrunk/{trunk_id}/PhoneNumber/{trunk_number_id}
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/PhoneNumber/example \
--header 'Authorization: Basic <credentials>'

Returns one phone number record of a trunk by its trunk_number_id (from the list).

auth_id
required
string

Auth ID of your account.

trunk_id
required
string

ID of the trunk.

trunk_number_id
required
string

ID of the trunk phone number record (not the number itself).

The trunk phone number.

Media type application/json
object
result

The trunk phone number.

object
country_code

Country calling code.

string
country_iso

ISO 3166-1 alpha-2 country code.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
id

Trunk phone number ID (UUID); use it as trunk_number_id.

string
modified_by

Auth ID of the account that last changed the record.

string
phone_number

Phone number, digits only.

string
status

Status of the number on the trunk.

string
Allowed values: active inactive
trunk_id

Trunk the number is routed over.

string
type

Number type.

string
updated_at

When the record was last changed (RFC 3339).

string
status

Always “success”.

string

Example

{
"result": {
"country_code": "1",
"country_iso": "US",
"created_at": "2026-01-15T10:30:00Z",
"created_by": "AC000000000000000000",
"id": "7e6d5c4b-3a29-4180-9f7e-6d5c4b3a2901",
"modified_by": "AC000000000000000000",
"phone_number": "15555550100",
"status": "active",
"trunk_id": "3d6f0a52-8c1e-4b7a-9f2d-1a2b3c4d5e01",
"type": "local",
"updated_at": "2026-01-16T08:00:00Z"
},
"status": "success"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

No live trunk phone number with this ID (code 20404).

Media type application/json
object
code

SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).

integer
message

Human-readable description of the error.

string
more_info

Link to more information.

string
status

HTTP status the error is meant to map to. It can differ from the actual response status.

integer

Example

{
"code": 21213,
"message": "validation failed on field Password is not valid",
"more_info": "https://api.siprtc.io",
"status": 400
}