Send OTP
Send a One-Time Password (OTP) via WhatsApp.
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Seamless Authentication: The Wawp Authenticator Strategy
Transform your platform's user experience by replacing expensive SMS logic or slow Email verification with instant, secure WhatsApp OTPs. This endpoint powers a global-ready Identity Management flow.
Global Multi-Language Support 🌍
Our system supports 26+ global languages natively. When you specify a 'lang' parameter, the system automatically selects one of 5 different message templates for that language to ensure variety and security.
| Code | Language | Code | Language |
|---|---|---|---|
| en | English (Default) | ar | Arabic |
| fr | French | es | Spanish |
| pt | Portuguese | de | German |
| it | Italian | tr | Turkish |
| id | Indonesian | hi | Hindi |
| ru | Russian | ja | Japanese |
| ko | Korean | zh | Chinese |
| nl | Dutch | pl | Polish |
| vi | Vietnamese | th | Thai |
| ms | Malay | fa | Persian |
| ur | Urdu | bn | Bengali |
| el | Greek | ro | Romanian |
| sv | Swedish | uk | Ukrainian |
🚀 Additional Context (Performance & Customization)
- Universal Auth: Accepts credentials via Headers (Authorization: Bearer), JSON Body, or Query parameters.
- Custom Message Templates: Pass a custom 'message' parameter using placeholders {{otp}} (for the 6-digit code) and {{site_link}} (for your site URL).
- Toggleable Unique ID: Control whether to append ID: XXXX at the end of the message via 'include_id' (true or false).
- Configurable Cooldown: Set a custom resend delay via 'cooldown' parameter in seconds (Range: 10 to 600s, Default: 30s).
- Subscription Aware: Systems automatically detect your plan. Unlimited users bypass local rate-limiting queues for immediate dispatch.
- Validations: Automatically formats and validates phone numbers before dispatching.
Anti-Ban & Deliverability Engine 🛡️
We utilize advanced heuristics to protect your WhatsApp numbers from being flagged:
- Template Rotation & Custom Text: Supports template rotation or exact custom template formatting.
- Mathematical Uniqueness: Option to append unique transaction IDs (ID: XXXX) to prevent hash-matching by WhatsApp.
- Smart Delays: Messages are queued with random millisecond delays (3-8 seconds) to mimic human typing patterns.
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
URL Parameters
Passed in the URL query stringstring | Your unique WhatsApp Instance ID Example: | ||
string | Your API Access Token Example: | ||
string | The recipient's valid phone number (International format). Example: | ||
string | — | Language code (Default: en). Example: | |
string | — | Custom OTP message template. Supports {{otp}} and {{site_link}} placeholders. Example: | |
string | — | Website URL to replace {{site_link}} in the message template. Example: | |
boolean | — | Toggle whether to include the random unique message ID suffix (Default: true). Example: | |
number | — | Resend cooldown period in seconds (Default: 30, Min: 10, Max: 600). Example: | |
string | — | Optional custom text to append to the message. Example: |
Build with AI using Wawp MCP
MCP READYConnect Wawp API directly to Cursor, Windsurf, or Claude Desktop. Let AI write, test, and execute your WhatsApp integration code automatically!
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"code": "success",
"message": "Verification code sent successfully",
"expires_in": 300,
"job_id": "send_123_456"
}Command Palette
Search for a command to run...