get getNum
https://onlinesim.io/api/getNum.phpRequests a 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.
IMPORTANT NOTES!
You can also specify additional parameters such as masks for exception in case if the service has specific requirements.
Some websites and applications might block numbers with certain digit sequence (masks) from registration.
In this case, this parameter might come in handy.
Security
Parameters
serviceService name (can only accept values of services in this list)
query- stringExample:
"facebook"
countryInternational dialing code of the country (Е.164 standard, without "+" sign), see country list
query- integerExample:
46>= 1
rejectquery- array<string>Example:
["911"]Items:- stringExample:
"string"
dev_idquery- integerExample:
100000
numberquery- booleanExample:
false
langResponse language:
fr - French,
de - German,
ru - Russian,
en - English,
zh - Chinese. 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.
query- stringExample:
"en"Enum:frderuenzh
Responses
200
- Schema
- Examples
- objectExample:
{"response":1,"tzid":10000}Properties:responsemixedRequired1, if the request has been completed successfully, or an error messageExample:1One Of:- integerExample:
0 - stringExample:
"string"
tzidintegerRequiredOperation IDExample:10000>= 1