WhatsApp OTP API
Built for Indian apps
Send one-time passwords over WhatsApp through the documented API. Delivery depends on the destination, account, template approval, and recipient conditions.
Integrate with the documented API
Two API calls. No SDK required. Works with any backend language.
Get your API key
Sign up → Settings → API Keys. Create and manage API keys in workspace settings.
Call /otp/send
Pass phone number in E.164 format. WhatsApp delivery depends on provider and recipient conditions.
Call /otp/verify
Submit the OTP your user entered. Get back verified: true.
// Send WhatsApp OTP — Node.js
const response = await fetch('https://api.crm.emacronai.com/api/v1/whatsapp/otp/send', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
phone: '+919876543210', // E.164 format
expiry: 300, // seconds (default: 300)
length: 6, // OTP length (4-8)
}),
});
const { request_id } = await response.json();
// Verify OTP
const verify = await fetch('https://api.crm.emacronai.com/api/v1/whatsapp/otp/verify', {
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ request_id, otp: '482916' }),
});
const { verified } = await verify.json();
// verified: true ✅API
Send and verify
Use the documented request flow
WABA
Connected account
A WhatsApp Business Account is required
Template
Provider approval
Authentication templates must be approved
Pricing
Current charges
Review package terms before sending
Who uses WhatsApp OTP
E-commerce & D2C
Offer WhatsApp OTP as one verification option at checkout, alongside the channels your customers can use.
Fintech & Payments
Use WhatsApp OTP for transaction verification only when it meets your security, privacy, and regulatory requirements.
EdTech platforms
Offer WhatsApp OTP as a login or registration verification channel where it fits your users and provider setup.
Healthcare apps
Patient login and appointment updates over WhatsApp, subject to your organization’s privacy and compliance requirements.
Logistics & mobility
Driver and customer OTP verification at scale. Use request and verification endpoints from your application backend.
SaaS products
Magic links and login codes via WhatsApp. Choose the channel that fits your users and authentication flow.
Check the current requirements and charges
OTP delivery and costs depend on your selected package, connected WhatsApp Business Account, approved authentication template, destination, and provider terms.
Add WhatsApp OTP to your application
Select a package, configure API access, connect the WhatsApp Business Account, and submit the required authentication template before live delivery.