Documentation Index
Fetch the complete documentation index at: https://docs.modawer.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
| Field | Value |
|---|---|
| Method | POST |
| Path | /api/messages/send-otp |
| Content-Type | application/json |
This endpoint sends OTP messages only through Modawer’s official WhatsApp
account. It is the easiest way to start sending OTP messages without linking
your own WhatsApp sender.
To send from a custom sender ID,
link your WABA account in the Modawer Portal. For OTP messages, your
WhatsApp Business Account (WABA) must be verified. Utility and marketing
templates can be sent from a linked account without completing the business
verification process.
Custom sender setup
To send from your own WhatsApp sender, connect a WhatsApp API account in the Modawer Portal. See Link WABA Account for the full setup flow.- Create or select a WhatsApp Business Account (WABA).
- Add and verify a phone number that can receive a verification code.
- Use a WhatsApp business display name that matches your brand.
- Keep your company details ready, including company name, address, business registration document, official HTTPS website, and business email.
- Complete business verification for OTP templates.
Request body
| Field | Type | Description |
|---|---|---|
recipient | string | Phone number that receives the OTP message. |
otp | string | One-time password value inserted into the otp_code_1 authentication template. |
channels | MessageChannel[] | Optional delivery channels. Defaults to ["WhatsApp"]. Supported values are "WhatsApp" and "Telegram". |