Alert users to a new device or location sign-in on WhatsApp with a button to secure their account. Utility security template.
Share of submissions of this template that Meta approved.
✳Approval tip
Include device, city and time. Never include links that ask for a password.
New sign-in detected
Hi {{first_name}}, we noticed a new sign-in to your Lumen account from *{{device}}* in {{city}} on {{time}}. If this was you, no action is needed.
Lumen Security{{first_name}}Ana{{device}}Chrome on Windows{{city}}Austin{{time}}Nov 3, 9:42 AM</>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_new_device_login_alert.json
{
"name": "saas_new_device_login_alert",
"language": "en_US",
"category": "UTILITY",
"header": {
"type": "TEXT",
"text": "New sign-in detected"
},
"body": {
"text": "Hi {{first_name}}, we noticed a new sign-in to your Lumen account from *{{device}}* in {{city}} on {{time}}. If this was you, no action is needed."
},
"footer": {
"text": "Lumen Security"
},
"buttons": [
{
"type": "QUICK_REPLY",
"text": "This was me"
},
{
"type": "QUICK_REPLY",
"text": "Secure my account"
}
],
"variables": {
"first_name": {
"example": "Ana"
},
"device": {
"example": "Chrome on Windows"
},
"city": {
"example": "Austin"
},
"time": {
"example": "Nov 3, 9:42 AM"
}
}
}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_new_device_login_alert",
"language": "en_US",
"category": "UTILITY",
"parameter_format": "NAMED",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "New sign-in detected"
},
{
"type": "BODY",
"text": "Hi {{first_name}}, we noticed a new sign-in to your Lumen account from *{{device}}* in {{city}} on {{time}}. If this was you, no action is needed.",
"example": {
"body_text_named_params": [
{
"param_name": "first_name",
"example": "Ana"
},
{
"param_name": "device",
"example": "Chrome on Windows"
},
{
"param_name": "city",
"example": "Austin"
},
{
"param_name": "time",
"example": "Nov 3, 9:42 AM"
}
]
}
},
{
"type": "FOOTER",
"text": "Lumen Security"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "QUICK_REPLY",
"text": "This was me"
},
{
"type": "QUICK_REPLY",
"text": "Secure my account"
}
]
}
]
}'+Related