Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
Пользователям iconПользователям
Разработчикам iconРазработчикам
Администраторам iconАдминистраторам
English
  • Русский
  • English
Login
    User documentation
    Getting Started
    FAQ
    Altcraft glossary
      Profiles and databasesarrow
    • Subscription resources
      Managing databases
      Subscriber profile
      Profiles import and data update
      Scheduled customer data import
      Automatic data collection
      Bulk customers profiles update
      Double opt-in subscription
      Suppression lists
      Profile relations
      Profile history export
      Profile export
      Creating a static segment based on import results
      How to open a CSV file
      Matching
      Types of fields in the database
      Global control groups
      Subscription Manager
      Communication channelsarrow
      • Email channelarrow
      • Email: ISP interactions best practices
        Email: sending domain configuration
        Email: setting up and using postmasters
        Быстрый старт
        Push channelarrow
        • Mobile Pusharrow
        • Settings & implementation
            Integrate your app with Altcraftarrow
          • Providers: push message structure
            Processing and adding a subscription
            Event registration
          Web pusharrow
        • Preliminary Settings
            Web browser push configurationarrow
          • Firebase Cloud messaging
            Apple Safari
            Mozilla Services
          Connecting Web Push to a Website
          Transferring Data to the Platform
          Web Push SDK Methods
            Import of subscriptions from third-party push servicesarrow
          • Migrating push subscriptions from third-party services
            How to transfer push subscriptions configured for Safari?
            Migration from OneSignal
      SMS channel
        Creating mailing from scratcharrow
      • Email
        SMS
        Web Push
        Mobile Push
        WhatsApp
        Viber*™
        Руководство: SMS-рассылка через VK Notify
        MAX Bot
        MAX Group
        Notify
        Telegram Bot
        Telegram Group
      Communication Channels Workflow
      Руководство: SMS-рассылка через УТШ
      Руководство: push-рассылка через сервис от "Согласие"
      Segmentationarrow
    • Static Segments
      Dynamic Segments
      Updatable Segments
        Segmentation Conditionsarrow
      • Segmentation by Profile data
        Segmentation by Interactions with Entities
        Segmentation by Activity of the channel
        Segmentation by external data
        Segmentation by external SQL tables
        Segmentation by Profile structure
      Best Send Time (BST)
      Logical operators "AND" and "OR"
      Recommendations for working with segments
      Message templatesarrow
      • Working with message templatesarrow
      • Working in the editor
        Email-template
        SMS template
        Push template
        MAX template
        Telegram template
        WhatsApp template
        Viber™ template
        Notify template
        Visual editor for email-templatearrow
      • Visual editor interface
        Adding blocks
        Elements and their settings
        Custom blocks
        Style manager
        Layer manager
      Template fragments
      Image gallery
      Content personalization
      Creating tables based on array elements
      Block editor for email template
        Altcraft Variables and Functionsarrow
      • Logical expressions in messages
        Loops in messages
        Market variables in templates
        Using the JSONPath functionality
        Dynamic content in messagesarrow
      • Dynamic HTML content
        Dynamic JSON content
        Content from SQL database in templates
        Dynamic API content
      Importing and exporting a message template
      Importing a template from a third-party service
      Exporting a template from Pixcraft
      Mailingsarrow
    • Mailings calendar
      Broadcast mailings
      Regular mailing
      Trigger mailing
      Multivariate testing
      Mailing testing
      Mailing schedule
      Placement mailing
      Campaignsarrow
    • Working with Campaigns
      Local control groups (LCG)
      Audience expansion
      Audience building
      Automation scenariosarrow
    • Managing scenarios
      Nodes of the scenario
      Classic marketing scenarios
      Step-by-step welcome scenario guide
      Scenario for automatic notification of the manager
      Abandoned cart scenario
      Marketarrow
    • Market settings
        Productsarrow
      • How to create a product manually
        How to import a product from a file
        Scheduled product import
        Product and SKU Segments
        Preparing the YML file
      Orders
      Market variables in message template
      Guide: how to send an order confirmation email
      Loyalty programsarrow
    • Loyalty programs
      Loyalty integration with external systems
      Быстрый старт
      Basic loyalty program use cases
      Order Segments
      Promotion codes
      Reports and analyticsarrow
    • Channel report
      Traffic report
        Summary reportarrow
      • Summary report metrics
      Cohorts report
      Lifetime report
      Funnels report
      Goals report
      Audience growth report
      Click map report
      Loyalty programs report
      Bounces report
      Undeliveries report
      Report on global control groups
      Integrationsarrow
      • Action hooksarrow
      • Altcraft Action Hooks
        Action hooks event types
        Action Hook Message Structure
        JSON batch request (HTTP POST action hook)
        Message to RabbitMQ broker
        Message to RabbitMQ exchanger
        Message to Kafka broker
        Test event
        Integration of third-party services using Albatoarrow
      • Connecting Altcraft to Albato
        Launching the welcome scenario using Albato
        Transmitting event data
        Setting app a trigger mailing
        Event registration
        Google Sheets and Altcraft integration
        AmoCRM and Altcraft integration
      Facebook Ads Manager™
      Google Ads Audiences
      MAX
      Yandex.Audience™
      VK Ads™
      Static segment synchronization
      Yandex AppMetrica™
      Tilda™
      Lpgenerator™
      WhatsApp
      Viber*™ integration
      Integration scope
      Data Transmitted During Synchronization
      Notify
      Weblayersarrow
      • Formsarrow
      • Create a form
        Form constructor
        Appearance
        Actions after form activation
        Data analytics
        Binding data channel and forms
        Conditional logic in forms and surveys
        NPS testing
        Pixelsarrow
      • Goal customer actions and scoring
        Pop-upsarrow
      • Creating and publishing a pop-up
        Setting up a popup in the code editor
        Managing pop-ups manually via script
        Popup analytics
        Guide: pop-up for push subscriptions
        Case: Creating a pop-up with the "Wheel of Fortune" widget
        Basic cases of placing a popup via the Tag Manager
        Tag Managerarrow
      • Configuring and installing Tag Manager
        Trigger types
        Variables types
        Linking a pixel and the Tag manager
      Settingsarrow
    • Account settings
      Custom links
      Virtual senders
      Sending policies
      Audit journal
      Tags FAQ
        Users, groups and accessarrow
      • Two-Factor Authentication (2FA)
        Connectionsarrow
      • Connection to Facebook Ads Manager
        Connection to Google Ads
        Connecting to Yandex.Audience™
        Connection to 360dialog
        Connection to Edna
        Connection to Devino Telecom
        Connection to SMSTraffic
        Connection to VK Ads™
        Connection to MTS OmniChannel
        Custom Authentication Connection
        OAuth2 connection
        Basic Authentication connection
        Token Authentication connection
        Connection to Rapporto
        MAX connection
        Connection to Notify
      Attribute settings
      API requests: where to startarrow
    • Import or update a profile
      Trigger mailing launch
      Engage profile in scenario
      Changelogarrow
    • v2026.1.76
      v2025.4.75
      v2025.4.74
      v2025.3.73
      v2025.2.72
      v2025.1.71
      v2024.4.70
      v2024.3.69
      v2024.2.68.2
      v2024.1.68
    Documentation archive
    library
  • Message templates
  • Importing and exporting a message template

Importing and exporting a message template

Description​

This functionality allows you to upload a message template to the platform or download it to your device. This can be a template for one channel, or for several channels at once. A zip file is used for export and import.

The corresponding buttons are available in the template editing window in the upper right corner:

— template import

— template export

Template import​

To import a template into the platform, click on the icon . Next, click on the download area and select the zip file on your device.

Set up the import:

  1. Select the channels for which you want to import the template (Email, SMS, Push).
  2. Resolve import conflicts. Conflicts arise if the data being imported and the data already stored in the platform are different. The table shows the old and new value. If you want to update the data, check the "Replace" column.

Click Accept to start the import process.

Zip file structure​

A zip file is used for import. The archive must have a certain structure:

<catalog_name>/
<channel_name>/
<fieldname>.<type>
<attach>/
<fileid>/
<filename>
images/
<image_name>
template.json

Structure description:

ElementExampleDescription
<catalog_name>template_newsletterRoot directory. You can use an arbitrary name.
<channel_name>email
sms
push
The directory contains template data for a specific send channel. The directory name must match the channel.

Import of Email, SMS and Push templates is available.

Information about which files can be imported for each channel can be found here.
imagesimage_1.pngDirectory for storing images
template.json—The file contains general data about the template (link to dynamic JSON content, additional settings, fragments and parts).

You will find more detailed information below.

Zip file example​

tip

Starting from version 68, images can be stored either at the same level as the HTML file or in a folder with one of the following names: images, image, img, imgs, pictures, pics. An archive containing such an email template should not include files like text.txt, subject.txt, or template.json, as their presence may cause import errors.

Basic structure for an email channel​

template_123/
email/
html.html
text.txt
subject.txt
images/
image_1.jpeg
template.json

Full structure for all channels​

template_123/
email/
html.html
text.txt
subject.txt
amp.txt
is_amp.txt
is_not_inline.txt
from_email.txt
from_name.txt
replyto_email.txt
replyto_name.txt
attach/
023f-ad8c-4412-9bba-16ac/
attach_file.zip
sms/
sms.txt
add_sms_url_scheme.txt
push/
title.txt
body.txt
click_url.txt
icon.txt
is_rich_push.txt
images/
image_1.jpeg
image_2.jpeg
template.json

Image paths in HTML​

To ensure correct image rendering in an imported template, use relative paths that match the archive structure.

Recommended structure:

template_name
├── email
│ └── html.html
└── images
└── banner.png

Example of a correct path in HTML:

<img src="../images/banner.png" alt="Banner">

Description of fields for each channel​

  • Email
  • SMS
  • Push
FileExampleDescription
html.html
<html>Hello, world!</html>
HTML version of the message
text.txtHello, world!Text version of the message
subject.txtBest books 2022Subject line
amp.txt
<html>Hello, world!</html>
AMP HTML version of the message
is_amp.txtfalseIs there an amp version in the template or not
is_not_inline.txttrueDo not convert CSS to inline
from_email.txtawesome@example.comSender's email
from_name.txtAwesome BooksSender's name
replyto_email.txtreply_awesome@example.comReply-to email
replyto_name.txtAwesome Books
attach (directory)023f-ad8c-4412-9bba-16ac/
   attach_file.pdf
Directory for storing attached files.

It contains additional directories, each containing a separate file.
Arbitrary names can be used to name additional directories.
FileExampleDescription
sms.txtHello, world!Message text
add_sms_url_scheme.txttrueAdd "http://" to links
FileExampleDescription
title.txtBest books 2022Notification title
body.txtHello, world!Notification text
click_url.txthttps://example.com/Click-to-click link
icon.txthttps://example.com/images/test.jpgThe URL where the notification icon is located
is_rich_push.txtfalseUse rich version for push message or not
<platform>.json
<html>Hello, world!</html>
Templated data for a specific browser or OS (when using rich push)

template.json file​

This file contains data that is displayed in the "Options" and "Content" blocks.

template.json example​

template.json
{
"json_url": "https://altkraft.com/example/content.json",
"suppress_id": 1,
"is_unsub_to_supp": true,
"field_overrides": {
"lead": {
"_fname": "client"
}
},
"parts": []
}

Description of fields in template.json​

FieldExampleRequiredDescription
json_url"https://altkraft.com/example/content.json"NoDynamic JSON content URL
suppress_id1NoSuppression list ID
is_unsub_to_supptrueNoAdd unsubscribers to the attached suppression list
field_overrides
{
   "lead": {
      _fname": "Client"
   }
}
NoCustomer data placeholders
parts
[
   {
      "name": "part_1",
      "shortname": "part_1",
      "type": "text",
      "content": ""
   },
   {
      "name": "part_2",
      "shortname": "part_2",
      "type": "text",
      "content": ""
   }
]
NoTemplate parts
tip

You can export any template from your account to get an example of a zip file to import.

Last updated on Aug 13, 2025
Previous
Dynamic API content
Next
Importing a template from a third-party service
  • Description
  • Template import
  • Zip file structure
  • Zip file example
    • Basic structure for an email channel
    • Full structure for all channels
    • Image paths in HTML
  • Description of fields for each channel
  • template.json file
    • template.json example
    • Description of fields in template.json
© 2015 - 2026 Altcraft, LLC. All rights reserved.