GET
/
v1
/
template
/
{template_slug}
/
channel
/
{channel_slug}
curl --request GET \
  --url https://hub.suprsend.com/v1/template/{template_slug}/channel/{channel_slug} \
  --header 'Authorization: Bearer <token>'
{
  "id": 1121,
  "channel": {
    "name": "In-App Inbox",
    "slug": "inbox",
    "is_template_approval_needed": false
  },
  "is_active": true,
  "is_enabled": true,
  "created_at": "2022-06-18T04:53:58.690274Z",
  "updated_at": "2025-01-21T11:49:23.247217Z",
  "disabled_languages": [],
  "versions": [
    {
      "id": 69989,
      "templates": [
        {
          "id": 74660,
          "language": {
            "name": "English",
            "slug": "en"
          },
          "is_enabled": true,
          "approval_status": "auto_approved",
          "content": {
            "...": null
          },
          "created_at": "2024-09-15T04:33:22.727005Z",
          "updated_at": "2024-09-15T04:36:56.103368Z",
          "updated_by": {
            "name": "Siva",
            "email": "katta.sivaram@suprsend.com"
          },
          "approval_cycle": null,
          "is_approval_needed": false,
          "is_cloned_from_last_version": false
        }
      ],
      "status": "active",
      "version_tag": "17",
      "created_at": "2024-09-15T04:33:22.714274Z",
      "updated_at": "2024-09-15T04:36:58.752580Z",
      "updated_by": {
        "name": "Siva",
        "email": "katta.sivaram@suprsend.com"
      },
      "version_tag_user": "v1",
      "published_languages": [
        "en"
      ],
      "apparent_published_languages": [
        "en"
      ],
      "system_approval_info": {}
    }
  ]
}

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.

channel_slug
string
required

add one of the template channels - email, sms, whatsapp, inbox, slack, androidpush, iospush, webpush

Response

200
application/json
200
id
integer

template id generated by SuprSend

channel
object
is_active
boolean

active templates have atleast 1 live version

is_enabled
boolean

disabled channels are not picked for sending the message

Example:

true

created_at
string
Example:

"2023-01-25T04:53:40.011112Z"

updated_at
string
Example:

"2023-07-27T14:55:23.939438Z"

disabled_languages
string[]
versions
object[]