WhatsApp Templates
Lodgestory CRM › Settings → WhatsApp Templates
Author pre-approved WhatsApp messages, get them reviewed, and use them to start conversations at scale — the right way.
TL;DR
- What it is — the page where you build, submit, track, and sync WhatsApp message templates. Approved templates unlock proactive outbound on WhatsApp — broadcasts, re-engagement after the 24-hour window closes, bot-initiated sends.
- Who it's for — Account Owners and Admins author templates. Users pick from approved templates in the inbox composer and in campaigns.
- Top outcome — broadcast on WhatsApp at scale without running foul of platform policies, and re-engage guests whenever you need to.
At a glance
| Plan tiers | All paid tiers. |
| Who can use it | Account Owners and Admins author and submit templates. All team members can select an approved template when sending. |
| Channels | WhatsApp Official only. The unofficial WhatsApp route does not use templates. |
| Integrations | Campaigns, Bot Journeys, and the inbox composer all pick approved templates from here. |
| Top limits | Up to 512 templates per WhatsApp Business Account. Header text up to 60 characters, body up to 1,024, footer up to 60, buttons up to 25 characters each. Up to 10 buttons per template; carousels carry 2–10 cards. Review takes 24–48 hours typically. |
| API | Yes — create and update templates (including carousel and limited-time-offer shapes), and upload header media, via the public partner API. See the API section below. |
How to find it
Sidebar: Settings → WhatsApp Templates.
Direct URL: https://lodgestory.com/crm/settings/templates
Create a new template at /crm/settings/templates/create; edit an existing one at /crm/settings/templates/{id}/edit.
What is WhatsApp Templates?
The problem it solves
WhatsApp at scale is template-based. Platform policy enforces two hard rules that, if broken, end in an account suspension: the 24-hour conversation window, and the template approval process. Inside a live conversation, free-text replies are fine. Outside it — sending the first message, reopening a stale chat, broadcasting to a list — every outbound message has to be an approved template.
WhatsApp Templates is where those templates live. Author a message with headers, body, footer, and buttons. Add variable placeholders for personalisation. Submit for review. Track status. Once approved, the template unlocks broadcasting, re-engagement, and bot-initiated sends across the product.
What you get
- A visual template builder. Component slots that mirror the platform's structure — header (text, image, video, document, or location), body, footer, and buttons — each with its own limits and live validation.
- Three template kinds for Marketing. Besides the standard shape, build carousel templates (2–10 horizontally-scrollable media cards, each with its own image or video, optional card text, and up to two buttons) and limited-time offer templates (an offer headline with an optional live countdown, a copy-code button, and an optional URL button).
- Variable placeholders — positional or named. Drop
{{1}},{{2}}into the body or a URL button, or switch the template to named parameters and write{{guest_name}},{{booking_id}}instead. Both formats are fully sendable from the composer, campaigns, bots, and the API. Each placeholder gets a sample value so the reviewer can see the intended use. - Three template categories. Marketing (promotional), Utility (transactional like bookings and reminders), and Authentication (OTPs). Each category has its own review criteria.
- A full authentication builder. Copy-code, one-tap autofill, and zero-tap OTP buttons (the latter two with your Android app's package name and signing hash), the security-recommendation line, code expiry, and multi-language creation in one submit — with the preview showing Meta's real localized copy per language.
- A language for every template. Pick from the full WhatsApp locale list; the same name can exist in many languages, each tracked as its own row and grouped together in the list.
- Per-template delivery TTL. Set how long WhatsApp keeps retrying delivery (30 seconds to 30 days) — short for OTPs, longer for marketing.
- Media sample uploads. For image, video, or document headers — and for every carousel card — upload a sample file. Lodgestory handles the upload with the platform and stores the resulting handle.
- Live preview. A right-hand panel that renders the template the way it will appear on iOS and Android, in light and dark modes — including the carousel card rail and the limited-time-offer chrome.
- Quality ratings. Approved templates show Meta's quality verdict (High, Medium, Low, or Pending) next to their status, updated live by webhook.
- Sync from the platform. Pull the latest status and content for every template in one click — no tokens to paste; Lodgestory derives the credentials from the connected channel.
- Import existing templates. Moving to Lodgestory from another provider? The Import dialog lists every template the platform already has for your business account — with per-row import and "already imported" flags.
- Safe edits. When you edit an approved template, Lodgestory only sends the parts you changed. Components you didn't touch stay intact — including carousel cards and limited-time-offer blocks, which survive body-only edits untouched.
How it's different
- Pixel-accurate preview. The preview matches what your customer will actually see in WhatsApp on iOS and Android. You won't find out after submission that a line wraps awkwardly or the button text is cut.
- Category gating is obvious. The UI calls out that category is locked after submission. If you need to change category, you create a new template. Lodgestory won't let you discover this mid-campaign.
- Per-language templates. Each language approval is its own row. promo_summer in English and Hindi are two templates, tracked separately.
- Chunked uploads for media samples. A high-resolution header image goes up in pieces, so a slow connection or a big file doesn't block submission.
Customer scenarios
- First promo of the quarter. Marketing writes a template with a villa header photo, a body "Hi {{1}}, summer rates are now 30% off — book by {{2}}.", a brand footer, and two quick-reply buttons. Submits. 24 hours later: approved. Runs as a broadcast in Campaigns.
- Re-engaging outside the window. A chat went quiet four days ago — well outside the 24-hour window — and the guest needs a booking reminder. A team member opens the composer, picks the approved utility template, fills in the placeholders, sends. The conversation re-opens.
- Agency handover. A new operator has 40 approved templates on an existing WhatsApp Business Account. Admin clicks Sync from Meta — all 40 land in Lodgestory with their approval status preserved, ready to use.
- A template gets paused. The platform pauses a template for quality reasons. The sync picks up the change; the template shows a Paused badge. The admin knows to use it less often or retire it.
How it fits with the rest of Lodgestory CRM
Templates live on top of Connections (a WhatsApp Official channel is the prerequisite). They're consumed by:
- Campaigns — only approved templates can be selected for a broadcast.
- Bot Journeys — bot journeys can send approved templates as scheduled outbound outside the 24-hour window.
- Home / Unified Inbox — the composer offers a template picker, especially useful when the conversation is past the 24-hour window.
Core concepts
| Term | What it means |
|---|---|
| Template | A pre-approved message structure you can send on WhatsApp. Identified by name plus language plus channel. |
| Category | Marketing, Utility, or Authentication. Locked after submission. |
| Kind | The template's shape: standard, carousel (media cards), or limited-time offer. Marketing only; locked after submission. |
| Component | One of the building blocks: header, body, footer, buttons — plus carousel cards and the limited-time-offer block on those kinds. |
| Variable placeholder | Positional ({{1}}, {{2}}) or named ({{guest_name}}), chosen per template. Each one needs a sample value at submission time. |
| Sample value | A realistic example for a placeholder, used during the review. |
| Status | Pending, Approved, Rejected, Paused, or Disabled. |
| Quality rating | Meta's ongoing verdict on an approved template — High, Medium, Low, or Pending — based on how recipients react to it. |
| TTL | How long WhatsApp keeps retrying delivery of a message sent with this template (30 seconds to 30 days). |
| Sync | The action that pulls the current status and content of every template from the platform. |
Quick Start — submit your first template in 10 minutes (plus 24–48 hours for review)
Step 1 — Open WhatsApp Templates
Sidebar: Settings → WhatsApp Templates → Create Template.
Step 2 — Basic fields
- Name — lowercase with underscores, like
booking_confirmation. Immutable after submission. - Channel — pick the WhatsApp Official number the template lives on.
- Category — Marketing, Utility, or Authentication.
- Kind (Marketing only) — Standard, Carousel, or Limited-time offer. This switches the builder below.
- Language — pick from the full WhatsApp locale list; defaults to English (
en_US). Locked after submission — create the same name in another language to translate it. - Parameter format — positional (
{{1}}, filled in order) or named ({{guest_name}}, filled by name). Both are fully sendable through the composer, campaigns, bots, and the API; named reads better when a template has many variables. Locked after submission. - Delivery time-to-live (optional) — how long WhatsApp keeps retrying delivery: presets from 5 minutes to 30 days, or a custom value (30–2,592,000 seconds). Leave blank for the platform default.
Step 3 — Build the components
Header (optional).
- Text up to 60 characters, with at most one variable.
- Image, video, or document — upload a sample file.
- Location — a static sample latitude and longitude.
Body (required).
- Up to 1,024 characters.
- Any number of placeholders (positional or named, per the template's format).
- Each placeholder gets a sample value.
- Bold, italic, strike-through, and monospace formatting supported.
Footer (optional).
- Up to 60 characters of static text. No variables. (Not available on limited-time-offer templates.)
Buttons (optional).
- Up to 10 buttons total, with constraints per button type:
- Quick reply buttons — up to 10.
- URL buttons — up to 2, with one variable allowed at the end of the URL.
- Phone number buttons — up to 1.
- Copy-code (coupon) buttons — up to 1, with a sample code of at most 15 characters; the real code is supplied at send time.
- Flow buttons — attach a published WhatsApp Flow; the tap opens the flow in-chat.
- OTP buttons — only on Authentication templates (copy-code, one-tap autofill, or zero-tap).
- Button titles up to 25 characters each.
Call permission request (optional, Utility or Marketing).
- Turn on Call permission request to add WhatsApp's Allow calls prompt under the body — for asking customers outside the 24-hour window whether your team may call them on WhatsApp (see WhatsApp calling).
- Text header only, and no other buttons on the same template.
Carousel cards (carousel kind).
- 2–10 cards, each with an image or video (uploaded per card), an optional card body up to 160 characters (with variables), and up to 2 buttons (quick reply, URL, or phone).
- Every card must share the same structure — card 1 defines it; the builder mirrors it onto the rest.
Limited-time offer (limited-time-offer kind).
- An offer headline up to 16 characters, an optional countdown (the expiry is supplied at send time), a body up to 600 characters, a required copy-code button, and an optional URL button. No footer.
Step 4 — Preview
The preview panel renders the template for iOS and Android, light and dark. Cycle through sample-value presets to see how it looks with short and long inputs.
Step 5 — Submit for approval
Click Submit for Approval. Lodgestory sends the template to the platform; the list shows Pending.
Step 6 — Wait, then sync
Review typically takes 24–48 hours. When you think it's done, click Sync from Meta at the top of the list to refresh every template's status.
What's next
- Once Approved, run a broadcast → Campaigns
- Use the template inside a bot journey → Bot Journeys
- Reply to an out-of-window chat → Home / Unified Inbox
How it works
When you submit a template, Lodgestory uploads any media samples, sends the complete structure to the platform for review, and records the new template with a Pending status. Review takes 24–48 hours typically, and there's no push notification from the platform when a decision is made. Clicking Sync from Meta asks the platform for the current status of every template in your account and updates the list with anything that changed.
Editing an approved template merges your changes with the existing structure. If you only send a new body, your buttons, footer, and header are preserved. If you clear a section deliberately, that's respected. This avoids the most common editing accident — losing a whole component because the change only sent the part you touched.
When a template is selected in a campaign, a bot journey, or the inbox composer, Lodgestory builds the outbound message with the placeholders filled in from your data and sends it. Delivery behaviour follows the normal WhatsApp rules: outbound uses your approved structure, replies come back into the inbox, and templates can be used for the first message of a new conversation or for re-opening a chat past the 24-hour window.
Features in depth
Template list
Templates are grouped by name, with a language chip per variant — promo_summer in English and Hindi sit under one row, each chip carrying its own status. Every variant shows its category badge, kind badge (Carousel / Limited-time offer / Auth), status badge, quality badge, TTL where set, channel, and created date. Colour coding is consistent — green for approved, amber for pending, red for rejected, grey for paused or disabled. Search by name; filter by status, category, language, and channel. + Add language on a group opens the create form with the name pre-filled and locked.
At the top of the list, Sync from Meta refreshes every template's status and content in one action — no tokens needed; credentials come from the connected channel.
Quality ratings
Once a template is approved, Meta keeps scoring it on how recipients react — blocks, reports, read rates. The list shows the verdict as a badge: High quality (green), Medium (amber), Low (red), or Quality pending while there's no signal yet. Ratings update live via webhook; the badge tooltip shows when the score last changed. A Low rating is the early warning before Meta pauses the template — rotate or retire it.
Carousel templates
Pick the Carousel kind on a Marketing template to get the card builder: a message body plus 2–10 cards, each with its own image or video, optional card text (up to 160 characters, variables welcome), and up to two buttons. Card 1 defines the structure; the other cards mirror it, so approval never fails on mismatched cards. Duplicate card copies content forward. At send time — composer or campaign — you supply each card's media and any per-card button values.
Limited-time offer templates
Pick the Limited-time offer kind to build a countdown promo: offer headline (16 characters max), optional image or video header, body up to 600 characters, a copy-code button, and an optional URL button. If the countdown is on, the expiry date-time is supplied at send — WhatsApp renders a live timer that turns red in the final hour. The actual offer code is also a send-time value, so one approved template can carry different codes per campaign or even per recipient.
Call permission request templates
With Call permission request on, the template carries WhatsApp's Allow calls prompt. Send it from a chat's Request call permission action when the customer's 24-hour window is closed — the picker lists only approved call-permission templates. The customer's answer lands in the chat as a card and updates the chat's Call button. WhatsApp allows one permission request per customer per 24 hours and two per 7 days.
Lodgestory's Continue chat template
Templates named lodgestory_browser_chat_v1 (_v2, _v3 …) are created by Lodgestory for browser chat: they carry the customer's private link after WhatsApp's 24-hour window has closed. Lodgestory creates one per WhatsApp account when it is first needed, sends links in it only while WhatsApp lists it as Utility, and submits the next version itself if WhatsApp files it as Marketing. You don't need to edit it; if you delete it, Lodgestory creates the next version the next time a link needs it.
Authentication templates
The authentication builder assembles Meta's fixed OTP layout: preset body text, optional security-recommendation line, optional code-expiry footer (1–90 minutes), and one OTP button — Copy code, One-tap autofill, or Zero-tap. One-tap and zero-tap take your Android app's package name and 11-character signing hash (multiple apps supported); zero-tap additionally requires accepting Meta's terms. Select several languages and one submit creates the template in all of them via Meta's bulk endpoint — the preview shows Meta's real localized copy per language. Sending is a single value: supply the code once and Lodgestory fills both the message text and the button.
Create and edit form
A multi-step wizard — basic info, header, body, footer, buttons, preview. Each step validates before you can move on. The body editor includes:
- A variable insert button that drops
{{n}}at the cursor. - Formatting controls for bold, italic, strike, and monospace.
- A live character count that warns at 80% of the limit.
- A sample-value field below the body for every placeholder used.
WhatsApp preview
A right-hand panel rendering the template close to the real customer view. Toggle between iOS and Android, light and dark modes, and sample-value presets (empty, short, long) to see the full range.
Media upload
For image, video, or document headers, click upload and pick a file. A progress indicator shows on larger files. On success the file is uploaded to the platform and its handle is stored on the template; Lodgestory also keeps a copy so the preview stays available.
Sync and Import
- Sync refreshes every template's status and content, following pagination — accounts with hundreds of templates sync completely.
- Import opens a dialog listing every template the platform has for your business account — name, language, status, kind, quality, and an "already imported" flag — with per-row import. Useful during an agency handover; existing rows are updated rather than duplicated.
- Neither action asks for tokens: Lodgestory derives the WhatsApp Business Account and credentials from the connected channel.
Validate without submitting
Run a dry validation to catch rejection reasons before spending a real submission slot. Structural issues, missing sample values, and format problems are highlighted on the right component.
Roles and permissions
This table covers the dashboard. The API additionally accepts a Bot-role token for create, update, and media upload.
| Action | Account Owner | Admin | User | Bot |
|---|---|---|---|---|
| View templates | Yes | Yes | No | No |
| Create and submit | Yes | Yes | No | No |
| Edit | Yes | Yes | No | No |
| Delete | Yes | Yes | No | No |
| Sync and Import | Yes | Yes | No | No |
| Use an approved template in campaigns, composer, or bot journeys | Yes | Yes | Yes | Yes |
Cross-module workflows
A. Broadcast a promo
Templates: author, submit, wait for approval. Campaigns: pick the approved template, pick the segment, pick the schedule, launch. Replies: land in the inbox with the campaign's tag already applied.
B. Re-engage after the window closes
A chat has been silent for three days. Team member opens the composer, picks the approved reminder template, fills in the placeholders, sends. The conversation re-opens.
C. Template hand-over from another provider
Templates: click Import. Every approved template on the business account appears in Lodgestory with status preserved. Run any new campaign immediately.
Limits a user will run into
| Limit | Value |
|---|---|
| Templates per business account | 512 |
| Header text | Up to 60 characters |
| Body | Up to 1,024 characters |
| Footer | Up to 60 characters |
| Button title | Up to 25 characters |
| Buttons per template | Up to 10 |
| Quick reply buttons | Up to 10 |
| URL buttons per template | Up to 2 |
| Phone number buttons per template | Up to 1 |
| Copy-code buttons per template | Up to 1; codes up to 15 characters |
| OTP buttons | Authentication category only |
| Carousel cards | 2–10, all sharing one structure; card body up to 160 characters; up to 2 buttons per card |
| Limited-time offer headline | Up to 16 characters; body up to 600; no footer |
| Delivery TTL | 30 seconds – 30 days (2,592,000 seconds) |
| Review time | 24–48 hours typically |
Errors and FAQ
Errors you might see
| Message | What it means | What to do |
|---|---|---|
| Template name must be lowercase with underscores | The name contains spaces, uppercase letters, or other characters. | Reformat the name. |
| Invalid language code | The language isn't one the platform supports. | Pick from the language list. |
| Header text exceeds 60 characters | The header is too long. | Shorten. |
| Authentication templates require at least one OTP button | Category rule. | Add an OTP button or change the category. |
| Template with this name, language, and channel already exists | You're duplicating an existing row. | Rename or pick a different language. |
| Template rejected by Meta | The platform refused the submission. | Read the rejection reason; edit the template; resubmit. |
| Cannot edit category, name, or language on an approved template | Those fields are locked after approval. | Create a new template. |
| Media upload failed | The upload didn't complete. | Retry with a smaller or correctly-typed file. |
FAQ
How long does approval take?
24–48 hours is typical. Utility and Authentication templates often come back faster; Marketing templates during high-volume periods can take longer. There's no formal SLA; Sync whenever you want the latest status.
Why was my template rejected?
The rejection reason appears on the template after Sync. Common reasons: placeholder count doesn't match the sample values, promotional content inside a Utility template, a URL inside the body instead of a button, unclear recipient benefit. Edit in place and resubmit.
Can I edit an approved template without resubmitting?
Some fields are editable — body text, some button titles — and the edit is quietly reviewed again. Category, name, and language are locked. For structural changes, create a new template.
I edited a template and all my buttons disappeared.
Lodgestory's smart merge is designed to preserve components you didn't touch. If buttons disappeared, the edit probably sent an empty buttons section, which the merge treats as "explicitly empty". To preserve buttons during a body-only edit, don't include the buttons section in the edit at all.
Imported templates show Approved on Meta but Pending in Lodgestory.
Run Sync from Meta; the list catches up. If a template is still Pending, check the business account directly — the sync respects whatever status the platform returns.
Can I duplicate a template as a starting point?
Not with a built-in action. Create a new template and copy the components manually.
What's the difference between Paused and Disabled?
Paused is a soft throttle applied by the platform — usually for quality reasons. You can't send while it's paused but the template isn't revoked. Disabled is a hard revocation; the template is dead.
Can I use the same template name across channels?
Yes. The name must be unique inside each combination of language and channel, so the same name can live on two channels with different content and independent approval states.
API
Everything the template editor does is available programmatically. Authenticate as described in Accounts & sign-in (bearer token; requires the Admin, Account Owner, or Bot role), then use the three endpoints below. Interactive reference with try-it: https://api.lodgestory.com/api/docs/public → Templates.
| Endpoint | What it does |
|---|---|
POST /api/wp-crm/templates/{organisationId}?channelId={channelId} | Submit a new template to Meta for review and record it in Lodgestory. |
PUT /api/wp-crm/templates/{organisationId}/{templateId}?channelId={channelId} | Edit an existing template — send only the parts you're changing; the rest is merged in automatically. |
POST /api/wp-crm/templates/{organisationId}/media | Turn a public HTTPS media URL into the header_handle needed for image/video/document headers. |
To discover channelId values and list existing templates (with their approval status), use GET /api/wp-crm/channels/{organisationId} and GET /api/wp-crm/channels/{organisationId}/templates.
Rate limits (per organisation, per minute): 20 creates, 30 updates, 10 media uploads.
Recipe 1 — a utility template with variables
curl -X POST "https://api.lodgestory.com/api/wp-crm/templates/$ORG_ID?channelId=$CHANNEL_ID" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{
"name": "booking_confirmation",
"category": "UTILITY",
"language": "en_US",
"parameter_format": "POSITIONAL",
"components": [
{
"type": "BODY",
"text": "Hi {{1}}, your booking {{2}} is confirmed for {{3}}. Reply here if you need anything before arrival.",
"example": { "body_text": [["Asha", "BK-2041", "14 August"]] }
},
{ "type": "FOOTER", "text": "Sunset Villas" }
]
}'The response contains the Meta submission (metaTemplate, with the template's initial status — normally PENDING) and the stored Lodgestory template (dbTemplate). Keep dbTemplate.organisationWpChannelTemplateMessagesId — that's the templateId the update endpoint takes, and the same id you'll see listing templates. (metaTemplate.id is Meta's own id and is not accepted by the update route.) Template names must be lowercase with underscores; the example values are what Meta's reviewers see, so make them realistic.
parameter_formatdefaults toPOSITIONAL({{1}},{{2}}, values supplied in order). Pass"NAMED"to use{{guest_name}}-style placeholders instead — named templates are fully sendable; their send-time parameters each carry aparameter_nameand can be supplied in any order.
Recipe 2 — a marketing template with an image header and buttons
Media headers need a media handle, not a URL. Get one first:
curl -X POST "https://api.lodgestory.com/api/wp-crm/templates/$ORG_ID/media" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"channelId": "'$CHANNEL_ID'", "url": "https://cdn.example.com/promos/summer-banner.jpg"}'
# → { "handle": "4::aW1hZ2Uv...", "filename": "summer-banner.jpg", "sizeBytes": 183204 }Then create the template with the handle in the header, plus quick-reply and dynamic-URL buttons:
curl -X POST "https://api.lodgestory.com/api/wp-crm/templates/$ORG_ID?channelId=$CHANNEL_ID" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{
"name": "summer_sale_2026",
"category": "MARKETING",
"language": "en_US",
"components": [
{
"type": "HEADER",
"format": "IMAGE",
"example": { "header_handle": ["4::aW1hZ2Uv..."] }
},
{
"type": "BODY",
"text": "Summer just got better, {{1}}! Book any villa before {{2}} and save {{3}} with code SUMMER.",
"example": { "body_text": [["Asha", "31 August", "20%"]] }
},
{ "type": "FOOTER", "text": "T&C apply. Reply STOP to opt out." },
{
"type": "BUTTONS",
"buttons": [
{ "type": "QUICK_REPLY", "text": "Show me villas" },
{
"type": "URL",
"text": "Book now",
"url": "https://example.com/offers/{{1}}",
"example": ["summer-2026"]
}
]
}
]
}'A dynamic URL button's {{1}} is filled per message at send time — the example array shows reviewers a realistic final URL. Video headers use "format": "VIDEO", document headers "format": "DOCUMENT", both with the same header_handle mechanism.
The same endpoint accepts the richer Marketing shapes:
- Coupon buttons — add
{ "type": "COPY_CODE", "example": "SAVE25" }to the buttons array (one per template, sample code ≤ 15 characters). At send time the real code goes in a button component:{ "type": "button", "sub_type": "copy_code", "index": 0, "parameters": [{ "type": "coupon_code", "coupon_code": "SUMMER25" }] }. - Carousel templates — a
{ "type": "CAROUSEL", "cards": [...] }component with 2–10 cards, each card carrying its ownHEADER(image/video with aheader_handlefrom the media endpoint), optionalBODY(≤ 160 characters), andBUTTONS. All cards must share one structure. Sends supply a matchingcarouselcomponent with per-card media and button values. - Limited-time offer templates — a
{ "type": "LIMITED_TIME_OFFER", "limited_time_offer": { "text": "Ends soon!", "has_expiration": true } }component plus a copy-code (and optional URL) button; no footer. Whenhas_expirationis on, sends must include the expiry:{ "type": "limited_time_offer", "parameters": [{ "type": "limited_time_offer", "limited_time_offer": { "expiration_time_ms": 1767225600000 } }] }.
Recipe 3 — authentication (one-time passcode) templates
Create authentication templates in Settings → WhatsApp Templates in the dashboard — the auth builder assembles Meta's fixed layout (preset body, optional security line and code expiry, one OTP button of type copy-code, one-tap autofill, or zero-tap) and supports creating the template in several languages at once. The public API is not the right tool for authoring these: their layout is fixed and the validation requires exactly one OTP button, so a hand-written body is refused before it reaches Meta.
Sending them through the API works like any other approved template: supply the code as an ordinary body parameter and Lodgestory fills both the message text and the OTP button.
Recipe 4 — updating a template
Send only what changes; unchanged components are merged in automatically before resubmission to Meta:
curl -X PUT "https://api.lodgestory.com/api/wp-crm/templates/$ORG_ID/$TEMPLATE_ID?channelId=$CHANNEL_ID" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{
"body": {
"type": "BODY",
"text": "Hi {{1}}, your booking {{2}} is confirmed for {{3}}. Early check-in? Just reply to this message.",
"example": { "body_text": [["Asha", "BK-2041", "14 August"]] }
}
}'Slot edits (header/body/footer/buttons) merge into the stored structure — carousel cards and limited-time-offer blocks survive a body-only edit untouched. To restructure a carousel or limited-time-offer template, send the full components array instead (it replaces everything). The update route also accepts message_send_ttl_seconds to change the delivery TTL.
Meta only allows editing templates that are currently approved, rejected, or paused, limits how often one template can be edited, and every edit goes back through review — plan copy changes ahead of campaigns.
Closing the loop — approval and sending
- Hear about the verdict without polling: subscribe to the
template.created,template.status_updated, andtemplate.quality_updatedevents in Webhooks. The status payload carries the new status and, when rejected, the reason; the quality payload carries the new score with the previous one inprevious_attributes. - Or poll: the template appears with its live status in
GET /api/wp-crm/channels/{organisationId}/templates. - Send it once approved via
POST /api/wp-crm/messaging/send-messagewith"type": "template"and the same name/language — variable values go in thecomponentsof the send call:
curl -X POST "https://api.lodgestory.com/api/wp-crm/messaging/send-message" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{
"organisationId": "'$ORG_ID'",
"channelId": "'$CHANNEL_ID'",
"chatId": "'$CHAT_ID'",
"type": "template",
"template": {
"name": "booking_confirmation",
"language": { "policy": "deterministic", "code": "en_US" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Asha" },
{ "type": "text", "text": "BK-2041" },
{ "type": "text", "text": "14 August" }
]
}
]
}
}'Changelog
- Aug 2026 — Carousel and limited-time-offer templates, coupon copy-code buttons, named parameters (now fully sendable), a language selector with grouped variants, per-template delivery TTL, the full authentication builder (one-tap/zero-tap OTP, multi-language creation, localized previews), quality-rating badges with the
template.quality_updatedwebhook, and the tokenless Sync/Import dialogs. - Aug 2026 — Template create, update, and header-media upload added to the public partner API, with
template.created/template.status_updatedwebhook events closing the approval loop. - Apr 2026 — Initial public documentation.
Related modules and next steps
- Connections — the WhatsApp Official channel templates live on.
- WhatsApp Flows — build the multi-screen forms that flow buttons open.
- Campaigns — the main consumer of approved templates.
- Bot Journeys — uses templates for sends scheduled outside the 24-hour window.
- Home / Unified Inbox — composer template picker for past-window sends.
Updated 22 days ago
