Send a one-time code. Check it when your customer types it back. Two simple API calls — expiry, retry limits, and rate limiting already handled for you.
See the Quick StartYou could — but you'd also need to generate a real, random code, store it safely, expire it after a few minutes, limit how many times someone can guess wrong, and stop the same number being spammed with codes. Yoola Verify already does all of that, so you don't have to build or maintain it yourself.
Call /verify-send with your customer's phone number. We generate a real code and deliver it — over SMS or WhatsApp.
Your own app or website collects the code from the end user, exactly like any other verification screen.
Call /verify-check with what they typed. We tell you, plainly, whether it matched.
Two requests. That's the whole integration.
1. Send a code
curl --location 'https://yoolasms.com/api/v1/verify-send' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY_HERE",
"phone": "256704487563",
"brand_name": "YourApp"
}'
Response
{
"status": "success",
"request_id": "vrf_8f2a1c...",
"phone": "256704487563",
"channel": "sms",
"expires_in": 600
}
2. Check the code they typed back
curl --location 'https://yoolasms.com/api/v1/verify-check' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "YOUR_API_KEY_HERE",
"request_id": "vrf_8f2a1c...",
"code": "482913"
}'
Response
{
"status": "success",
"verified": true,
"request_id": "vrf_8f2a1c...",
"phone": "256704487563"
}
Always confirm the returned phone is the number you meant to verify before you trust the result. A code works once — after it verifies, that request_id can't be used again.
Every code expires after 10 minutes — no stale codes left valid indefinitely.
Five wrong guesses and a code locks out, protecting against brute-force attempts.
Built-in limits per phone number and per account stop abuse before it starts.
Send the code over whichever channel fits your customer best.
Pass your own approved sender ID, and a brand_name for the wording — codes arrive from your name, not ours.
Uses your existing balance. An SMS code costs one SMS at your normal rate — no Verify surcharge.
Yoola Verify has no separate pricing. An SMS code costs exactly one SMS at your normal rate; a WhatsApp code costs the standard WhatsApp authentication rate. Both come out of the same balance you already use — there is no Verify fee on top.