💬 Shared WhatsApp Inbox on the new PlatformMore
1msg official logo

OTP Verification

Send one-time passcodes on WhatsApp via API for sign-up, login, two-factor authentication, password resets and confirming sensitive actions. Codes go out as authentication templates with a copy-code button through POST /sendTemplate, and KYC notices use regular templates. Each scenario has copy-ready code in cURL, Node.js, Python, PHP and Go.

eKYC pending review notice via WhatsApp API

The scenario sends the client a personalised WhatsApp template when their eKYC or identity verification is pending review.

KYC action required alert via WhatsApp API

The scenario sends the client a personalized WhatsApp template when KYC or compliance review flags a required action with a deadline.

Identity verification request via WhatsApp API

The scenario sends the client a personalized WhatsApp template when identity or KYC verification is required but not yet started.

Secure portal login OTP via WhatsApp API

The scenario sends a WhatsApp authentication template with a one-time verification code when the user must confirm sign-in to a protected or secure service.

App signup verification code via WhatsApp API

Sends a WhatsApp authentication template with a one-time registration confirmation code in the message body and a copy-code button.

Migrate OTP from SMS to WhatsApp API

Delivers a one-time verification code through a WhatsApp authentication template when your product switches OTP delivery from SMS to WhatsApp.

OTP to confirm secure actions via WhatsApp API

The scenario sends a WhatsApp authentication template with a one-time verification code when the user must confirm a secure action before it executes.

Access verification code via WhatsApp API

Sends a one-time access confirmation code through a WhatsApp authentication template when the user must verify identity before using a protected service.

Login authorization OTP via WhatsApp API

Sends a one-time authorization code through a WhatsApp authentication template when the user must confirm sign-in or access.

New device login OTP via WhatsApp API

The scenario sends the user a WhatsApp authentication template with a one-time verification code when a login attempt is flagged as coming from a new device.

New sign-in confirmation code via WhatsApp API

Sends a one-time login confirmation code through a WhatsApp authentication template when your backend detects a sign-in from a new device, browser, or location.

Two-factor authentication (2FA) via WhatsApp API

The scenario sends a WhatsApp authentication template with a one-time verification code when two-factor authentication is required after primary login.

Phone number verification code via WhatsApp API

Delivers a one-time code via WhatsApp authentication template when the user adds or changes a phone number.

Password reset OTP via WhatsApp API

Sends a one-time recovery code through a WhatsApp authentication template when the user starts password reset.

WhatsApp OTP verification API: send a code

The scenario sends the user a WhatsApp authentication template with a one-time verification code in the message body and a copy-code button.

Resend OTP via WhatsApp API

Resends a new one-time verification code via WhatsApp authentication template when the user taps “Resend code”.

Registration OTP via WhatsApp API (copy code)

Sends a WhatsApp authentication template with a one-time registration code in the body and a copy-code button.

Step-up OTP for sensitive actions via WhatsApp API

Sends a fresh one-time code via WhatsApp authentication template when the user confirms a sensitive account action.