The Numbers API is available only for Flex Pro users.
Prerequisites
Before you can search for and buy your first phone number, sign up for a Wavix account.Create a Wavix account
- Sign up for a Wavix account using your business email address.
- Confirm your email address and phone number during the sign-up process.
- Wait for your account to be approved by the Wavix team.
- After approval, choose either the Wavix Flex or Flex Pro account level.
Find your API key
Wavix uses API keys to authenticate requests. To find API keys associated with your account:- Sign in to your Wavix account.
- Go to Administration → API Keys.
- Copy the API key you want to use, or create a new one by clicking Create new.
Search for phone numbers
To receive calls from your customers, purchase a phone number from the Wavix global inventory.1
Get a list of countries
Get a list of countries with phone numbers available. You can search for geo, toll-free, or both types of phone numbers. You can also filter by SMS-enabled numbers.Request sample:Response sample:
2
Get a list of provinces or states
This step is required only for countries with provinces or states, such as the USA, Canada, and Australia.
country_id and, optionally, the region_id parameters from the responses above.Request sample:For USA the
area_code parameter in the response is in NPA-NXX format.3
Get a list of phone numbers
Get a list of phone numbers in the selected city. Use the IDs of the selected country and city from the responses above.Request sample:The response will contain phone numbers and their details, such as ID, activation fee, monthly fee, and the number of inbound channels.
Buy phone numbers
To purchase phone numbers, follow these steps.1
Add numbers to cart
Add the selected phone numbers to your cart.The request body must contain an array of phone numbers you want to purchase.The response will contain phone numbers successfully added to the cart and their details, such as activation fee, monthly fee, and the number of inbound channels for the number.
2
Check out numbers from cart
Check out numbers from the cart.After phone numbers are added to the cart, check them out to finalize the purchase.Request sample:
Activation fee and monthly fee will be automatically deducted from your balance. Make sure you have enough funds in your account or a primary card linked to your account with sufficient funds.
List purchased numbers
You can get a list of purchased numbers on your Wavix account by using the following method:active- The number is fully configured and can receive inbound calls.inactive- Additional documents are required to activate the number. For inactive numbers, the response will contain a description of the documents required to activate the number.
Update number destination
For active numbers, Wavix can route inbound calls to:- a SIP trunk
- a SIP URI
- a dedicated PSTN number