Submit a template for Meta's review
Submits one language version of a template to Meta's review on the WhatsApp Business account account_id (a phone number's account_id from GET /channels/phone-numbers; templates belong to the account, every number of it can send them). The response carries the status Meta returned, usually PENDING. Every later change (approved, rejected, paused, disabled) is sent as the template.status webhook event; GET /templates/{templateId} reads the current state. A media header needs an example file: upload it first with POST /templates/samples and put the returned handle in the header's example.header_handle. API keys need the templates.manage scope.
Scope: templates.manage. Rate limit: 300 requests per minute per API key.
apiKey templates.manageAuthorizationBearer <msk_live_…>An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.
Scope: templates.manage
Idempotency-Key?stringRetry-safe POST: a repeated request with the same key replays the first successful response for 24 hours. Rejected requests (4xx/5xx) are not remembered, so a corrected request may reuse the key.
8 <= length <= 200application/json- body
account_id?stringThe WhatsApp account to create the template on. May be left out when the workspace has exactly one connected account.
uuidcategory*string"MARKETING""UTILITY""AUTHENTICATION"components*array<>Meta's component objects (HEADER, BODY, FOOTER, BUTTONS, LIMITED_TIME_OFFER, CAROUSEL). They are checked against Meta's documented limits before submission (docs/WHATSAPP.md, "Template components"); a violation is a VALIDATION_ERROR naming the field, e.g. components.2.buttons.1.text. Catalog buttons (MPM, SPM, CATALOG) are refused.
1 <= items <= 10language*string2 <= length <= 15name*string^[a-z0-9_]{1,512}$parameter_format?string"POSITIONAL""NAMED"Submitted
application/json- response
data*meta*curl -X POST 'https://app.messora.tech/api/v1/templates' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "019a8c2e-4f1b-7a0f-9c3d-5e7a1000000f", "category": "UTILITY", "components": [ { "example": { "header_handle": [ "4::aW1hZ2UvanBlZw==:ARZ..." ] }, "format": "IMAGE", "type": "HEADER" }, { "example": { "body_text_named_params": [ { "example": "Ali", "param_name": "first_name" }, { "example": "10421", "param_name": "order_no" } ] }, "text": "Hi {{first_name}}, your order {{order_no}} is on its way.", "type": "BODY" }, { "text": "Reply STOP to opt out", "type": "FOOTER" }, { "buttons": [ { "example": [ "https://shop.example.com/track/10421" ], "text": "Track", "type": "URL", "url": "https://shop.example.com/track/{{1}}" } ], "type": "BUTTONS" } ], "language": "en", "name": "order_shipped", "parameter_format": "NAMED"}'{ "data": { "account_id": "019a8c2e-4f1b-7a0f-9c3d-5e7a1000000f", "account_name": "Messora Demo", "category": "MARKETING", "components": [ { "text": "Merhaba {{1}}, kış indirimi başladı: tüm ürünlerde {{2}} indirim!", "type": "BODY" }, { "buttons": [ { "text": "Alışverişe başla", "type": "URL", "url": "https://shop.example.com/{{1}}" } ], "type": "BUTTONS" } ], "id": "019a8c2e-4f1b-7a14-9c3d-5e7a10000014", "language": "tr", "meta_template_id": "1204587366452271", "name": "winter_sale", "parameter_format": "POSITIONAL", "quality_score": "GREEN", "rejected_reason": "NONE", "status": "APPROVED", "synced_at": "2026-11-25T06:00:00Z" }, "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}Message templates mirrored from Meta GET
Message templates mirrored from Meta, with their approval status, category, language and components. Filter by account and status. Only APPROVED templates can be sent. Scope: templates.read. Rate limit: 300 requests per minute per API key.
Upload the example file of a media-header template POST
Meta reviews media-header templates with an example file. Send it as the raw body; the returned handle goes into the header component as example.header_handle. Needs the account's App ID. Images (JPEG, PNG) up to 5 MB, video (MP4) up to 16 MB, documents (PDF) up to 100 MB. Meta accepts only such an uploaded handle as a header example, not a link. API keys need the templates.manage scope. Scope: templates.manage. Rate limit: 300 requests per minute per API key.