Reseller & Developer API
Buy one-time verification numbers, read the SMS code, and get webhooks from your own code through our REST API.
Real-Time
Polling and webhook endpoints
REST JSON
cURL, Node.js, and Python
Automatic
Auto-credited if no code arrives
Authentication & Base URL
All API requests must be sent over HTTPS and include your private API key in the Authorization header as a Bearer token. Create your key on the API & Webhooks page. Each key may send 60 requests and buy 10 numbers per minute.
Implementation Examples
# 1. List services and prices
curl "https://api.verifiqsms.com/v1/services?country=US" \
-H "Authorization: Bearer YOUR_API_KEY"
# 2. Buy a number (charged to your wallet)
curl -X POST "https://api.verifiqsms.com/v1/numbers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "US", "service": "whatsapp"}'
# 3. Check the order (status + code)
curl "https://api.verifiqsms.com/v1/numbers/ORDER_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
# 4. Cancel (after 2 minutes, if no code arrived) - refunded to your wallet
curl -X POST "https://api.verifiqsms.com/v1/numbers/ORDER_ID/cancel" \
-H "Authorization: Bearer YOUR_API_KEY"
# 5. Wallet balance
curl "https://api.verifiqsms.com/v1/balance" \
-H "Authorization: Bearer YOUR_API_KEY"Core Endpoints Specification
Services you can buy in a country and their price in USD (same live catalog and prices as the website), plus the list of country codes.
Charges your wallet the website price and returns order_id and phone_number. The order also shows in your dashboard. Add ?env=sandbox to test for free.
Returns order_status, sms_code and raw_sms_text once the SMS arrives. If no code arrives before the timer ends, the order is refunded automatically (refunded: true).
Cancels the number and refunds your wallet, using the same rules as the website: allowed from 2 minutes after buying, and only if no code arrived.
Returns your wallet balance in USD.
Sandbox & Webhooks
Sandbox requests are free and need no key. For live orders bought with your key, we POST the code to your saved https webhook URL as soon as it arrives, signed with your webhook secret in the X-Verifiq-Signature header (t=timestamp,v1=HMAC-SHA256(secret, "t.body")). Failed deliveries are retried up to 3 times.
# Sandbox: free, no API key needed, nothing is charged
curl -X POST "https://api.verifiqsms.com/v1/numbers?env=sandbox" \
-H "Content-Type: application/json" \
-d '{"country": "US", "service": "whatsapp"}'
curl "https://api.verifiqsms.com/v1/numbers?env=sandbox"POST https://your-server.com/webhooks/sms
Content-Type: application/json
X-Verifiq-Event: sms.received
X-Verifiq-Signature: t=1764230400,v1=5f2b...e9
{
"order_id": "3f1c2a9e-7b1d-4c55-9d0a-1e2f3a4b5c6d",
"phone_number": "+15551234567",
"sms_code": "492815",
"raw_sms_text": "Your WhatsApp code is 492-815"
}// Node.js (Express): verify the signature before trusting the webhook
const crypto = require('crypto');
app.post('/webhooks/sms', express.raw({ type: 'application/json' }), (req, res) => {
const header = req.get('X-Verifiq-Signature') || '';
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const expected = crypto
.createHmac('sha256', process.env.VERIFIQ_WEBHOOK_SECRET)
.update(`${parts.t}.${req.body}`)
.digest('hex');
const ok = parts.v1 && parts.v1.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
if (!ok || !fresh) return res.status(401).end();
const { order_id, sms_code } = JSON.parse(req.body);
console.log('Code for', order_id, 'is', sms_code);
res.status(200).json({ received: true });
});Need custom volume pricing or dedicated throughput?
High-volume resellers receive dedicated throughput, custom webhook endpoints, and up to 25% off standard unit prices.