API reference

Buy a number, poll for the code, cancel for a refund. Plain JSON over HTTPS with a single API key.

Base URLhttps://api.secureiosms.com

Reference

5 endpoints

Base URL https://api.secureiosms.com. Pass your API key as the api_key query parameter on every request. Responses are JSON.

GET /balance

Get Account Balance

Retrieve your current account credit balance.

ParameterTypeInRequiredDescription
api_keystringqueryyesYour API key
Example request
curl "https://api.secureiosms.com/balance?api_key=<your_key>"
Example response
{
"balance": "42.50"
}

GET /services_regions

Get Available Services

Retrieve all available SMS services and their pricing by region.

ParameterTypeInRequiredDescription
api_keystringqueryyesYour API key
Example request
curl "https://api.secureiosms.com/services_regions?api_key=<your_key>"
Example response
{
"data": {
"US": {
"Google": 1.5,
"Discord": 0.5,
"Amazon": 1
}
}
}

GET /getnumber

Purchase Phone Number

Purchase a phone number for SMS verification. Credits are deducted immediately.

ParameterTypeInRequiredDescription
api_keystringqueryyesYour API key
servicestringqueryyesService name (e.g. google, discord)
Example request
curl "https://api.secureiosms.com/getnumber?api_key=<your_key>&service=google"
Example response
{
"number": 12025551234,
"order_id": "ABC1234",
"country": "US",
"service": "google"
}

GET /checkstatus

Check Order Status

Check the status of an order and retrieve the SMS code if received.

ParameterTypeInRequiredDescription
api_keystringqueryyesYour API key
idstringqueryyesOrder ID returned from /getnumber
Example request
curl "https://api.secureiosms.com/checkstatus?api_key=<your_key>&id=<value>"
Example response
{
"status": "activated",
"activation_code": "847291"
}

POST /changestatus

Cancel Order

Cancel an active order. Credits are refunded automatically. The key may additionally be sent as an x-api-key header or inside the JSON body.

ParameterTypeInRequiredDescription
api_keystringqueryyesYour API key
idstringbodyyesOrder ID
actionstringbodyyesAction to perform — use "cancel"
Example request
curl -X POST "https://api.secureiosms.com/changestatus?api_key=<your_key>" \
-H "Content-Type: application/json" \
-d '{
"id": "<id>",
"action": "cancel"
}'
Example response
{
"success": true,
"message": "Order cancelled and refunded"
}

Status codes

Every response carries a standard status code alongside its JSON body.

200OK
400Bad Request
401Unauthorized
404Not Found
500Server Error

Best practices

  1. 1Store your API key securely — never expose it in client-side code
  2. 2Check order status periodically rather than continuously polling
  3. 3Handle rate limits gracefully with exponential backoff
  4. 4Always check the HTTP status code along with the response body
  5. 5Join our Discord community for support and updates Open Discord →