POST /v1/messages request, optionally substituting numbered placeholders with dynamic values specific to each recipient.
Templates must be approved by Meta before you can use them in messages. Approval typically takes a few minutes for standard templates but can take up to 24 hours. You cannot send messages with a template in
PENDING or REJECTED status.List your templates
UseGET /v1/templates to see all templates in your account along with their current approval status.
Create a template
UsePOST /v1/templates to submit a new template for Meta’s review. Provide the template name, language, and the component structure including the message body.
Use templates when sending messages
Once a template isAPPROVED, reference it by name in POST /v1/messages. Use the variables object to substitute numbered placeholders — the key "1" maps to {{1}} in the template body, "2" to {{2}}, and so on.
Olá, João Silva! Sua consulta está marcada para 14h com Dra. Helena.
Language codes
Thelanguage field uses IETF BCP 47 codes. You must use the exact language code the template was approved with — mixing languages causes the message to fail.