v2
latestOpenAPI 3.1.12026-07-2613060964.2 KBFetch 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
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": {}
}
]
}