SMS DADDY ORG Developer API
Programmatically allocate real non-VoIP and global virtual phone numbers, receive real-time OTP verification codes, and automate balance & refund workflows directly from your applications, reseller panels, or scripts.
Authentication
All /v1/* endpoints (except /v1/health) require your personal 32-character API Key from your account dashboard. Three authentication methods are supported:
| Method | Format | Status |
|---|---|---|
| Header (Primary) | X-API-Key: YOUR_API_KEY | Recommended |
| Bearer Token | Authorization: Bearer YOUR_API_KEY | Supported |
| Query Parameter | ?api_key=YOUR_API_KEY | Quick Testing Only |
Smart Auto-Routing
SMS DADDY ORG operates a unified multi-node telecommunication cloud. When purchasing a number via POST /v1/order, choose from three routing modes:
Pass only service & country. Our router automatically selects the cheapest & fastest available node.
Pass route_code (e.g. R3-452) from /v1/services to lock an exact price and node.
Pass server (1–9) with service & country to target a preferred routing node.
Rate Limits & Response Headers
Each API key is limited to 60 requests per minute. For OTP polling, check every 5 seconds. Every response includes tracking headers:
| Header | Description |
|---|---|
| X-RateLimit-Limit | Maximum requests allowed per 60-second window (60). |
| X-RateLimit-Remaining | Number of requests remaining in the current window. |
| X-RateLimit-Reset | Unix timestamp when the current rate limit window resets. |
| X-Request-Id | Unique request trace ID for support debugging. |
/v1/health
Public
Verify API availability and server UTC timestamp. No API key required.
{
"success": true,
"request_id": "req_a1b2c3d4e5f60718",
"message": "All systems operational.",
"data": {
"status": "operational",
"version": "1.0.0",
"network": "SMSDaddy Cloud Routing",
"timestamp": "2026-11-27T06:15:00Z"
}
}
/v1/balance
Retrieve your current USD wallet balance and account status.
curl -X GET "https://api.smsdaddy.org/v1/balance" \ -H "X-API-Key: YOUR_API_KEY"
<?php
$ch = curl_init("https://api.smsdaddy.org/v1/balance");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: YOUR_API_KEY"]);
$response = json_decode(curl_exec($ch), true);
echo "Balance: $" . $response['data']['balance'];
import requests
res = requests.get(
"https://api.smsdaddy.org/v1/balance",
headers={"X-API-Key": "YOUR_API_KEY"}
).json()
print("Balance:", res["data"]["balance"])
const res = await fetch("https://api.smsdaddy.org/v1/balance", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const json = await res.json();
console.log("Balance:", json.data.balance);
{
"success": true,
"request_id": "req_91f2a0c812e456ab",
"message": "Account balance retrieved successfully.",
"data": {
"user_id": 14,
"name": "Alex Mercer",
"email": "[email protected]",
"balance": 48.75,
"currency": "USD",
"status": "Active"
}
}
/v1/servers
List all active SMS DADDY ORG routing nodes available for number allocation.
{
"success": true,
"message": "Active routing servers retrieved.",
"data": [
{ "server": 1, "server_code": "S1", "name": "SMSDaddy Node 1", "region": "Global & US Direct", "status": "operational" },
{ "server": 3, "server_code": "S3", "name": "SMSDaddy Node 3", "region": "Premium Multi-Pool", "status": "operational" },
{ "server": 7, "server_code": "S7", "name": "SMSDaddy Node 7", "region": "US Real SIM Network", "status": "operational" }
]
}
/v1/countries
Fetch all supported countries across our network, or filter by a specific routing node.
| Query Param | Type | Required | Description |
|---|---|---|---|
| server | integer | Optional | Filter countries available on a specific node (1–9). |
/v1/services
Search available apps, countries, real-time USD prices, and route_code identifiers.
| Query Param | Type | Required | Description |
|---|---|---|---|
| server | integer | Optional | Filter by specific routing node (1–9). Omit to search all nodes sorted by lowest price. |
| country | string | Optional | Country name or ISO-2 code (e.g. US, United States, GB). |
| search | string | Optional | Search by app name or service code (e.g. whatsapp, google). |
| limit | integer | Optional | Max results to return (default 100, max 500). |
| offset | integer | Optional | Pagination offset (default 0). |
{
"success": true,
"message": "Available services retrieved.",
"data": [
{
"route_code": "R3-128",
"server": 3,
"server_name": "SMSDaddy Node 3",
"country": "United States",
"country_code": "US",
"service_code": "whatsapp",
"service_name": "WhatsApp",
"price": 0.45,
"currency": "USD"
}
],
"meta": { "count": 1, "limit": 100, "offset": 0 }
}
/v1/order
Purchase a phone number instantly. Balance is atomically deducted only after a live number is allocated.
| Body Parameter | Type | Required | Description |
|---|---|---|---|
| route_code | string | Conditional | Exact route code from /v1/services (e.g. R3-128). If omitted, pass service. |
| service | string | Conditional | Service name or code (e.g. WhatsApp, Google). |
| country | string | Optional | Country name or ISO-2 code (e.g. US, USA, GB). |
| server | integer | Optional | Target specific node (1–9). Omit for Smart Auto-Routing. |
| area_code | string | Optional | 3-digit US area code filter (e.g. 212, 310) on supported US routes. |
| state | string | Optional | 2-letter US state filter (e.g. NY, CA) on supported US routes. |
| carrier | string | Optional | US mobile carrier filter (tmo/tmobile, att/at&t, vz/verizon). |
curl -X POST "https://api.smsdaddy.org/v1/order" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service": "WhatsApp",
"country": "US",
"area_code": "212"
}'
<?php
$ch = curl_init("https://api.smsdaddy.org/v1/order");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"X-API-Key: YOUR_API_KEY",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => json_encode([
"service" => "WhatsApp",
"country" => "US",
"area_code" => "212"
])
]);
$order = json_decode(curl_exec($ch), true);
print_r($order['data']);
import requests
res = requests.post(
"https://api.smsdaddy.org/v1/order",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"service": "WhatsApp", "country": "US", "area_code": "212"}
).json()
print(res["data"]["phone_number"], res["data"]["order_code"])
const res = await fetch("https://api.smsdaddy.org/v1/order", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({ service: "WhatsApp", country: "US", area_code: "212" })
});
const { data } = await res.json();
console.log(data.phone_number, data.order_code);
{
"success": true,
"request_id": "req_7b4e1190ff02c112",
"message": "Number allocated successfully.",
"data": {
"order_code": "ORD984721",
"server": 3,
"service_name": "WhatsApp (United States)",
"phone_number": "+12125550198",
"price": 0.45,
"new_balance": 48.30,
"currency": "USD",
"status": "Pending",
"expires_at": "2026-11-27 06:35:00"
}
}
/v1/order/{order_code}
Poll this endpoint every 5 seconds until status changes from Pending to Completed. If the session expires without receiving an SMS, your balance is refunded automatically and status becomes Refunded.
{
"success": true,
"message": "Order status retrieved.",
"data": {
"order_code": "ORD984721",
"server": 3,
"service_name": "WhatsApp (United States)",
"phone_number": "+12125550198",
"status": "Completed",
"otp_code": "482910",
"sms_text": "Your WhatsApp code: 482-910. Do not share this code.",
"price": 0.45,
"expires_at": "2026-11-27 06:35:00",
"created_at": "2026-11-27 06:15:00"
}
}
/v1/order/{order_code}/cancel
Cancel an active Pending order before an SMS arrives and instantly refund the full cost to your wallet.
{
"success": true,
"message": "Order cancelled and refunded to your wallet.",
"data": {
"order_code": "ORD984721",
"status": "Refunded",
"refunded": 0.45,
"new_balance": 48.75,
"currency": "USD"
}
}
/v1/orders
Retrieve paginated history of your orders. Optional query params: status (Pending, Completed, Cancelled, Refunded), limit (max 100), offset.
/v1/transactions
Retrieve your full financial wallet ledger (Credits, Debits, Refunds, Deposits). Supports limit & offset.
Automation Bot Protocol
Using automation software that expects the classic SMS-Activate plain-text handler protocol? Point your software directly to:
| Action | Query Example | Response |
|---|---|---|
| getBalance | ?api_key=KEY&action=getBalance | ACCESS_BALANCE:48.75 |
| getNumber | ?api_key=KEY&action=getNumber&service=whatsapp&country=US | ACCESS_NUMBER:ID:12125550198 |
| getStatus | ?api_key=KEY&action=getStatus&id=ORDER_ID | STATUS_WAIT_CODE / STATUS_OK:482910 |
| setStatus | ?api_key=KEY&action=setStatus&id=ORDER_ID&status=8 | ACCESS_CANCEL |
Error Codes Reference
| HTTP | Error Code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED / INVALID_API_KEY | API key missing or incorrect. |
| 402 | INSUFFICIENT_BALANCE | Wallet balance is lower than the service price. |
| 403 | ACCOUNT_RESTRICTED | Account is suspended or banned. |
| 404 | ROUTE_NOT_FOUND / ORDER_NOT_FOUND | Service route or order code does not exist. |
| 409 | CANNOT_CANCEL / CANCEL_REJECTED | Order already completed or within minimum carrier hold window. |
| 422 | VALIDATION_ERROR | Missing or invalid request body parameters. |
| 429 | RATE_LIMIT_EXCEEDED | Exceeded 60 requests per minute limit. Check Retry-After header. |
| 500 | INTERNAL_ERROR / DATABASE_ERROR | Temporary server error. Safe to retry. |
| 503 | OUT_OF_STOCK | No numbers currently available in stock for the requested route. |