1-Click WhatsApp Authentication and One-Tap Autofill OTP

WhatsApp Authentication in 1-Click and One-Tap Autofill OTP

In the Authentication Templates category, Meta offers interactive buttons specially designed to make one-time password (OTP) entry easier.

Available authentication button types

1. “Copy code” button (copy_code)

Displays a button below the message that instantly copies the 6-digit code to the user's clipboard with a single tap.

2. One-Tap Autofill / Zero-Tap Autofill (one_tap)

Integrated with Android SMS Retriever / Autofill API. When the message arrives:

  • The mobile operating system displays a direct invitation to fill the code in your application.
  • The user does not even need to memorize or type the numbers: the registration or connection form is completed and validated automatically.

Sending via the EnvoiSMS.ma API

Call the /v1/verify/send endpoint specifying the whatsapp channel and application signing options:```bash

curl -X POST https://api.envoisms.ma/v1/verify/send \

-H "Authorization: Bearer env_live_votre_cle" \

-H "Content-Type: application/json" \

-d '{

"to": "+212612345678",

"channel": "whatsapp",

"otp_type": "one_tap",

"package_name": "ma.monapp.ecommerce",

"signature_hash": "AbCdEf12345"

}'

Was this article helpful?