Search available numbers
Searches the inventory for numbers you can buy in one country, with their setup and monthly prices in your wallet currency. Each search returns up to 10 numbers.
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/numbers/available \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.numbers.search_available_numbers(
country="US",
capabilities="SMS,MMS",
area_code="415",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/numbers/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"numbers": [
{
"e164": "+14155550100",
"numberKey": "",
"countryCode": "US",
"type": "VIRTUAL_LONG_NUMBER",
"capabilities": [
"MMS",
"SMS",
"VOICE"
],
"network": "",
"setupPrice": 1,
"monthlyPrice": 1,
"currency": "USD",
"providerRequiresDocuments": false
}
],
"page": 0,
"limit": 10,
"hasMore": false
}Authorizations
Your Vobiz account Auth ID (MA_XXXXXXXX).
Your Vobiz account Auth Token.
Query Parameters
Country to search, as an ISO 3166-1 alpha-2 code such as US, CA or GB. Case-insensitive. A value that is not two letters returns 400 with country must be an ISO 3166-1 alpha-2 code.
^[A-Za-z]{2}$Comma-separated capabilities the number must have: SMS, MMS, or SMS,MMS. Case-insensitive, defaults to SMS. Any other value returns 400 with capabilities must be SMS and/or MMS.
Three-digit area code to search in, for example 415. Accepted only when country is US or CA; other countries return 400 with areaCode is only supported for US and CA.
^[0-9]{3}$Maximum number of results, from 1 to 100. Defaults to 10, and each search returns at most 10 numbers whatever you pass. A value outside the range returns 400 with limit must be between 1 and 100.
1 <= x <= 10Response
Numbers you can buy.
One page of inventory search results.
Numbers that match your filters, at most 10 per search. Empty array when nothing matches, and for country=IN.
Show child attributes
Show child attributes
The zero-based page index you requested, echoed back.
0
Page size applied to this search, at most 10.
10
Reserved for pagination; false on every response. Run a new search with different filters to see other numbers.
false
Guidance returned only for country=IN, explaining that Indian traffic is sent from DLT-registered sender IDs rather than purchased numbers. Absent for every other country.
"India uses DLT sender IDs, not long codes"
Was this page helpful?
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/numbers/available \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.numbers.search_available_numbers(
country="US",
capabilities="SMS,MMS",
area_code="415",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/numbers/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"numbers": [
{
"e164": "+14155550100",
"numberKey": "",
"countryCode": "US",
"type": "VIRTUAL_LONG_NUMBER",
"capabilities": [
"MMS",
"SMS",
"VOICE"
],
"network": "",
"setupPrice": 1,
"monthlyPrice": 1,
"currency": "USD",
"providerRequiresDocuments": false
}
],
"page": 0,
"limit": 10,
"hasMore": false
}