How It Works
Request Code
Generate a verification code and send it to your user via WhatsApp or SMS.You can customize the code length, character type (numbers, letters, or both), and expiration time. Works with WhatsApp chat IDs and phone numbers for SMS.
Validate Code
When your user enters the code, hit this endpoint to check if it’s correct.Works for both WhatsApp and SMS. We handle expiration checks and make sure each code only works once.
Generate Link (WhatsApp only)
Create a magic link for passwordless auth. User taps the link, you get a callback — no code entry needed.
This endpoint is WhatsApp only since it sends an interactive button message.
Quick Setup
Base URL:Endpoints
Good to Know
- Codes expire automatically (you set the TTL)
- Each code works only once
- Rate limiting is built-in
- Works with both WhatsApp chat IDs and phone numbers for SMS
Postman Collection
Download OTP Collection
Get the Postman collection to test the endpoints.
Next Steps
- Grab your API token and instance UUID from the dashboard
- Try sending a code with Request Code
- Validate it with Validate Code