TEMPLATES
List Templates
Retrieve a paginated list of templates in a workspace. Returns template metadata including name, slug, status, enabled channels, and linked workflows.
GET
/
v2
/
{workspace}
/
template
/
List Templates
curl -X GET "https://management-api.suprsend.com/v2/{workspace}/template/?mode=live" \
--header 'Authorization: ServiceToken <token>' \
--header 'Content-Type: application/json'import requests
url = "https://management-api.suprsend.com/v2/{workspace}/template/"
headers = {"ServiceToken <token>": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'ServiceToken <token>': '<api-key>'}};
fetch('https://management-api.suprsend.com/v2/{workspace}/template/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://management-api.suprsend.com/v2/{workspace}/template/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ServiceToken <token>: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://management-api.suprsend.com/v2/{workspace}/template/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ServiceToken <token>", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://management-api.suprsend.com/v2/{workspace}/template/")
.header("ServiceToken <token>", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://management-api.suprsend.com/v2/{workspace}/template/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ServiceToken <token>"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"count": 22,
"limit": 10,
"offset": 0
},
"results": [
{
"$schema": "https://schema.suprsend.com/template/v2/schema.json",
"slug": "order-confirmation-email",
"created_at": "2026-04-07T10:39:28.502737Z",
"last_triggered_at": "2026-04-07T16:45:34.549989Z",
"name": "Order Confirmation Email",
"description": "Email template for order confirmation notifications",
"tags": [],
"enabled_channels": [
"email"
],
"status": "active",
"version_no": 4,
"hash": "637edaabc624d09db3793829ea872a3516ed0362ce79ee3875607fc7317381b9",
"commit_message": null,
"active_at": "2026-04-07T16:42:13.821446Z",
"updated_at": "2026-04-07T16:42:13.827644Z",
"updated_by": {
"name": "Jane Smith",
"email": "jane.smith@example.com"
},
"channels": [
{
"channel": "email",
"is_active": true,
"variants_count": 1
}
]
},
{
"$schema": "https://schema.suprsend.com/template/v2/schema.json",
"slug": "payment-confirmation",
"created_at": "2026-04-07T07:05:13.747248Z",
"last_triggered_at": null,
"name": "Payment Confirmation",
"description": "Payment confirmation notification with order details",
"tags": [],
"enabled_channels": [
"email",
"inbox"
],
"status": "active",
"version_no": 2,
"hash": "ea6007ab4cffac8f110e15145eedbd40b5897fcc880717411416b9cdb64b170e",
"commit_message": null,
"active_at": "2026-04-07T07:27:53.708887Z",
"updated_at": "2026-04-07T07:27:53.715438Z",
"updated_by": {
"name": "Alex Johnson",
"email": "alex.johnson@example.com"
},
"channels": [
{
"channel": "email",
"is_active": true,
"variants_count": 1
},
{
"channel": "inbox",
"is_active": true,
"variants_count": 1
}
]
}
]
}{
"code": 401,
"error_code": "authentication_failed",
"type": "AuthenticationFailed",
"message": "Invalid service token.",
"detail": "Invalid service token."
}Authorizations
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
Workspace slug (e.g., staging, production).
Query Parameters
Return draft or live version of templates.
Available options:
draft, live Number of results per page.
Offset for pagination.
Search by template name or slug.
Was this page helpful?
Previous
Get TemplateRetrieve detailed information about a specific template including its metadata, enabled channels, and version info.
Next
⌘I
List Templates
curl -X GET "https://management-api.suprsend.com/v2/{workspace}/template/?mode=live" \
--header 'Authorization: ServiceToken <token>' \
--header 'Content-Type: application/json'import requests
url = "https://management-api.suprsend.com/v2/{workspace}/template/"
headers = {"ServiceToken <token>": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'ServiceToken <token>': '<api-key>'}};
fetch('https://management-api.suprsend.com/v2/{workspace}/template/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://management-api.suprsend.com/v2/{workspace}/template/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"ServiceToken <token>: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://management-api.suprsend.com/v2/{workspace}/template/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("ServiceToken <token>", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://management-api.suprsend.com/v2/{workspace}/template/")
.header("ServiceToken <token>", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://management-api.suprsend.com/v2/{workspace}/template/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["ServiceToken <token>"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"meta": {
"count": 22,
"limit": 10,
"offset": 0
},
"results": [
{
"$schema": "https://schema.suprsend.com/template/v2/schema.json",
"slug": "order-confirmation-email",
"created_at": "2026-04-07T10:39:28.502737Z",
"last_triggered_at": "2026-04-07T16:45:34.549989Z",
"name": "Order Confirmation Email",
"description": "Email template for order confirmation notifications",
"tags": [],
"enabled_channels": [
"email"
],
"status": "active",
"version_no": 4,
"hash": "637edaabc624d09db3793829ea872a3516ed0362ce79ee3875607fc7317381b9",
"commit_message": null,
"active_at": "2026-04-07T16:42:13.821446Z",
"updated_at": "2026-04-07T16:42:13.827644Z",
"updated_by": {
"name": "Jane Smith",
"email": "jane.smith@example.com"
},
"channels": [
{
"channel": "email",
"is_active": true,
"variants_count": 1
}
]
},
{
"$schema": "https://schema.suprsend.com/template/v2/schema.json",
"slug": "payment-confirmation",
"created_at": "2026-04-07T07:05:13.747248Z",
"last_triggered_at": null,
"name": "Payment Confirmation",
"description": "Payment confirmation notification with order details",
"tags": [],
"enabled_channels": [
"email",
"inbox"
],
"status": "active",
"version_no": 2,
"hash": "ea6007ab4cffac8f110e15145eedbd40b5897fcc880717411416b9cdb64b170e",
"commit_message": null,
"active_at": "2026-04-07T07:27:53.708887Z",
"updated_at": "2026-04-07T07:27:53.715438Z",
"updated_by": {
"name": "Alex Johnson",
"email": "alex.johnson@example.com"
},
"channels": [
{
"channel": "email",
"is_active": true,
"variants_count": 1
},
{
"channel": "inbox",
"is_active": true,
"variants_count": 1
}
]
}
]
}{
"code": 401,
"error_code": "authentication_failed",
"type": "AuthenticationFailed",
"message": "Invalid service token.",
"detail": "Invalid service token."
}