Search rentable phone numbers in inventory
Changed onSearches the telephony provider's inventory for available numbers matching the requested country (and optional area code). Returns up to 5 candidates per call.
Use the returned phoneNumber value in POST /product/rent-number to actually rent it.
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/product/get-available-numbers
- AuthHTTP bearer
Query parameters
ISO 3166-1 alpha-2 country code (e.g. US, IN, GB).
Telephony provider to search.
Optional area-code / region filter — provider-dependent (US area codes for plivo/twilio, etc.).
Response
Successful response
Example response
{
"status": true,
"data": [
{
"phoneNumber": "13183747513",
"countryCode": "US",
"provider": "plivo",
"areaCode": "Louisiana"
}
]
}Changes
- warning
added the new
customenum value to the//response property for the response status - warning
added the new
whatsappenum value to the//response property for the response status - info
added the new enum value
customto thequeryrequest parameterprovider - info
added the new enum value
whatsappto thequeryrequest parameterprovider
- warning
- info
endpoint added
- info