Login and verification codes on WhatsApp
WhatsApp OTP API
OTPs on WhatsApp arrive fast, show your business name and avoid SMS DLT template hassles. Authentication messages are one of Meta's cheapest categories.
Our API can generate and check the code for you, or send a code you made yourself.
What you get
Two endpoints
POST /v1/otp/send and /v1/otp/verify - we create, hash and check the code (3 tries, 5 minutes).
Learn more →Code samples
Node, PHP and Python recipes in the developer guides.
How to start
- 1
Connect a number and approve an Authentication template
- 2
Create an API key
- 3
Call /v1/otp/send
- 4
Verify with /v1/otp/verify
Full checklist with what Meta needs: Get started.
Questions
How fast is a WhatsApp OTP?
Usually a few seconds. If the customer isn't on WhatsApp the message fails and you are refunded, so you can fall back to SMS.
Can I send my own code?
Yes, send the Authentication template with /v1/messages and your code as the variable.
Where are the docs?
On our Developers page, with a Postman collection.
More solutions
WhatsApp Business API for Indian businesses
Official API with your own number
Bulk WhatsApp marketing software
Campaigns that don't get your number blocked
WhatsApp chatbot builder (no code)
Bots that answer, qualify and book
WhatsApp CRM for sales teams
Leads, pipeline and follow-ups on WhatsApp
Shared WhatsApp team inbox
One number, many agents
Go live on WhatsApp this week
Sign up, connect your own number in a few clicks and send your first campaign. No setup fee, no card for the trial.