Skip to main content
Authentication templates deliver one-time passcodes. Meta writes the body text itself (“123456 is your verification code.”), so you only send the code. Send the code twice:
  • In the body component, as the single text parameter.
  • In the OTP button component, with sub_type: "url" and index: "0". This applies to every OTP button type — Copy Code, One-Tap, and Zero-Tap.
Create authentication templates with an OTP button. See Create Template (category AUTHENTICATION) or the panel’s Create Template guide.

Send an OTP


Notes

The code is limited to 15 characters. Use the same value in both components — a mismatch is not rejected, but the customer sees one code and copies another.
Set a short message TTL on the template (messageSendTtlSeconds, 30–900 seconds) so expired codes are never delivered late.