Skip to main content
POST
Create template

Authorizations

Authorization
string
header
required

Sign in to the admin dashboard and use the resulting ID token for a store and operation you can access. The authenticated dashboard cookie is accepted when the Authorization header is absent. Missing or insufficient access returns 401.

Body

application/json
name
string
required
Maximum string length: 128
template_type
string
required
Maximum string length: 64
content_type
string
required
Maximum string length: 64
content
string
required
description
string | null
Maximum string length: 1024
activity
string | null

example - signup, order-confirmation, order-cancelled, order-refunded, cart-abandoned, etc.

Maximum string length: 128
content_title
string | null

to be used in email subject, notification heading if provided.

Maximum string length: 512

Response

OK

message
string
required
success
boolean
required
content
object
required