Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v72
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
    • Get templates list
    • Get template info
    • Delete template
    • Add template
    • Update template
    • Channel object
  • Campaigns
  • Automation scenarios
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDevv71
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
This is documentation for Altcraft Platform v72. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Templates and fragments
  • Get template info
Documentation for version v72

Get template info

Description​

Retrieves a single message template information.

Request URL​

Method: POST

https://example.com/api/v1.1/templates/get

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
idint1YesTemplate ID

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>1</id>
</xml>

Response example​

  • JSON
  • XML
{
"data": {
"id": 1,
"updated_user": "ivan_ivanov",
"update_time": "2025-05-21T09:17:53.362Z",
"name": "Title",
"description": "Description",
"channels": [
{
"id": 1,
"sid": "email",
"fields": {
"text": "Text version of message",
"html": "<html>Hello, world!</html>",
"subject": "Theme",
"from_email": "",
"from_name": "",
"replyto_email": "",
"replyto_name": "",
"is_not_inline": true,
"attach": []
},
"presets": null
},
{
"id": 2,
"sid": "sms",
"fields": {
"sms": "Hello, world!",
"sms_max_count": 0,
"add_sms_url_scheme": false
},
"presets": null
},
{
"id": 4,
"sid": "push",
"fields": {
"title": "Header",
"body": "Hello, world!",
"icon": "",
"click_url": "ttps://example.com",
"click_url_new": {
"uniq": false
},
"custom_push_json_raw": "{}"
},
"presets": null
}
],
"json_url": "https://example.com/examples/message.json",
"is_draft": true,
"is_confirm": true,
"ui_tags": [
"E-commerce",
"B2C"
],
"groups": [
{
"id": 2,
"name": "Sales"
},
{
"id": 3,
"name": "Marketing"
}
],
"suppress_id": 1
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<id>1</id>
<updated_user>ivan_ivanov</updated_user>
<update_time>2025-05-21T09:17:53.362Z</update_time>
<name>Title</name>
<description>Description</description>
<channels>
<id>1</id>
<sid>email</sid>
<fields>
<text>Text version of message</text>
<html>&lt;html&gt;Hello, world!&lt;/html&gt;</html>
<subject>Theme</subject>
<from_email>noreply@example.com</from_email>
<from_name>Awesome Books</from_name>
<replyto_email></replyto_email>
<replyto_name></replyto_name>
<is_not_inline>true</is_not_inline>
<attach array='true'></attach>
</fields>
<presets></presets>
</channels>
<channels>
<id>2</id>
<sid>sms</sid>
<fields>
<sms>Hello, world!</sms>
<sms_max_count>0</sms_max_count>
<add_sms_url_scheme>false</add_sms_url_scheme>
</fields>
</channels>
<channels>
<id>4</id>
<sid>push</sid>
<fields>
<title>Header</title>
<body>Hello, world!</body>
<icon></icon>
<click_url>https://example.com</click_url>
<click_url_new>
<uniq>false</uniq>
</click_url_new>
<custom_push_json_raw>{}</custom_push_json_raw>
</fields>
</channels>
<json_url>https://example.com/examples/message.json</json_url>
<is_draft>true</is_draft>
<is_confirm>true</is_confirm>
<ui_tags>E-commerce</ui_tags>
<ui_tags>B2C</ui_tags>
<groups>
<id>2</id>
<name>Sales</name>
</groups>
<groups>
<id>3</id>
<name>Marketing</name>
</groups>
<suppress_id>1</suppress_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
idintTemplate ID
namestringTemplate name
descriptionstringTemplate description
channelsarray of objectsTempalte settings data for each channel
json_urlstringDynamic JSON URL
is_draftboolDraft template flag.
If this is a draft, the template cannot be sent.
is_confirmboolConfirm subscription link flag.
Is there a confirmation link in the body of the email or not.
ui_tags[]StringList of tags to search
groupsarray of objectsList of groups
suppress_idintSuppression list ID
updated_userstringBy whom the scenario was updated
update_timestringWhen the scenario was updated
Last updated on Apr 14, 2022
Previous
Get templates list
Next
Delete template
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.