Skip to Content
Templates & offers

Upload the example file of a media-header template

POST
/templates/samples

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.

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

Query Parameters

account_id?string

The WhatsApp account. May be left out when the workspace has exactly one connected account.

Formatuuid
filename*string
Length1 <= length <= 240

Request Body

body*fileapplication/octet-stream
Formatbinary

Response Body

Uploaded

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/templates/samples?filename=string' \  -H 'Content-Type: application/octet-stream' \  -d 'string'
Example Response
{  "data": {    "handle": "4::aW1hZ2UvanBlZw==:ARZ...",    "mime_type": "image/jpeg",    "size": 182044  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}