WhatsApp templates are pre-approved message formats required by Meta for any business-initiated conversation. Before you can send a message with RelayOS, the template you reference must be approved by Meta. Once approved, you use the template name and language code in yourDocumentation Index
Fetch the complete documentation index at: https://docs.relayos.com.br/llms.txt
Use this file to discover all available pages before exploring further.
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.
| Code | Language |
|---|---|
pt_BR | Portuguese (Brazil) |
en_US | English (United States) |
es_AR | Spanish (Argentina) |
es_MX | Spanish (Mexico) |
fr_FR | French (France) |