API guide
Authenticate with your API key via the X-Api-Key header or ?api_key= query param. Find your key in Settings.
GET
https://smscode.net/api/get_balance
Returns balance + reseller fields.
POST
https://smscode.net/api/get_number
Rent a number. Params: app_id, country_id, duration (15m|3d|7d|14d|25d).
POST
https://smscode.net/api/get_sms
Poll for the code. Param: id (number id).
Example
curl -X POST https://smscode.net/api/get_number \ -H "X-Api-Key: YOUR_KEY" \ -d "app_id=1&country_id=1&duration=15m"