Skip to main content
POST
Create Template
The new template starts as PENDING. Meta then approves or rejects it, which can take some time. Check the result with Get Template. Returns 422 with meta_rejected if Meta refuses the template straight away, for example because the name is already used.

Authorizations

Authorization
string
header
required

Your API key. Create one under Setup → Developer API Keys and select the permissions this endpoint needs.

Scopes

templates:write

Body

application/json
channel_id
integer
required

Must reference an existing channels record.

name
string
required
Maximum string length: 512
Pattern: ^[a-z0-9_]+$
language
string
required
Maximum string length: 20
category
enum<string>
required
Available options:
MARKETING,
UTILITY,
AUTHENTICATION
body
string
required
Maximum string length: 1024
header
object | null
Maximum string length: 60
buttons
object[] | null
Maximum array length: 10

Response

201 Created

data
object