When to use this flow
Use this flow when you want OTP messages to be sent from your own connected WhatsApp Business account instead of Modawer’s official WhatsApp sender. This flow uses the raw WhatsApp template endpoint with anAUTHENTICATION template from your connected WABA.
For the built-in Modawer sender, use Send OTP Message.
This page is only for sending OTPs through a customer’s connected WhatsApp Business account.
Endpoint
Required header
Request body
Authentication template selection
The selected template must be an approved WhatsApp template with categoryAUTHENTICATION.
Use the Modawer Portal to:
- Link your WhatsApp Business account.
- Select the connected WhatsApp account.
- Select the sender WhatsApp phone number.
- Select an
AUTHENTICATIONtemplate. - Copy the generated cURL from API Playground.
Message Flow / Channels
channels controls the message flow. It is optional and only applicable when using AUTHENTICATION templates.
Supported values:
Examples:
channels is omitted, the backend defaults to WhatsApp.
Do not include
channels for non-AUTHENTICATION templates. For normal Marketing or Utility template messages, use the regular Send WhatsApp template page.Success response
cURL example
End-to-end checklist
- Your app is linked to a WhatsApp Business account.
whatsappBusinessIdmatches the connected WABA.phoneNumberIdbelongs to that WABA.- The selected template category is
AUTHENTICATION. channelsis included only when using anAUTHENTICATIONtemplate.- The OTP value is passed in the template component expected by your approved template.