Authentication template that sends a one-time code to approve a money transfer or new payee. Copy-code button, expiry and security note.
Share of submissions of this template that Meta approved.
✳Approval tip
Send the code only after the user starts the transfer, and invalidate it on expiry. Use a separate template from login codes so you can track them.
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.
finance_transfer_approval_code.json
{
"name": "finance_transfer_approval_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": "finance_transfer_approval_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