Verifying a UAE phone number with a one-time password looks simple, but small details decide whether the code arrives: how the number is formatted, which channel you use first and what happens when WhatsApp is not available. This guide walks through each step for apps with users on +971 numbers.
Step 1: Store the number in international format
Users type UAE numbers in many ways: with +971, with 00971, or in local format with a leading 0. Normalise every number before you send an OTP:
- Remove spaces, dashes and brackets
- Replace a leading
00or+with nothing, so the number starts with the country code - For local numbers that start with
0, drop the 0 and add971 - Keep one stored format, for example
9715XXXXXXXX, and use it for every request
Many UAE apps also have users with numbers from other countries, so do not assume every number is +971. Keep the country code the user selected.
Step 2: Send the code on WhatsApp first
WhatsApp OTPs are delivered as authentication messages. With EazyOTP, your server calls the whatsappeazyotp endpoint with the number, and the response returns the code and a track_id:
GET https://app.pingtochat.com/api/v1.0/{YOUR_API_KEY}/whatsappeazyotp?number=9715XXXXXXXXAlways call the API from your backend. Your API key is part of the URL and must never be exposed in browser or app code.
Step 3: Decide on the language
Meta supports Arabic (ar, ar_AE) and English for WhatsApp templates. The documented EazyOTP template is in English. If your UAE audience expects Arabic, ask our team what is available for your account before launch.
Step 4: Plan SMS fallback
Some users enter a number that is not on WhatsApp, or are offline when the code is sent. EazyOTP does not switch channels automatically, so build the fallback in your backend:
- If the WhatsApp request returns an error such as “Invalid WhatsApp number”, send the code by SMS straight away
- If no Delivered status reaches your webhook within your time limit, offer a “Send by SMS” option
- Use the Global SMS endpoint,
globalsmseazyotp, with the same number
The UAE has registration rules for SMS sender IDs, so confirm with our team which sender name UAE users will see and what SMS costs before you rely on fallback. More detail is in the multi-channel fallback guide.
Step 5: Verify the code securely
- Store a hash of the code, never the plain code
- Expire it after a few minutes and allow one successful use
- Limit attempts and resends for each number
- Log the
track_idso support can trace a missing code
Our guide to verifying OTPs securely on the server has example code.
Step 6: Test before launch
The EazyOTP sandbox sends OTPs to one test number. Use a real +971 phone to check the message, the API response and the webhook status before you switch to live traffic.
Frequently asked questions
What does a WhatsApp OTP to a UAE number cost?
The current rate is ₹1.20845 per OTP. See the UAE WhatsApp OTP API page for details and volume pricing.
Can I verify UAE and non-UAE numbers with the same API?
Yes. The same endpoint works for every country on the rate card; only the country code changes.
Sources: Meta: supported languages · EazyOTP API documentation. Checked 17 November 2026.
Verify UAE users on WhatsApp
Create a free account to test in the sandbox, or ask our team for UAE volume pricing.