GET
/
v1
/
template
/
{template_slug}
curl --request GET \
  --url https://hub.suprsend.com/v1/template/{template_slug} \
  --header 'Authorization: Bearer <token>'
{
  "id": "166277",
  "name": "Task Reminder",
  "slug": "task-reminder",
  "description": "Batched template for all pending tasks",
  "is_active": true,
  "default_language": {
    "name": "English",
    "slug": "en"
  },
  "created_at": "2023-01-25T04:53:39.237291Z",
  "updated_at": "2023-08-28T05:06:22.461443Z",
  "updated_by": {
    "name": "team_member",
    "email": "user@example.com"
  },
  "last_triggered_at": "2023-08-10T12:44:03.361158Z",
  "is_auto_translate_enabled": false,
  "enabled_languages": [
    "en",
    "fr",
    "es"
  ],
  "channels": [
    {
      "id": "1244",
      "channel": {
        "name": "Email",
        "slug": "email",
        "is_template_approval_needed": true
      },
      "is_active": true,
      "is_enabled": true,
      "created_at": "2023-01-25T04:53:39.268299Z",
      "updated_at": "2023-01-25T04:53:39.404273Z",
      "disabled_languages": [],
      "versions": []
    }
  ],
  "tags": [
    {
      "id": "01H9HPT1C5ABN61S12D85J9DJ7",
      "name": "tag"
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Path Parameters

template_slug
string
required

Template group slug you want to fetch content details. You'll get the template slug by clicking on copy button next to template group name on SuprSend dashboard -> template details page.

Response

200 - application/json
200
id
integer

internal template_id

name
string

template name given by user

slug
string

unique template slug generated from name

description
string | null

template description given by user

is_active
boolean

is true when atleast 1 template version is live for the channel

default_language
object
created_at
string

template creation time

updated_at
string

latest template modification time

updated_by
object
last_triggered_at
string

time when the workflow was last triggered

is_auto_translate_enabled
boolean
Example:

false

enabled_languages
string[]
Example:
["en", "fr", "es"]
channels
object[]

array of all template enabled channels along with their language and active status

tags
string[]

tags added in the template group