Skip to main content
POST
Create a template

Authorizations

Authorization
string
header
required

Your API key, e.g. gr_live_…

Headers

Idempotency-Key
string
required

Your own unique id for this request (at most 255 characters). The same id and body within 24 hours answers the first answer again — never a second send or charge.

Maximum string length: 255

Body

application/json
name
string
required

Lowercase letters, numbers and underscores.

language
string
required

A language code, e.g. en.

category
enum<string>
required
Available options:
marketing,
utility,
authentication
header
object
body
string
examples
object

A sample for each variable, e.g. {"body:name": "Rohan"}.

buttons
object[]
auth
object

Authentication options.

Response

Created.

name
string
language
string
category
string
status
enum<string>
Available options:
approved,
pending,
rejected,
paused,
disabled,
in_appeal
rejection_reason
string | null
quality
string
header_type
string
header_text
string
body
string
variables
integer
buttons
object[]