https://api.grizzlysms.com/stubs/handler_api.php?api_key=$api_key&action=getRentStatus&id=$id
$api_key – your API-key (Settings);
$id – id rent.
Service response will be in json format:
{
"status": "status",
"quantity": "number of codes",
"values": {
"0": {
"phoneFrom": "phone number",
"service": "service code",
"text": "sms code",
"date": "date of SMS receipt"
}
}
}
The example of successful answer:
{
"status": "success",
"quantity": "2 ",
"values": {
"0 ": {
"phoneFrom": "66846426435",
"service": "tg",
"test": "123456",
"date": "2023-10-26 11:03:39"
},
"1": {
"phoneFrom ": "66846426435",
"service": "tg",
"test": "224444",
"date": "2023-10-26 11:02:31"
}
}
}
Example of a successful response with an empty list of codes:
{
"status": "success",
"values":{}
}
Example of an answer with an error:
{
"status": "error",
"error": "NO_ID_RENT"
}
Possible errors:
BAD_KEY – check your API-key;
NO_ID_RENT – check id rent;
INVALID_PHONE – id rent nonexistent;
SERVER_ERROR – server error, repeat request later;
SERVICE_UNAVAILABLE_REGION — access from your region is restricted, please use another IP.