get
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getRentNumberGET /stubs/handler_api.php?action=getRentNumber
Rent virtual number for receiving SMS
This request allows you to order a phone number for rent.
You might want to use this service when you need to receive SMS from multiple different sources (websites, applications, other mobile numbers) or when need to receive SMS from a single one on the same number, but over a longer time (for example over 7 days).
Security
Parameters
query3
| Name | Type | Description |
|---|---|---|
action* | string | Method name, in this case Enum: getRentNumberDefault:getRentNumber |
country* | integer | Country ID (according to getRentServicesAndCountries response) Default: 0Example:1 |
time | integer | Desired rental period in hours, which will be converted into days with a rounding-up upon order (e.g. 2h - 1 day, 25h - 2 days) Default: 24 |
Responses
200Successful getRentNumber response from the server: either issues
a number for rent with specified parameters or throws an exception.
Successful getRentNumber response from the server: either issues
a number for rent with specified parameters or throws an exception.
Content-Type
application/jsonSchema
Responseobject
Responseobject
statusstring
phoneobject
phoneobject
idinteger
endDatestring
numberstring
Examples
Successfully issued number response example
{
"status": "success",
"phone": {
"id": 22867858,
"endDate": "2022-07-17T19:54:55+03:00",
"number": "9912530000"
}
}Code Samples
Generating examples...