Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
    • Get templates list
    • Get template info
    • Delete template
    • Add template
    • Update template
    • Channel object
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Templates and fragments
  • Get templates list
Documentation for version v74

Get templates list

Description​

Retrieves a list of message templates.

Request URL​

Method: POST

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

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default– json
from_idint1NoThe first template ID in the list.
By default – 1
limitint100NoMessage list limit.
By default – 1000
channelstring"email"
"sms"
"push"
"telegram_bot"
"telegram_group"
"custom_channel"
NoThe channel that uses the template
By default – all channels
ui_tags[string][ "tag1", "tag2" ]NoList of tags to search
By default – []
groups[string][ "group1", "group2" ]NoList of groups
By default – []
groups_id[int][ 0, 1 ]NoList of group IDs
By default – []

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"limit": 2
}

<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<limit>2</limit>
</xml>

Response example​

  • JSON
  • XML
{
"data": [
{
"id": 1,
"updated_user": "ivan_ivanov",
"update_time": "2025-05-21T09:17:53.362Z",
"name": "Message A",
"channels": [
"email"
]
},
{
"id": 2,
"name": "Message B",
"channels": [
"push"
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 10
}
<xml>
<data>
<id>1</id>
<updated_user>ivan_ivanov</updated_user>
<update_time>2025-05-21T09:17:53.362Z</update_time>
<name>Message A</name>
<channels>email</channels>
</data>
<data>
<id>2</id>
<name>Message B</name>
<channels>push</channels>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
<total_count>10</total_count>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
total_countintTotal number of templates
idintMessage template ID
namestringTemplate name
channelsarrayChannels for which the template is configured
is_draftboolIf this is a draft, the template cannot be sent.
is_confirmboolIs there a confirmation link in the body of the email or not.
ui_tags[]StringList of tags
groupsarray of objectsList of groups (group ID + group name)
updated_userstringBy whom the scenario was updated
update_timestringWhen the scenario was updated
Last updated on Apr 14, 2022
Previous
Templates and fragments
Next
Get template info
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.