TEMPLATES
Create or Update Template
Create a new template or update an existing one. If the template slug already exists, the template metadata is updated. Changes are saved to the draft version.
POST
Upsert Template
Documentation Index
Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
Workspace slug.
Unique template slug. Used as the identifier for the template.
Body
application/json
Template display name.
Example:
"Order Confirmed"
Optional description for the template.
Example:
"Sent when an order is placed"
Tags for organising templates.
Example:
["transactional"]Channels to enable for this template.
Available options:
email, sms, whatsapp, inbox, androidpush, iospush, webpush, slack, ms_teams Example:
["email", "sms"]Response
Template created or updated successfully
The response is of type object.
Previous
Commit TemplateCommit the current draft version, making it live. All draft changes across all channels and variants are published as a new version.
For WhatsApp and SMS (DLT) variants, committing moves them to **Approval Pending** state instead of going live immediately.
Next
Upsert Template