Quickstart Integration in 3 Steps
Automate physical USA Non-VoIP SMS verification in under 60 seconds with our zero-friction REST API.
https://usaverifypro.com/apiAll requests support Bearer Token header or query string
?api_key=YOUR_KEY.
# 1. Rent clean USA physical Non-VoIP number for WhatsApp
curl -X POST "https://usaverifypro.com/api/order" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"service": "wa"}'
# 2. Check for incoming SMS OTP code (poll every 4s)
curl -X GET "https://usaverifypro.com/api/check_sms?id=ORD_ID_HERE" \
-H "Authorization: Bearer YOUR_API_KEY"
1. Authentication & API Keys
USAVerify Pro supports both permanent Developer API Keys (starting with uv_live_) and session
Bearer tokens. All requests are authenticated seamlessly via any of the following 3 methods:
| Method | Format | Example |
|---|---|---|
| Bearer Token (Recommended) | Authorization: Bearer <KEY> |
Authorization: Bearer uv_live_9a8b7c6d5e4f... |
| Custom Header | X-API-Key: <KEY> |
X-API-Key: uv_live_9a8b7c6d5e4f... |
| Query Parameter | ?api_key=<KEY> |
https://usaverifypro.com/api/me?api_key=uv_live_... |
You can retrieve and rotate your permanent API key directly inside your Dashboard or by calling
POST /api/user/regenerate_key.
2. Account Profile & Real-time Balance
Check your live wallet balance and preferred currency (USD, NGN, CNY).
curl -X GET "https://usaverifypro.com/api/user/balance" \
-H "Authorization: Bearer YOUR_API_KEY"
3. Available USA Non-VoIP Services & Stock
Fetch real-time inventory counts and live pricing for all 180+ USA physical services.
curl -X GET "https://usaverifypro.com/api/services" \
-H "Authorization: Bearer YOUR_API_KEY"
4. Rent USA Physical Non-VoIP Number
Allocates a real cellular line from AT&T, Verizon, or T-Mobile dedicated to your requested service.
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| service | string | Required | Service code (e.g. wa, tg, openai, go,
cl). |
| max_price | float | Optional | Max USD price limit you agree to pay for this rental. |
curl -X POST "https://usaverifypro.com/api/order" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service": "wa"
}'
5. Receive SMS OTP Code (Automatic Multi-Code)
Poll this endpoint to retrieve incoming verification codes. If the service sends multiple SMS codes
(resends), all codes are returned in codes array.
{
"ok": true,
"status": "waiting",
"code": null
}
6. Cancel Order & 100% Instant Auto-Refund
If you need to release the phone number early, or if no SMS arrived within your timeout, call
/api/cancel. Funds are automatically refunded 100% back to your account wallet immediately.
curl -X POST "https://usaverifypro.com/api/cancel" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "ORD1730304820",
"status": "8"
}'
7. Complete / Mark Order as Finished
Once you have successfully received your OTP code, marking the activation as complete releases provider hold and locks in your order history.
curl -X POST "https://usaverifypro.com/api/mark_done" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"activation_id": "1948201"
}'
8. Worldwide Virtual Numbers (180+ Countries)
In addition to USA Physical SIMs, USAVerify Pro provides access to 180+ countries worldwide (UK, Canada, Germany, Brazil, Nigeria, Indonesia, Vietnam, etc.).
curl -X POST "https://usaverifypro.com/api/worldwide/order" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"country": "GB",
"service": "wa"
}'
9. Polling, Webhooks & Concurrency Guidelines
Follow these best practices to ensure your automated pipelines operate at peak throughput and reliability:
- Recommended Polling Interval: Poll
/api/check_smsevery 3 to 5 seconds. Polling faster than 2 seconds offers no speed benefit because cellular SMS delivery takes 5–25 seconds. - Timeout Threshold: Allow at least 90 to 180 seconds before cancelling an order to give the target service adequate time to route the SMS through carrier towers.
- Automatic Cleanup: If no code arrives within 20 minutes (1200 seconds), our background daemon cancels and automatically refunds the order balance to prevent frozen capital.
- High-Concurrency Rate Limits: The default rate limit is 120 requests/minute. Contact our VIP support team to whitelist higher concurrency (500+ req/min) for bulk farm operations.
10. Error Codes & Troubleshooting
| Error Code / Message | HTTP | Root Cause | Recommended Action |
|---|---|---|---|
NO_NUMBERS |
400 | No cellular SIMs currently free for this service. | Retry in 15–30 seconds or order a worldwide line. |
Insufficient balance |
400 | Wallet balance lower than service price. | Top up via Crypto (USDT, BTC), Paystack, or WeChat/Alipay. |
BAD_KEY / Unauthorized |
401 | API Key missing, rotated, or invalid. | Check header Authorization: Bearer YOUR_KEY. |
Order not found |
404 | Invalid order ID or owned by another account. | Verify order ID from /api/order response. |
Code already received |
400 | Attempting to cancel an order that already received an OTP. | Completed orders cannot be cancelled or refunded. |
11. Official Python SDK (Zero-Dependency)
Save as usaverify.py in your project. Compatible with Python 3.8+.
import time, requests
class USAVerify:
def __init__(self, api_key: str, base_url: str = "https://usaverifypro.com/api"):
self.api_key = api_key.strip()
self.base_url = base_url.rstrip("/")
self.session = requests.Session()
self.session.headers.update({
"Authorization": f"Bearer {self.api_key}",
"Content-Type": "application/json",
"User-Agent": "USAVerify-SDK/1.2.0"
})
def get_balance(self) -> float:
res = self.session.get(f"{self.base_url}/user/balance").json()
return float(res.get("balance", 0.0))
def rent_number(self, service: str = "wa") -> dict:
res = self.session.post(f"{self.base_url}/order", json={"service": service})
res.raise_for_status()
return res.json()
def check_sms(self, order_id: str) -> dict:
return self.session.get(f"{self.base_url}/check_sms", params={"id": order_id}).json()
def get_sms_code(self, order_id: str, timeout: int = 120, poll_interval: int = 4) -> str:
start = time.time()
while time.time() - start < timeout:
data = self.check_sms(order_id)
code = data.get("code") or data.get("sms_code")
if code and code not in ["waiting", "pending"]:
return str(code)
time.sleep(poll_interval)
raise TimeoutError(f"SMS code not received within {timeout}s")
def cancel(self, order_id: str) -> dict:
return self.session.post(f"{self.base_url}/cancel", json={"id": str(order_id), "status": "8"}).json()
# Usage Example:
if __name__ == "__main__":
client = USAVerify(api_key="YOUR_API_KEY")
print("Balance:", client.get_balance())
order = client.rent_number("wa")
print(f"Rented: {order['phone']} (ID: {order['order_id']})")
code = client.get_sms_code(order["order_id"])
print("Received OTP Code:", code)
12. Node.js SDK (ES Modules & CommonJS)
Save as usaverify.js in your Node project.
export class USAVerify {
constructor(apiKey, baseUrl = "https://usaverifypro.com/api") {
this.apiKey = apiKey;
this.baseUrl = baseUrl.replace(/\/$/, "");
this.headers = {
"Authorization": `Bearer ${this.apiKey}`,
"Content-Type": "application/json"
};
}
async getBalance() {
const res = await fetch(`${this.baseUrl}/user/balance`, { headers: this.headers });
const data = await res.json();
return data.balance;
}
async rentNumber(service = "wa") {
const res = await fetch(`${this.baseUrl}/order`, {
method: "POST",
headers: this.headers,
body: JSON.stringify({ service })
});
return await res.json();
}
async checkSms(orderId) {
const res = await fetch(`${this.baseUrl}/check_sms?id=${orderId}`, { headers: this.headers });
return await res.json();
}
async getSmsCode(orderId, timeout = 120000, interval = 4000) {
const start = Date.now();
while (Date.now() - start < timeout) {
const data = await this.checkSms(orderId);
if (data.status === "received" && data.code) return data.code;
await new Promise(r => setTimeout(r, interval));
}
throw new Error(`OTP timeout after ${timeout}ms`);
}
async cancel(orderId) {
const res = await fetch(`${this.baseUrl}/cancel`, {
method: "POST",
headers: this.headers,
body: JSON.stringify({ id: orderId, status: "8" })
});
return await res.json();
}
}
13. PHP Client (Zero-Dependency)
<?php
class USAVerify {
private $apiKey;
private $baseUrl;
public function __construct($apiKey, $baseUrl = "https://usaverifypro.com/api") {
$this->apiKey = trim($apiKey);
$this->baseUrl = rtrim($baseUrl, "/");
}
private function request($method, $path, $data = null) {
$url = $this->baseUrl . "/" . ltrim($path, "/");
$headers = [
"Authorization: Bearer " . $this->apiKey,
"Content-Type: application/json"
];
$opts = [
"http" => [
"method" => $method,
"header" => implode("\r\n", $headers) . "\r\n",
"timeout" => 20
]
];
if ($data) $opts["http"]["content"] = json_encode($data);
$res = file_get_contents($url, false, stream_context_create($opts));
return json_decode($res, true);
}
public function getBalance() {
$data = $this->request("GET", "user/balance");
return floatval($data["balance"] ?? 0.0);
}
public function rentNumber($service = "wa") {
return $this->request("POST", "order", ["service" => $service]);
}
public function checkSms($orderId) {
return $this->request("GET", "check_sms?id=" . urlencode($orderId));
}
public function cancel($orderId) {
return $this->request("POST", "cancel", ["id" => strval($orderId), "status" => "8"]);
}
}
?>