Skip to content

List phone numbers on the account

GET
/v1/Accounts/{auth_id}/PhoneNumbers
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/PhoneNumbers?status=active&phoneNumber=5555550&country=US&countryCode=1&type=local&capability=sms&direction=outbound&applicationType=ContactCenter&applicationId=1024&isDefault=true&customerid=AC000000000000000001&page=1&pageSize=30' \
--header 'Authorization: Basic <credentials>'

Returns the numbers assigned to your account, newest subscription first. Without customerid, a parent (vendor) account also gets the numbers assigned to all of its direct child accounts; with customerid, only that account’s numbers are returned (it must be you or a direct child). Each entry merges the number record with its subscription: status, linked application, purchase and release dates, routing entries and default flag. Filters match the stored number snapshot: phoneNumber, capability, type, direction and applicationType are case-insensitive substring matches, countryCode is the calling code with or without +, and country is an ISO 3166-1 country code. The value all (or any) turns a filter off. Pages hold 30 numbers by default; pageSize=all returns every match on one page. When nothing matches, purchased_phone_numbers is null.

auth_id
required
string

Your Auth ID.

Example

AC000000000000000000
status
string
default: active
Allowed values: active cancellation_request

Subscription status to list: active, or cancellation_request for released numbers.

phoneNumber
string

Part of the number to match, digits only or with +.

Example

5555550
country
string

ISO 3166-1 alpha-2 or alpha-3 country of the number.

Example

US
countryCode
string

Country calling code, with or without +.

Example

1
type
string

Number type: local, mobile or tollfree.

Example

local
capability
string

Capability the number must have, e.g. voice or sms.

Example

sms
direction
string

Call direction the number must allow: inbound, outbound or blended.

Example

outbound
applicationType
string

Product label, e.g. ContactCenter.

Example

ContactCenter
applicationId
string

Only numbers linked to this application ID.

Example

1024
isDefault
string
Allowed values: true false

True for the default outbound number only, false to exclude it.

customerid
string

Auth ID of a direct child account whose numbers to list.

Example

AC000000000000000001
page
integer
default: 1

Page number, starting at 1.

pageSize
string
default: 30

Numbers per page, or all for every match on one page.

One page of numbers

Media type application/json
object
base_url

URL of this listing as the service saw it. Omitted when the whole list is returned in one page.

string
current_page

Page number of this response, starting at 1.

integer
last_page

Number of the last page. 0 when there are no results.

integer
next_url

URL of the next page. Omitted on the last page.

string
per_page

Page size used for this response.

integer
prev_url

URL of the previous page. Omitted on the first page.

string
purchased_phone_numbers

The numbers on this page, newest subscription first. null when nothing matches.

Array<object>
object
acc_id

Auth ID of the account the number is assigned to. Empty while it is unassigned inventory.

string
accountinfo

The account the number is assigned to.

object
account_id

Auth ID of the account.

string
first_name

Account holder’s first name.

string
last_name

Account holder’s last name.

string
serial_number

Account serial number, when set.

string
address_requirement

Address or identity document needed before the number can be assigned: none, or the kind of document the account must have verified for the number’s country and type.

string
application_id

ID of the application that handles the number’s inbound traffic; -1 or 0 when none is linked.

integer
application_metadata

Inbound routing entries set on the number, one per channel, with names resolved.

Array<object>
object
application_name

Name of the linked application.

string
application_type

Product the number is used with, a free-form label such as ContactCenter or FrontDesk.

string
capability

Comma-separated capabilities, e.g. voice, sms, mms, fax.

string
carrier

Name of the carrier that provides the number.

string
carrier_id

Internal carrier reference, when set.

string
country_code
required

Country calling code, without the plus.

string
country_iso
required

ISO 3166-1 alpha-2 country of the number.

string
direction

Comma-separated call directions the number may be used for: inbound, outbound, blended.

string
effctive_start_date

When the number became usable (RFC 3339), for imported or ported numbers; otherwise null. The field name is spelled effctive_start_date.

string
end_date

End of the subscription (RFC 3339). New subscriptions run for 100 years.

string
error

Last provisioning error recorded for the number, if any.

string
expiry_date

When the number stops being usable (RFC 3339), for numbers imported with an expiry; otherwise null.

string
initial_pulse
required

Initial billing pulse for inbound calls, in seconds.

integer
is_default

Whether this is the account’s default outbound number.

boolean
metadata

Free-form JSON metadata stored on the number.

object
modified_by

Optional name of the person making the change, recorded in the audit log.

string
mrc
required

Monthly recurring charge, in USD.

number
nrc
required

Non-recurring (setup) charge, in USD.

number
parent_act_id

Auth ID of the vendor whose inventory the number belongs to.

string
phone_number
required

The phone number, stored as it was added to the inventory (usually E.164).

string
purchased_time

When the number was assigned to the account (RFC 3339).

string
rate_center

Rate centre or locality of the number, when known.

string
released_time

When the number was released (RFC 3339); null while it is in use.

string
route_list

ID of the SIP route list attached to the subscription, if any.

string
route_list_name

Name of the route list.

string
route_tag

ID of the SIP route tag attached to the subscription, if any.

string
route_tag_name

Name of the route tag.

string
rps
required

Per-minute rate for inbound calls to the number, in USD.

number
site

Free-form site label used to group numbers.

string
status

For an assigned number, the subscription status: active, or cancellation_request after a release. For inventory: active (available), unavailable (assigned) or deleted.

string
sub_pulse
required

Subsequent billing pulse for inbound calls, in seconds.

integer
type
required

Number type: local, mobile or tollfree.

string
types

Number class: GEO (geographic) or NGN (non-geographic).

string
total_results

Total number of matching records across all pages.

integer

Example

{
"base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/PhoneNumbers?page=2",
"current_page": 2,
"last_page": 4,
"next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/PhoneNumbers?page=3",
"per_page": 30,
"prev_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/PhoneNumbers?page=1",
"purchased_phone_numbers": [
{
"acc_id": "AC000000000000000001",
"accountinfo": {
"account_id": "AC000000000000000001",
"first_name": "Jane",
"last_name": "Doe",
"serial_number": "1001"
},
"address_requirement": "none",
"application_id": 1024,
"application_name": "Support line",
"application_type": "ContactCenter",
"capability": "voice,sms",
"carrier": "Example Telecom",
"carrier_id": "",
"country_code": "1",
"country_iso": "US",
"direction": "inbound,outbound",
"effctive_start_date": "2026-11-20T00:00:00Z",
"end_date": "2126-11-20T10:15:00Z",
"error": "",
"expiry_date": "2027-11-20T00:00:00Z",
"initial_pulse": 60,
"is_default": false,
"modified_by": "jane@example.com",
"mrc": 1.5,
"nrc": 1,
"parent_act_id": "AC000000000000000000",
"phone_number": "+15555550100",
"purchased_time": "2026-11-20T10:15:00Z",
"rate_center": "NEW YORK",
"released_time": "2026-11-25T08:00:00Z",
"route_list": "12",
"route_list_name": "Primary carriers",
"route_tag": "3",
"route_tag_name": "Premium",
"rps": 0.01,
"site": "London office",
"status": "active",
"sub_pulse": 60,
"type": "local",
"types": "GEO"
}
],
"total_results": 97
}

A query parameter could not be parsed

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

Missing or invalid credentials, or {auth_id} is not your account or a direct child (returned by the API gateway)

Media type application/json
string

Example generated

example

Customerid is not your account or a direct child

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

The search failed, e.g. an unknown country code

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

The account named in customerid could not be looked up

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}