Skip to main content
POST
Upsert Template

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required

Workspace slug.

template_slug
string
required

Unique template slug. Used as the identifier for the template.

Body

application/json
name
string
required

Template display name.

Example:

"Order Confirmed"

description
string

Optional description for the template.

Example:

"Sent when an order is placed"

tags
string[]

Tags for organising templates.

Example:
enabled_channels
enum<string>[]

Channels to enable for this template.

Available options:
email,
sms,
whatsapp,
inbox,
androidpush,
iospush,
webpush,
slack,
ms_teams
Example:

Response

Template created or updated successfully

The response is of type object.