API documentation
Resell numbers from your own app or website. All prices are in NGN (price_usd is included for convenience). Orders are paid from your wallet balance.
Base URLhttps://erify.erify.ng/api/v1
AuthAuthorization: Bearer YOUR_API_KEY
FormatJSON, form-encoded POST
Rate limit60 requests / minute
Get your key on the Profile page after you log in.
Quick start
1. Check balancecurl https://erify.erify.ng/api/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY"
2. Buy a numbercurl -X POST https://erify.erify.ng/api/v1/order \
-H "Authorization: Bearer YOUR_API_KEY" \
-d service=wa -d country=19
3. Poll for the code every 5 secondscurl https://erify.erify.ng/api/v1/order/1042 \
-H "Authorization: Bearer YOUR_API_KEY"
Endpoints
| Method | Path | What it does |
| GET | /balance | Wallet balance |
| GET | /services | Service codes and names |
| GET | /countries | Country ids and names |
| GET | /price?service=wa&country=19 | Price and stock |
| POST | /order | Buy a number (service, country) |
| GET | /order/{id} | Order status and code |
| POST | /order/{id}/cancel | Cancel and refund (waiting orders only) |
Responses
POST /order{ "status": "success",
"order_id": 1042,
"number": "+2349012345678",
"price": 1850,
"currency": "NGN",
"expires_at": "2026-11-08 21:20:00" }
GET /order/{id}{ "status": "success",
"order_id": 1042,
"order_status": "received",
"number": "+2349012345678",
"code": "482913",
"price": 1850,
"expires_at": "2026-11-08 21:20:00" }
order_status values: waiting, received, refunded. A waiting order is refunded automatically when it expires.
Code examples
PHP$ch = curl_init("https://erify.erify.ng/api/v1/order");
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER=>1, CURLOPT_POST=>1,
CURLOPT_HTTPHEADER=>["Authorization: Bearer YOUR_API_KEY"],
CURLOPT_POSTFIELDS=>http_build_query(["service"=>"wa","country"=>"19"])]);
$order = json_decode(curl_exec($ch), true);
echo $order["number"];
JavaScriptconst r = await fetch("https://erify.erify.ng/api/v1/order", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({ service: "wa", country: "19" })
});
const order = await r.json();
Pythonimport requests
r = requests.post("https://erify.erify.ng/api/v1/order",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={"service": "wa", "country": "19"})
print(r.json()["number"])
Errors
| HTTP | error | Meaning |
|---|
| 401 | invalid_api_key | Key missing or wrong |
| 400 | order_failed | See message: low balance, no stock, not available |
| 404 | not_found / not_available | Order or price not found |
| 400 | cannot_cancel | Order is no longer waiting |
| 429 | rate_limited | Slow down |
Every error looks like {"status":"error","error":"code","message":"text"}.