Skip to main content
Send one-time passwords (OTPs) and magic links to your users via WhatsApp or SMS. Simple as that.

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:
https://app.hypersender.com/api/otp/v2
Auth: Bearer token in the header
Authorization: Bearer YOUR_API_TOKEN
Endpoints:
/{instance}/request-code
/{instance}/validate-code
/{instance}/generate-link

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
Keep your API keys secret. Don’t put them in client-side code.

Postman Collection

Download OTP Collection

Get the Postman collection to test the endpoints.

Next Steps

  1. Grab your API token and instance UUID from the dashboard
  2. Try sending a code with Request Code
  3. Validate it with Validate Code
That’s it. You’re ready to go.