Skip to content
Reference/Templates/Create Authentication Template

Create Authentication Template

POSThttps://public.leadpattern.com/template/auth
Plan: templatesWhatsApp Connectedapplication/json60 req/min

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 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Body Parameters

4 fields
namestring
required
Template name (lowercase, underscores).
languagestring
required
Template language code.
addSecurityRecommendationboolean
optionaldefault: false
Appends Meta's "do not share this code" line.
codeExpirationMinutesnumber
optional
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
}