Search numbers available to assign
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/AvailablePhoneNumbers/US/local?capability=voice&phoneNumber=555555&countryCode=1&types=GEO&applicationType=ContactCenter&page=1&pageSize=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/AvailablePhoneNumbers/US/local?capability=voice&phoneNumber=555555&countryCode=1&types=GEO&applicationType=ContactCenter&page=1&pageSize=30' \ --header 'Authorization: Basic <credentials>'Lists the unassigned numbers in your own inventory that match the filters, newest first. These are the numbers you can assign with Assign a phone number; an account that is not a vendor normally has none, because its numbers are assigned by its vendor. country_code and phone_type narrow the search, and all (or any) matches everything. phone_type, capability, types and applicationType are case-insensitive substring matches; phoneNumber matches any part of the number, ignoring + and spaces. Pages hold 30 numbers by default. When nothing matches, available_phone_numbers is null.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID.
Example
AC000000000000000000ISO 3166-1 alpha-2 or alpha-3 country, or all.
Example
USNumber type: local, mobile, tollfree, or all.
Example
localQuery Parameters
Section titled “ Query Parameters ”Capability the number must have, e.g. voice or sms; all for any.
Example
voicePart of the number to match.
Example
555555Country calling code, with or without +.
Example
1Number class: GEO or NGN.
Example
GEOProduct label, e.g. ContactCenter.
Example
ContactCenterPage number, starting at 1.
Numbers per page.
Responses
Section titled “ Responses ”One page of available numbers
object
The numbers on this page, newest first. null when nothing matches.
object
Auth ID of the account the number is assigned to. Empty while it is unassigned inventory.
The account the number is assigned to.
object
Auth ID of the account.
Account holder’s first name.
Account holder’s last name.
Account serial number, when set.
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.
ID of the application that handles the number’s inbound traffic; -1 or 0 when none is linked.
Inbound routing entries set on the number, one per channel, with names resolved.
object
Name of the linked application.
Product the number is used with, a free-form label such as ContactCenter or FrontDesk.
Comma-separated capabilities, e.g. voice, sms, mms, fax.
Name of the carrier that provides the number.
Internal carrier reference, when set.
Country calling code, without the plus.
ISO 3166-1 alpha-2 country of the number.
Comma-separated call directions the number may be used for: inbound, outbound, blended.
When the number became usable (RFC 3339), for imported or ported numbers; otherwise null. The field name is spelled effctive_start_date.
End of the subscription (RFC 3339). New subscriptions run for 100 years.
Last provisioning error recorded for the number, if any.
When the number stops being usable (RFC 3339), for numbers imported with an expiry; otherwise null.
Initial billing pulse for inbound calls, in seconds.
Whether this is the account’s default outbound number.
Free-form JSON metadata stored on the number.
object
Optional name of the person making the change, recorded in the audit log.
Monthly recurring charge, in USD.
Non-recurring (setup) charge, in USD.
Auth ID of the vendor whose inventory the number belongs to.
The phone number, stored as it was added to the inventory (usually E.164).
When the number was assigned to the account (RFC 3339).
Rate centre or locality of the number, when known.
When the number was released (RFC 3339); null while it is in use.
ID of the SIP route list attached to the subscription, if any.
Name of the route list.
ID of the SIP route tag attached to the subscription, if any.
Name of the route tag.
Per-minute rate for inbound calls to the number, in USD.
Free-form site label used to group numbers.
For an assigned number, the subscription status: active, or cancellation_request after a release. For inventory: active (available), unavailable (assigned) or deleted.
Subsequent billing pulse for inbound calls, in seconds.
Number type: local, mobile or tollfree.
Number class: GEO (geographic) or NGN (non-geographic).
URL of this listing as the service saw it. Omitted when the whole list is returned in one page.
Page number of this response, starting at 1.
Number of the last page. 0 when there are no results.
URL of the next page. Omitted on the last page.
Page size used for this response.
URL of the previous page. Omitted on the first page.
Total number of matching records across all pages.
Example
{ "available_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" } ], "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", "total_results": 97}Missing or invalid credentials (returned by the API gateway)
Example generated
exampleThe search failed, e.g. an unknown country code
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}