GEThttps://onlinesim.io/api/getNum.php
Buy a virtual number for a selected service
Requests a phone number for a particular service, allowing to receive SMS messages from it.
Allows you to order a number of a specified country to receive SMS from the website/app that you want.
This request in fact plays the same role as the "Buy number" button located on the user dashboard.
Security
sms-scope- grants access to manage numbers for the SMS receiving service from Onlinesim
Parameters
query6
| Name | Type | Description |
|---|---|---|
service* | string | Service names according to the service list |
country* | string | Country code (according to countries list) |
reject | string[] | |
dev_id | integer | Account ID for software developers (Onlinesim profile's ID) |
number | boolean | Flag for displaying detailed information about the operation in the server response. When the value |
lang | string | Response language:
Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English Enum: frderuenzhDefault:ru |
Responses
200Successful response for getNum request: the server issues a
dedicated virtual number for specified service or throws an
exception
Successful response for getNum request: the server issues a
dedicated virtual number for specified service or throws an
exception
schemaoneOf
[0]allOf
[1]object
[2]object
Examples
Successful number issuance
{
"response": 1,
"tzid": 10000
}