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 endpointsBase 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.
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| api_key | string | query | yes | Your 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.
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| api_key | string | query | yes | Your 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.
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| api_key | string | query | yes | Your API key |
| service | string | query | yes | Service 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.
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| api_key | string | query | yes | Your API key |
| id | string | query | yes | Order 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.
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| api_key | string | query | yes | Your API key |
| id | string | body | yes | Order ID |
| action | string | body | yes | Action 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.
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
| 500 | Server Error |
Best practices
- 1Store your API key securely — never expose it in client-side code
- 2Check order status periodically rather than continuously polling
- 3Handle rate limits gracefully with exponential backoff
- 4Always check the HTTP status code along with the response body
- 5Join our Discord community for support and updates Open Discord →