List Inventory Numbers
Browse Vobiz phone numbers available for purchase - search unassigned DIDs, virtual numbers, and toll-free numbers by country, prefix, or voice capability.
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'import requests
url = "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers"
headers = {
"X-Auth-ID": "<api-key>",
"X-Auth-Token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"e164": "+14155551234",
"country": "US",
"region": "CA",
"status": "active",
"setup_fee": 0,
"monthly_fee": 1,
"currency": "INR",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-15T10:00:00Z"
}
],
"page": 1,
"per_page": 25,
"total": 500
}auth_id is null) that are available for purchase. Use the Purchase from Inventory endpoint to assign them to your account.
status='active' and auth_id=NULL are returned. These numbers are ready to be purchased and assigned to your account.HTTP Request
GET /api/v1/Account/{auth_id}/inventory/numbers
X-Auth-ID- Your Auth ID (e.g.,{auth_id})X-Auth-Token- Your account Auth TokenContent-Type: application/json
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
country | string | No | Filter by country code (e.g., US, IN). |
search | string | No | Substring match against the E.164 number. For example, search=80 matches +918065.... |
exclude | string | No | One or more E.164 prefixes to remove from results. Include the country code (e.g. 9180 for India +91 80-series, 1415 for US +1 415). A leading + is optional (+9180 also works). Accepts repeated params (?exclude=9180&exclude=9192) or a comma-separated list (?exclude=9180,9192); both forms can be combined. |
page | integer | No | Page number for pagination. Default: 1. |
per_page | integer | No | Items per page. Default: 25. Maximum: 100. |
exclude behaves:- The prefix is matched against the number’s full E.164 form (
+<countrycode><rest>), soexclude=9180removes every number starting with+9180. It works for any country - it is not limited to Indian numbers. - Include the country code.
exclude=9180(notexclude=80). A bare series like80matches+80*, which does not exist for Indian inventory, so it has no effect. - It is ANDed with every other filter, so it takes priority over
search. A number that matchessearchbut also matches an excluded prefix is still excluded (?search=80&exclude=9180returns no+9180*numbers). - Duplicate values are de-duplicated silently.
- The
totalin the response reflects the filtered result set.
/numbers/search endpoint. To find numbers available to rent, use this endpoint with the country and search filters.Response
Returns a paginated list of phone numbers available in inventory.{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"e164": "+14155551234",
"country": "US",
"region": "CA",
"status": "active",
"setup_fee": 0.0,
"monthly_fee": 1.0,
"currency": "INR",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-15T10:00:00Z"
}
],
"page": 1,
"per_page": 25,
"total": 500
}
Examples
cURL - List All Inventory Numbers
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?page=1&per_page=25" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
cURL - Filter by Country
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?country=US&page=1&per_page=25" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
cURL - Search by prefix within a country
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?country=IN&search=80&page=1&per_page=25" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
cURL - Exclude one or more series
Remove numbers whose prefix you don’t want. Include the country code (9180, not 80); a leading + is optional.
# Exclude the India 80-series - no +9180* numbers are returned
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?exclude=9180&per_page=50" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
# Exclude multiple prefixes (comma-separated; ?exclude=9180&exclude=9192 is equivalent)
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?exclude=9180,9192&per_page=50" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
# Works for any country - exclude a US prefix (+1 415)
curl -X GET "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers?exclude=1415&per_page=50" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
capabilities object (voice, sms, mms, fax). Vobiz numbers are voice-first, so sms, mms, and fax are commonly false. Inspect setup_fee and monthly_fee (in the listed currency) before purchasing - these are the amounts that will be debited.- Browse available numbers before purchasing
- Check inventory for specific countries or regions
- View pricing information for available numbers
- Find numbers with specific capabilities (voice, SMS, MMS)
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
"MA_XXXXXX"
Query Parameters
Filter by country code (e.g., "US", "IN").
"IN"
Substring match against the E.164 number (e.g., "80" matches "+918065...").
One or more E.164 prefixes to remove from results. Include the country code (e.g. "9180" for India +91 80-series, "1415" for US +1 415); a leading "+" is optional. Matched against the full E.164 form, so it works for any country. Accepts a comma-separated list ("9180,9192") or repeated params ("exclude=9180&exclude=9192"), and the two forms can be combined. It is ANDed with all other filters, so it takes priority over search; duplicates are de-duplicated silently and total reflects the filtered result set.
"9180,9192"
x <= 100Was this page helpful?
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'import requests
url = "https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers"
headers = {
"X-Auth-ID": "<api-key>",
"X-Auth-Token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/inventory/numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"e164": "+14155551234",
"country": "US",
"region": "CA",
"status": "active",
"setup_fee": 0,
"monthly_fee": 1,
"currency": "INR",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-15T10:00:00Z"
}
],
"page": 1,
"per_page": 25,
"total": 500
}