Create Authentication Template
POSThttps://public.leadpattern.com/template/auth
Submit a new AUTHENTICATION/OTP template to Meta for approval. Meta auto-generates the body wording ("Your verification code is {{1}}.") and fixes the Copy Code button label — neither is customizable; only the security-recommendation line and code-expiry footer are configurable.
- Body and button copy are generated by Meta for AUTHENTICATION templates — the button label is always "Copy Code".
- Send it afterwards with POST /whatsapp/message/auth-template.
Headers
1 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Body Parameters
4 fieldsnamestringrequired
Template name (lowercase, underscores).
languagestringrequired
Template language code.
addSecurityRecommendationbooleanoptionaldefault:
falseAppends Meta's "do not share this code" line.
codeExpirationMinutesnumberoptional
Shows an expiry footer. 1-90 minutes.
Responses
JSON Response
{
"type": "success",
"data": {
"success": true
}
}Sample Request Body
{
"name": "otp_login",
"language": "en_US",
"addSecurityRecommendation": true,
"codeExpirationMinutes": 10
}
