Use this endpoint to register a new WhatsApp message template in your RelayOS project. After submission, Meta reviews the template and updates its status toDocumentation 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.
APPROVED or REJECTED. You can only send messages using templates that have been approved.
Request
POST https://api.relayos.com.br/v1/templates
Template name in slug format (lowercase letters, numbers, and underscores only). This name is used when referencing the template in
POST /v1/messages. Example: order_confirmation.BCP-47 language code for the template. Examples:
pt_BR, en_US, es_MX. Each language variant is registered as a separate template.Template category as defined by Meta. Must be one of
UTILITY, MARKETING, or AUTHENTICATION. The category affects delivery rules and pricing.Array of component objects that define the template structure. Each component represents a section of the message:
HEADER, BODY, or FOOTER. At minimum, a BODY component is required.Response
A200 response returns the created template object.
Unique template identifier assigned by RelayOS.
The slug name you provided.
The language code for this template.
The template category (
UTILITY, MARKETING, or AUTHENTICATION).Approval status from Meta. Initially
PENDING. Transitions to APPROVED or REJECTED after Meta review.The components array as submitted.
ISO 8601 timestamp of when the template was registered.
Meta typically reviews templates within 24 hours. You can poll
GET /v1/templates to check approval status.