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 use a custom sender ID, please link your WhatsApp Business Account
(WABA).
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". |