Skip to main content
POST
Create templates

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a WhatsApp message template. Scramble reads these rules to document the request body. Mirrors the existing TemplateController::store validation.

template_name
string
required

Template name. Required.

Maximum string length: 191
category
string
required

Category — Meta numeric id (1/2/3), meta slug, or industry bucket. Required.

template_type
enum<string> | null

Template type. Defaults to "standard".

Available options:
standard,
carousel,
media,
auth
header
string | null

Optional header text (max 255 chars).

Maximum string length: 255
template_body
string | null

Body text (required for standard templates, max 4096 chars).

Maximum string length: 4096

Optional footer text (max 255 chars).

Maximum string length: 255
language
string | null

Language code (e.g. en_US). Defaults to en_US.

Maximum string length: 16
buttons
string | null

Buttons — CTA / quick-reply array (or parallel-array form).

quick_replies
string | null

Quick-reply buttons (folded into buttons[]).

Carousel cards payload (for carousel templates).

latitude
number | null

LOCATION header — send a map pin. Provide latitude + longitude (both required together) with an optional name + address.

Required range: -90 <= x <= 90
longitude
number | null
Required range: -180 <= x <= 180
location_name
string | null
Maximum string length: 191
location_address
string | null
Maximum string length: 255

Response

Resource created successfully.

data
any[]
required
meta
string
required