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 OTPs from your own connected WhatsApp Business account, see
Send OTP from Your WhatsApp Account.
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". |