API SUPPORT
API v1.0
API is a protocol of interaction between your software and our activation server. The API is needed in order to automate the process of receiving SMS messages on your side To work with the API, you must use your API key, you can get it by going to the profile page. Our software is fully compatible with competitor sites
API Protocol Description
All requests should go to https://smsotp.net/api/v1/ POST or GET request. All requests must have an API key in the form of the token parameter
1. Get Balance
https://smsotp.net/api/v1/get-balance
Parameters
Result
{
"success": true,
"data": {
"balance": "99.94"
}
}
{
"success": false,
"message": "Error message"
}
2. Get Services
https://smsotp.net/api/v1/services
Parameters
Result
{
"success": true,
"data": [
{
"id": "go",
"name": "Google,youtube,Gmail"
},
{
"id": "tg",
"name": "Telegram"
},
{
"id": "lf",
"name": "TikTok/Douyin"
},
...
]
}
{
"success": false,
"message": "Error message"
}
3. Get Countries
https://smsotp.net/api/v1/countries
Parameters
Result
{
"success": true,
"data": [
{
"id": "0",
"name": "Russia"
},
{
"id": "1",
"name": "Ukraine"
},
{
"id": "2",
"name": "Kazakhstan"
},
...
]
}
{
"success": false,
"message": "Error message"
}
4. Get Prices
https://smsotp.net/api/v1/get-prices
Parameters
service_id
country_id
Result
{
"success": true,
"service_id": "tg",
"country_id": "10",
"data": {
"cost": "99"
},
"message": "Price for every services will be refresh every 30 minutes."
}
{
"success": false,
"message": "Error message"
}
5. Get Phone Number
https://smsotp.net/api/v1/otp/rent
Parameters
service_id
country_id
server_id (1 : All Countries, 2: Only USA)
Result
{
"success": true,
"data": [
'phoneNumber' => 14535366633,
'country' => 11,
'service_id' => 'go',
'service_name' => 'Google',
'smsPhoneId' => 12345678,
'operator' => 'TelecomLTD'
}
{
"success": false,
"message": "Error message"
}
6. Get OTP/ SMS Message
https://smsotp.net/api/v1/otp/info
Parameters
sms_phone_id
Result
{
"success": true,
"data": [
"serviceId" => 12345,
"serviceName" => 'Apple',
"countryId" => 1,
"smsCode" => 123145,
"smsText" => 'Message 123145'
]
}
{
"success": false,
"message": "Error message"
}