v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Fetch Template details

API to fetch content of a template group (active & draft versions) across all associated channels and languages.

get/v1/template/{template_slug}/

Path parameters

template_slugstring 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

idinteger

internal template_id

namestring

template name given by user

slugstring

unique template slug generated from name

descriptionstring nullable

template description given by user

is_activeboolean

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

created_atstring date-time

template creation time

updated_atstring date-time

latest template modification time

last_triggered_atstring date-time

time when the workflow was last triggered

is_auto_translate_enabledboolean
enabled_languagesstring[]
channelsobject[]

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

Example response

{
  "default_language": {
    "name": "English",
    "slug": "en"
  },
  "tags": [
    {
      "id": "01H9HPT1C5ABN61S12D85J9DJ7",
      "name": "tag"
    }
  ]
}