NewTelegram fallback: if WhatsApp fails, the code goes to Telegram automatically.Read more
WhatsApp & Telegram OTP API

Verify users on the app they already open every day.

Send one-time passwords through WhatsApp or Telegram with one API call. Pay Meta's rate plus a fixed $0.01 per message, with automatic fallback when a channel fails.

251 countries Telegram OTP $0.02 everywhere 8 message languages

The message your users receive: Meta's standard authentication template.

How it works

Live in an afternoon

Three steps, no telecom contracts, no sender ID paperwork.

  1. Create an API key

    Sign up, add credit to your wallet and copy your key from the dashboard.

  2. Send the code

    Your server generates the code and sends it to VerifyWay with the user's phone number.

  3. Check what the user types

    The user receives it on WhatsApp or Telegram. Failed messages are refunded to your wallet.

Two channels, one API

Choose the channel per request

WhatsApp

Official WhatsApp Cloud API

Codes arrive from a verified business profile with a one-tap copy button.

  • Price depends on the country
  • 8 template languages
  • Delivered and read status
WhatsApp prices by country
Telegram

Telegram Gateway

Codes arrive in the official Telegram verification chat. One flat price worldwide.

  • Every country: $0.02
  • Fallback from WhatsApp in the same request
How fallback works
WhatsApp OTP vs SMS OTP

Why teams move verification off SMS

SMS was built for carriers, not for security. WhatsApp and Telegram were built for apps.

WhatsApp / TelegramSMS
SenderA verified business nameA number or sender ID that can be spoofed
Delivery statusDelivered and read, sent to your webhookDepends on the carrier route
Setup per countryNone. One template, 251 countriesSender ID registration rules in many countries
EncryptionEncrypted in transit inside the appPlain text across carrier networks
OTP fraudKeys pause automatically on unusual trafficA common target for SMS pumping
User experienceOne-tap copy buttonRead and type the code
For developers

One request. Any language.

  • JSON over HTTPS with a Bearer key
  • Fallback to the other channel with one flag
  • Delivery status sent to your webhook
  • Check your balance with the same key
Read the API docs
Pricing

Popular countries

Final prices per message in USD. They include Meta's fee and our fixed $0.01 margin.

See all 251 countries
FAQ

Questions teams ask before switching

Why WhatsApp instead of SMS?

Most of your users already have WhatsApp open. Messages arrive from a verified business name, cannot be spoofed by a random sender ID, and in many countries cost less than SMS.

What does "fixed $0.01 margin" mean?

Meta charges a fee per delivered message that depends on the country. We add exactly $0.01 to that fee. The prices on our site already include it, so you pay what you see.

What happens if a message fails?

A message that fails is refunded to your wallet automatically. With fallback enabled, we try the other channel within the same request.

Do you generate the OTP code?

No. Your server creates the code and checks what the user types. VerifyWay only delivers it, which keeps verification under your control.

How do I pay?

Top up your wallet by card from $10. Each delivered message is deducted from your balance, and you can check it any time in the dashboard or through the API.

Send your first OTP today

Create an account, top up from $10 and get your API key in minutes.

Pricing

WhatsApp and Telegram OTP pricing

All prices are final, in USD, per delivered message. WhatsApp: Meta's fee for the country plus our fixed $0.01. Telegram: $0.02 in every country. Failed messages are free, and there are no hidden fees.

Telegram OTP
One price in every country
$0.0200per delivered message
  • Same price in all 251 countries
  • Delivered in Telegram's official verification chat
  • Works as automatic fallback for WhatsApp

Dial code

Dial code ISO code Meta pricing region
OTP · Authenticationper delivered message
Telegram OTP$0.0200per delivered messageSame price in every country
per month
WhatsApp
Telegram
Compare all options in the cost calculator

Create an account, top up from $10 and get your API key in minutes.

WhatsApp and Telegram OTP API

Phone verification without SMS problems

No sender ID registration, no carrier filtering, no SIM-swap codes sitting in an SMS inbox. Your users get the code in WhatsApp or Telegram, and you get delivery status by webhook.

What you get

Built for verification, not marketing blasts

Automatic fallback

Set fallback to "yes" and a failed WhatsApp code is retried on Telegram in the same request. Failed attempts are refunded.

Delivery webhooks

Get delivered, read, failed and expired statuses sent to your server, matched by message_id.

Fraud protection

Unusual traffic to many countries pauses an API key automatically, which stops OTP pumping before it drains your wallet.

Pay per delivered message

Prepaid wallet, Meta's rate plus $0.01. No monthly fee and no minimum volume.

Send your first OTP today

Create an account, top up from $10 and get your API key in minutes.

Blog

Guides for phone verification

Practical guides to WhatsApp and Telegram OTP, and what is new at VerifyWay.

OTP Best Practices: Code Length, Expiry, Limits and Safe Delivery

How to create, store, send and check one-time passwords safely: secure random codes, short expiry, attempt and resend limits, bot protection, idempotent sending and a better user experience.

A one-time password is only as safe as the system around it. Delivery is VerifyWay's job; creating, storing and checking the code is yours. These are the practices that matter most, whatever channel you use.

1. Create codes the right way

  • Use a secure random generator, such as random_int() in PHP or crypto.randomInt() in Node.js. Never use the current time or a simple counter.
  • 6 digits is a good default. It balances security and typing. Use 4 to 8 digits if you enable Telegram or fallback, because Telegram accepts only that length.
  • Send the code as a string, so a code like 012345 keeps its leading zero.

2. Store and check codes safely

  • Store a hash of the code, not the code itself, together with the phone number and an expiry time.
  • Keep codes short-lived: 5 to 10 minutes is typical. Your app decides how long a code stays valid.
  • One use only. Delete or invalidate the code as soon as it is entered correctly.
  • Compare in constant time (for example hash_equals() or crypto.timingSafeEqual()).
  • Never log full codes, in your app or in error reports.

3. Limit attempts and resends

LimitSuggested valueWhy
Wrong attempts per code5Stops guessing
Resend cooldown30 secondsVerifyWay allows one code per number every 30 seconds
Codes per number per day5 to 10Stops abuse of one number
Codes per IP or device per hourYour choiceStops bots trying many numbers

Show a countdown before the "Resend" button, so users do not hit the limit by accident.

4. Protect the send button

  • Only allow countries you serve. Codes to unexpected countries are a common sign of abuse.
  • Add a bot check (for example a CAPTCHA) before sending, at least after the first resend.
  • Watch your conversion rate: codes entered correctly divided by codes sent. A sudden drop usually means bots.

VerifyWay adds its own layer: you pay only for delivered codes, and an account pauses for a short time when its traffic suddenly spreads to many countries or many codes fail. Read more in how to stop OTP fraud.

5. Send reliably

  • Keep the API key on your server. Never put it in a mobile app or browser code.
  • Use an Idempotency-Key. After a timeout, repeat the same request with the same key, so the user does not get two different codes.
  • Turn on fallback with "fallback": "yes", so users without WhatsApp get the code on Telegram, or the other way round.
  • Listen to your webhook. If the status is failed, tell the user right away instead of letting them wait.
curl -X POST 'https://api.verifyway.com/api/v1' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: login-7f3a9c' \
  -d '{
    "recipient": "+9647701234567",
    "type": "otp",
    "channel": "whatsapp",
    "fallback": "yes",
    "code": "482916"
  }'

6. Make it easy for users

  • Say where the code will arrive: "We sent a code to your WhatsApp" or "on WhatsApp or Telegram".
  • Show the number the code went to, with a "Change number" link.
  • Use a numeric input (inputmode="numeric", autocomplete="one-time-code") so phones offer the right keyboard.
  • Accept pasted codes with spaces removed; WhatsApp users often tap the copy button and paste.

Checklist

PracticeDone by
Secure random code, stored as a hash, short expiry, one useYour app
Attempt limits, resend cooldown, bot check, country allowlistYour app
One code per number every 30 secondsVerifyWay
Delivery, fallback, refunds for failed attempts, delivery webhooksVerifyWay
Short automatic pause on unusual trafficVerifyWay

Frequently asked questions

Does VerifyWay create or check the code?

No. Your server creates the code, sends it through VerifyWay and checks what the user types. That keeps verification fully under your control.

How long should a code be valid?

Usually 5 to 10 minutes. Longer gives attackers more time; shorter frustrates users on slow connections.

Should I use 4 or 6 digits?

6 digits for most apps. 4 digits is easier to type but needs stricter attempt limits.

Put these practices to workCreate an account, top up from $10 and send your first code in minutes.Create account
Share
Contact

Talk to the VerifyWay team

Questions about pricing, a country, or moving from SMS? Send a message and we reply by email.

Existing customersLog in to your dashboard to see message logs and wallet history.

Cost calculator

Estimate your monthly OTP cost

Pick a country, a channel and your monthly volume. Prices are final; WhatsApp prices include our $0.01 margin.

WhatsApp OTP in your country
Telegram OTP, everywhere$0.0200One flat price
Countries covered251Meta's rate + $0.01
per month
Compare channels
5%
Your estimate
per month
Country
Verifications per month
Per verification
Per year

Failed messages are refunded, so you only pay for delivered codes.

What you get

FAQ

Create an account, top up from $10 and get your API key in minutes.

Legal