Skip to main content

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 an AUTHENTICATION 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 category AUTHENTICATION. Use the Modawer Portal to:
  1. Link your WhatsApp Business account.
  2. Select the connected WhatsApp account.
  3. Select the sender WhatsApp phone number.
  4. Select an AUTHENTICATION template.
  5. Copy the generated cURL from API Playground.
Marketing, Utility, and other non-authentication templates are valid for normal WhatsApp template sending, but they should not be used for this OTP flow.

Message Flow / Channels

channels controls the message flow. It is optional and only applicable when using AUTHENTICATION templates. Supported values: Examples:
If 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.
  • whatsappBusinessId matches the connected WABA.
  • phoneNumberId belongs to that WABA.
  • The selected template category is AUTHENTICATION.
  • channels is included only when using an AUTHENTICATION template.
  • The OTP value is passed in the template component expected by your approved template.