List your number inventory
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Vendors/PhoneNumbers?list=all&page=1&limit=10';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/Vendors/PhoneNumbers?list=all&page=1&limit=10' \ --header 'Authorization: Basic <credentials>'Vendor accounts only. Lists the numbers in your inventory, newest first: all of them, only the unassigned ones (list=available) or only those assigned to an account (list=used). A member of a vendor account in the same company sees the vendor’s inventory. Pages hold 10 numbers unless limit is set; an empty inventory or a page past the end is answered with 404.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your (vendor) Auth ID.
Example
AC000000000000000000Query Parameters
Section titled “ Query Parameters ”Which numbers to list.
Page number, starting at 1.
Numbers per page.
Responses
Section titled “ Responses ”One page of inventory
object
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.
The inventory numbers on this page, newest first.
object
Auth ID of the account the number is assigned to; empty for unassigned inventory. On create and update it must be your Auth ID, a direct child’s, or empty.
Address or identity document needed before the number can be assigned; none when nothing is needed.
ID of an application to link. It must belong to you or to the account in acc_id.
Product label such as ContactCenter or FrontDesk.
Bulk-add only; ignored by the single-number operations.
Comma-separated capabilities, e.g. voice, sms, mms, fax.
Name of the carrier that provides the number.
Internal carrier reference.
Country calling code, without the plus.
ISO 3166-1 alpha-2 country of the number.
When the number was added (RFC 3339). Set by the service.
Comma-separated call directions: inbound, outbound, blended.
When the number became usable (RFC 3339), if recorded.
Last provisioning error recorded for the number.
When the number stops being usable (RFC 3339), if recorded.
Initial billing pulse for inbound calls, in seconds. Must not be 0.
Free-form JSON metadata. Not stored by the single-number operations.
object
Optional name of the person making the change, recorded in the audit log.
Monthly recurring charge to the account, in USD.
Non-recurring (setup) charge, in USD.
Auth ID of the vendor that owns the inventory. Set from the path; any value you send is ignored.
The phone number, usually E.164. It is the inventory key: a number can be in only one vendor’s inventory.
Bulk-add only; ignored by the single-number operations.
Bulk-add only; ignored by the single-number operations.
Bulk-add only; ignored by the single-number operations.
Rate centre or locality of the number.
Per-minute rate for inbound calls, in USD.
Free-form site label.
Where the number came from, for imported numbers.
Reference of the import the number came from.
Inventory status: active (available to assign), unavailable (assigned) or deleted. Send active when creating a number that should be available straight away.
Subsequent billing pulse for inbound calls, in seconds. Must not be 0.
Bulk-add only; ignored by the single-number operations.
Number type: local, mobile or tollfree (matched case-insensitively when searching).
Number class: GEO (geographic) or NGN (non-geographic).
When the number was last updated (RFC 3339).
URL of the previous page. Omitted on the first page.
Total number of matching records across all pages.
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, "phone_numbers": [ { "acc_id": "", "address_requirement": "none", "application_id": 0, "application_type": "ContactCenter", "bulk_number_id": "", "capability": "voice,sms", "carrier": "Example Telecom", "carrier_id": "", "country_code": "1", "country_iso": "US", "created_time": "2026-11-20T10:15:00Z", "direction": "inbound,outbound", "effective_start_date": "2026-11-20T00:00:00Z", "error": "", "expiry_date": "2027-11-20T00:00:00Z", "initial_pulse": 60, "modified_by": "jane@example.com", "mrc": 1.5, "nrc": 1, "parent_act_id": "AC000000000000000000", "phone_number": "+15555550100", "prefixed": "", "quantity": "", "range": "", "rate_center": "NEW YORK", "rps": 0.01, "site": "London office", "source": "", "source_id": "", "status": "active", "sub_pulse": 60, "tenant_id": "", "type": "local", "types": "GEO", "updated_time": "2026-11-21T09:00:00Z" } ], "prev_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/PhoneNumbers?page=1", "total_results": 97}The gateway could not resolve your company (company id is empty)
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}Missing or invalid credentials (returned by the API gateway)
Example generated
exampleRecords not found
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}The account is not a vendor, or could not be looked up
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}