Add a number to your inventory
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Vendors/PhoneNumbers';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"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,"metadata":{},"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Vendors/PhoneNumbers \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "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, "metadata": {}, "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" }'Vendor accounts only. Adds a number to your inventory with its pricing (MRC, NRC, per-minute rate and billing pulses), capabilities and address requirement. Send status active for the number to be available to assign straight away; set acc_id to assign it to your account or a direct child at once. phone_number, country_code, country_iso, type, initial_pulse and sub_pulse are required, and the pulses must not be 0. If the number is already in your inventory, its pricing, country, capability, pulses, address requirement, direction and product label are updated instead. A number held in another vendor’s inventory is refused with 409. application_id, when set, must be an application of yours or of the account in acc_id.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your (vendor) Auth ID.
Example
AC000000000000000000Request Bodyrequired
Section titled “ Request Bodyrequired ”The number to add
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.
Example
Address or identity document needed before the number can be assigned; none when nothing is needed.
Example
noneID of an application to link. It must belong to you or to the account in acc_id.
Example
0Product label such as ContactCenter or FrontDesk.
Example
ContactCenterBulk-add only; ignored by the single-number operations.
Example
Comma-separated capabilities, e.g. voice, sms, mms, fax.
Example
voice,smsName of the carrier that provides the number.
Example
Example TelecomInternal carrier reference.
Example
Country calling code, without the plus.
Example
1ISO 3166-1 alpha-2 country of the number.
Example
USWhen the number was added (RFC 3339). Set by the service.
Example
2026-11-20T10:15:00ZComma-separated call directions: inbound, outbound, blended.
Example
inbound,outboundWhen the number became usable (RFC 3339), if recorded.
Example
2026-11-20T00:00:00ZLast provisioning error recorded for the number.
Example
When the number stops being usable (RFC 3339), if recorded.
Example
2027-11-20T00:00:00ZInitial billing pulse for inbound calls, in seconds. Must not be 0.
Example
60Free-form JSON metadata. Not stored by the single-number operations.
object
Optional name of the person making the change, recorded in the audit log.
Example
jane@example.comMonthly recurring charge to the account, in USD.
Example
1.5Non-recurring (setup) charge, in USD.
Example
1Auth ID of the vendor that owns the inventory. Set from the path; any value you send is ignored.
Example
AC000000000000000000The phone number, usually E.164. It is the inventory key: a number can be in only one vendor’s inventory.
Example
+15555550100Bulk-add only; ignored by the single-number operations.
Example
Bulk-add only; ignored by the single-number operations.
Example
Bulk-add only; ignored by the single-number operations.
Example
Rate centre or locality of the number.
Example
NEW YORKPer-minute rate for inbound calls, in USD.
Example
0.01Free-form site label.
Example
London officeWhere the number came from, for imported numbers.
Example
Reference of the import the number came from.
Example
Inventory status: active (available to assign), unavailable (assigned) or deleted. Send active when creating a number that should be available straight away.
Example
activeSubsequent billing pulse for inbound calls, in seconds. Must not be 0.
Example
60Bulk-add only; ignored by the single-number operations.
Example
Number type: local, mobile or tollfree (matched case-insensitively when searching).
Example
localNumber class: GEO (geographic) or NGN (non-geographic).
Example
GEOWhen the number was last updated (RFC 3339).
Example
2026-11-21T09:00:00ZResponses
Section titled “ Responses ”Added: message ‘Number successfully added into inventory’
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}The number could not be saved, or 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
exampleAcc_id is not your account or a direct child, or application_id is not yours or acc_id’s
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}Phone number already exists in another inventory
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}Body not valid JSON, a required field is missing or 0, or the account is not a vendor
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}An account or the existing inventory could not be looked up
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}