A template is a message pre-approved by Meta. It is the only message type you can send when the 24-hour window is closed — that is, when the contact hasn’t written to you in the last 24 hours. While the window is open you can send free text; once it closes, only a template will reach the customer.Documentation Index
Fetch the complete documentation index at: https://docs.1to1ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Templates are created and approved in the dashboard. The public API only
consumes them to send — it does not create or edit them.
How a template is resolved
Identify the template by name
A template is identified by its
template_name — the same name you see in
the dashboard and report to Meta.Specify the language if needed
If the same name is approved in several languages, add
language (Meta
lower_UPPER format, e.g. en_US) to pick which one to send. If it exists
in only one language, it is optional.Template components
When sending a template you fill in its dynamic parts:body_variables
The body placeholders (
{{1}}, {{2}}, …). Array of objects
{ index, value }.header
The header: text, or media via
file_uuid.button_parameters
Parameters for dynamic buttons (e.g. the suffix of a URL button).
Sending a template
A typical send, with two variables in the body:Next steps
Send messages
Sending templates, text, media, and quick replies.
Conversations
The 24-hour window and the state of a conversation.