v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Fetch Template content for a channel

API to fetch content of a particular channel in a template group (live & draft versions).

get/v1/template/{template_slug}/channel/{channel_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.

channel_slugstring required

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

Response

200

idinteger

template id generated by SuprSend

is_activeboolean

active templates have atleast 1 live version

is_enabledboolean

disabled channels are not picked for sending the message

created_atstring date-time
updated_atstring date-time
disabled_languagesstring[]

Example response

{
  "channel": {
    "name": "In-App Inbox",
    "slug": "inbox"
  },
  "is_enabled": true,
  "created_at": "2023-01-25T04:53:40.011112Z",
  "updated_at": "2023-07-27T14:55:23.939438Z",
  "versions": [
    {
      "id": 10830,
      "templates": [
        {
          "id": 11876,
          "language": {
            "name": "English",
            "slug": "en"
          },
          "is_enabled": true,
          "approval_status": "auto_approved",
          "updated_by": {
            "email": "user@example.com"
          }
        }
      ],
      "status": "active",
      "created_at": "2023-01-25T04:53:40.016463Z",
      "updated_at": "2023-01-25T04:53:40.083969Z",
      "apparent_published_languages": [
        "en"
      ],
      "system_approval_info": {}
    }
  ]
}