Authentication template for verifying a phone number at SaaS signup with a one-time passcode on WhatsApp. Copy-code button.
Share of submissions of this template that Meta approved.
✳Approval tip
Rate-limit code requests to prevent abuse, and avoid sending marketing content in the same thread right after.
One-time verification code with a copy button.
</>For developers
The template as JSON for @talqui-oss/template-builder, and the Cloud API request that creates it. Replace the $ variables with your account values.
saas_signup_verification_code.json
{
"name": "saas_signup_verification_code",
"language": "en_US",
"category": "AUTHENTICATION",
"body": {
"addSecurityRecommendation": true
},
"footer": {
"codeExpirationMinutes": 10
},
"button": {
"type": "OTP",
"otpType": "COPY_CODE"
}
}Create with the Meta Cloud API
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "saas_signup_verification_code",
"language": "en_US",
"category": "AUTHENTICATION",
"components": [
{
"type": "BODY",
"add_security_recommendation": true
},
{
"type": "FOOTER",
"code_expiration_minutes": 10
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "OTP",
"otp_type": "COPY_CODE"
}
]
}
]
}'+Related