Upload the example file of a media-header template
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.
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
account_id?stringThe WhatsApp account. May be left out when the workspace has exactly one connected account.
uuidfilename*string1 <= length <= 240body*fileapplication/octet-streambinaryUploaded
application/json- response
data*meta*curl -X POST 'https://app.messora.tech/api/v1/templates/samples?filename=string' \ -H 'Content-Type: application/octet-stream' \ -d 'string'{ "data": { "handle": "4::aW1hZ2UvanBlZw==:ARZ...", "mime_type": "image/jpeg", "size": 182044 }, "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}Submit a template for Meta's review POST
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.
One message template GET
One message template mirrored from Meta, with its account, approval status, category, language and components. Scope: templates.read. Rate limit: 300 requests per minute per API key.