Virtual Number with to make yourself proud of yourself
Download the Postman collection for the current API documentation.
For select the country you need - indicate according country code at the "country" parameter.
https://mail.smsonline.io/api/v1/virtual-number
/get-countries
?apiKey
=
yourApiKey
For select the country you need - indicate according country code at the "service" parameter.
https://mail.smsonline.io/api/v1/virtual-number
/get-services
?apiKey
=
yourApiKey
For select the country you need - indicate according country code at the "country" parameter.
https://mail.smsonline.io/api/v1/virtual-number
/get-products
?apiKey
=
yourApiKey
&countryId
=
1
&serviceId
=
2
With the Virtual Number Purchase API, you can automatically request and receive virtual numbers for your services.
To purchase a number, you need to send the following parameters:
If the number is available and you have sufficient balance, the system will provide you with a valid virtual number.
To test the API without actually purchasing a number or deducting your balance, simply add the following parameter at the end of your request URL
This will return a test response instead of a real purchase.
https://mail.smsonline.io/api/v1/virtual-number
/get-products
?apikey
=
yourApiKey
&countryId
=
1
&serviceId
=
2
&operatorId
=
2
With the Virtual Number Purchase API, you can automatically request and receive virtual numbers for your services.
To purchase a number, you need to send the following parameters:
If the number is available and you have sufficient balance, the system will provide you with a valid virtual number.
To test the API without actually purchasing a number or deducting your balance, simply add the following parameter at the end of your request URL
This will return a test response instead of a real purchase.
https://mail.smsonline.io/api/v1/virtual-number
/get-sms
?apikey
=
yourApiKey
&id
=
1
With the Virtual Number Purchase API, you can automatically request and receive virtual numbers for your services.
To purchase a number, you need to send the following parameters:
If the number is available and you have sufficient balance, the system will provide you with a valid virtual number.
To test the API without actually purchasing a number or deducting your balance, simply add the following parameter at the end of your request URL
This will return a test response instead of a real purchase.
https://mail.smsonline.io/api/v1/virtual-number
/get-sms
?apikey
=
yourApiKey
&id
=
1
For use Google Voice inventory and purchase APIs, send your apiKey with each request.
Base URLs:
Returns the current Google Voice inventory with price, type, number, and provider id.
https://mail.smsonline.io/api/v1/google-voice
/get-numbers
?apiKey
=
yourApiKey
Returns the details of one Google Voice number using its provider id.
https://mail.smsonline.io/api/v1/google-voice
/get-number
?apiKey
=
yourApiKey
&id
=
1
Buys a Google Voice number, creates the order record, and deducts the amount from the user balance.
https://mail.smsonline.io/api/v1/google-voice
/buy-number
?apiKey
=
yourApiKey
&id
=
1
Use this API to list rentable countries and create rent-number orders from your wallet balance.
Base URL:
Returns the supported rent-number duration types and their allowed time values.
https://mail.smsonline.io/api/v1/rent-number
/get-durations
?apiKey
=
yourApiKey
Returns rentable countries with pricing for the selected duration.
https://mail.smsonline.io/api/v1/rent-number
/get-countries
?apiKey
=
yourApiKey
&type
=
day
&time
=
1
Creates a pending rent-number order and charges the user wallet. The number is attached later when the order is completed.
https://mail.smsonline.io/api/v1/rent-number
/buy-number
?apiKey
=
yourApiKey
&countryId
=
1
&type
=
day
&time
=
1