API

Virtual Number with to make yourself proud of yourself

  • Virtual Number v1
  • Google Voice
  • Rent Numbers

SmsOnline API v1

For Use our services you can use OUR Api

Base URLs:

https://smsonline.io/api/v1

Get our Supported Countries

GET /virtual-number/get-countries

For select the country you need - indicate according country code at the "country" parameter.

Code samples

                                        
                                            https://smsonline.io/api/v1/virtual-number
                                            /get-countries
                                            ?apikey
                                            =
                                            yourApiKey
                                        
                                

Get our Supported Services

GET /virtual-number/get-services

For select the country you need - indicate according country code at the "service" parameter.

Code samples

                                        
                                            https://smsonline.io/api/v1/virtual-number
                                            /get-services
                                            ?apikey
                                            =
                                            yourApiKey
                                        
                                

Get Products

GET /virtual-number/get-products

For select the country you need - indicate according country code at the "country" parameter.

Code samples

                                        
                                            https://smsonline.io/api/v1/virtual-number
                                            /get-products
                                            ?apikey
                                            =
                                            yourApiKey
                                            &countryId
                                            =
                                            1
                                            &serviceId
                                            =
                                            2
                                        
                                

Buy Number

GET /virtual-number/buy-service

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:

  • countryId : Country ID
  • serviceId : Service ID (the application or platform you need the number for)
  • operatorId : Operator ID

If the number is available and you have sufficient balance, the system will provide you with a valid virtual number.

Test Mode:

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.

Code samples

                                        
                                            https://smsonline.io/api/v1/virtual-number
                                            /get-products
                                            ?apikey
                                            =
                                            yourApiKey
                                            &countryId
                                            =
                                            1
                                            &serviceId
                                            =
                                            2
                                             &operatorId
                                            =
                                            2