Skip to Content
Templates & offers

Submit a template for Meta's review

POST
/templates

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.

Authorization

apiKey templates.manage
headerAuthorizationBearer <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

Header Parameters

Idempotency-Key?string

Retry-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.

Length8 <= length <= 200

Request Body

application/json
  1. body
account_id?string

The WhatsApp account to create the template on. May be left out when the workspace has exactly one connected account.

Formatuuid
category*string
Value in"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.

Items1 <= items <= 10
language*string
Length2 <= length <= 15
name*string
Match^[a-z0-9_]{1,512}$
parameter_format?string
Value in"POSITIONAL""NAMED"

Response Body

Submitted

application/json
  1. response
data*
meta*
Example Request
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"}'
Example Response
{  "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"  }}