get getNum
https://onlinesim.io/api/getNum.php
Requests 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 number purchase button located on the main page.
IMPORTANT NOTES! &br; You can also specify additional parameters such as masks for exception in case if the service has specific requirements. &br; Some websites and applications might ban numbers with certain digit sequence (masks) from registration. &br; In this case, this parameter might come in handy.
Security
Parameters
service
Service name (can only accept values of services in response for getNumbersStats method)
query
- stringExample:
"facebook"
country
Country code (Е.164 standard, without "+" sign), see getNumbersStats
query
- integerExample:
46
>= 1
reject
query
- array<string>Example:
["911"]
Items:- stringExample:
"string"
dev_id
query
- integerExample:
100000
number
query
- booleanExample:
false
lang
Response language: fr
- French, de
- German, ru
- Russian, en
- English, zh
- Chinese
query
- stringExample:
"en"
Enum:fr
de
ru
en
zh
Responses
200
- Schema
- Examples
- objectExample:
{"response":1,"tzid":10000}
Properties:response
mixedRequired1, if the request has been completed successfully, or an error messageExample:1
One Of:- integerExample:
0
- stringExample:
"string"
tzid
integerRequiredOperation IDExample:10000
>= 1