Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    User documentationGetting StartedFAQAltcraft glossary
      Profiles and databasesarrow
    • Subscription resourcesManaging databasesSubscriber profileProfiles import and data updateScheduled customer data importAutomatic data collectionBulk customers profiles updateDouble opt-in subscriptionSuppression listsProfile relationsProfile history exportProfile exportCreating a static segment based on import resultsHow to open a CSV fileMatchingTypes of fields in the databaseGlobal control groupsSubscription Manager
      Communication channelsarrow
      • Email channelarrow
      • Email: ISP interactions best practicesEmail: sending domain configurationEmail: setting up and using postmastersБыстрый старт
        Push channelarrow
        • Mobile Pusharrow
        • Settings & implementation
            Integrate your app with Altcraftarrow
          • Providers: push message structureProcessing and adding a subscriptionEvent registration
          Web pusharrow
        • Preliminary Settings
            Web browser push configurationarrow
          • Firebase Cloud messagingApple SafariMozilla Services
          Connecting Web Push to a WebsiteTransferring Data to the PlatformWeb Push SDK Methods
            Import of subscriptions from third-party push servicesarrow
          • Migrating push subscriptions from third-party servicesHow to transfer push subscriptions configured for Safari?Migration from OneSignal
      SMS channel
        Creating mailing from scratcharrow
      • EmailSMSWeb PushMobile PushWhatsAppViber*™Руководство: SMS-рассылка через VK NotifyMAX BotMAX GroupNotifyTelegram BotTelegram Group
      Communication Channels WorkflowРуководство: SMS-рассылка через УТШРуководство: push-рассылка через сервис от "Согласие"
      Segmentationarrow
    • Static SegmentsDynamic SegmentsUpdatable Segments
        Segmentation Conditionsarrow
      • Segmentation by Profile dataSegmentation by Interactions with EntitiesSegmentation by Activity of the channelSegmentation by external dataSegmentation by external SQL tablesSegmentation 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 editorEmail-templateSMS templatePush templateMAX templateTelegram templateWhatsApp templateViber™ templateNotify template
        Visual editor for email-templatearrow
      • Visual editor interfaceAdding blocksElements and their settingsCustom blocksStyle managerLayer manager
      Template fragmentsImage galleryContent personalizationCreating tables based on array elementsBlock editor for email template
        Altcraft Variables and Functionsarrow
      • Logical expressions in messagesLoops in messagesMarket variables in templatesUsing the JSONPath functionality
        Dynamic content in messagesarrow
      • Dynamic HTML contentDynamic JSON contentContent from SQL database in templatesDynamic API content
      Importing and exporting a message templateImporting a template from a third-party serviceExporting a template from Pixcraft
      Mailingsarrow
    • Mailings calendarBroadcast mailingsRegular mailingTrigger mailingMultivariate testingMailing testingMailing schedulePlacement mailing
      Campaignsarrow
    • Working with CampaignsLocal control groups (LCG)Stratification Violation ErrorAudience expansionAudience building
      Automation scenariosarrow
    • Managing scenariosNodes of the scenarioClassic marketing scenariosStep-by-step welcome scenario guideScenario for automatic notification of the managerAbandoned cart scenario
      Marketarrow
    • Market settings
        Productsarrow
      • How to create a product manuallyHow to import a product from a fileScheduled product importProduct and SKU SegmentsPreparing the YML file
      OrdersMarket variables in message templateGuide: how to send an order confirmation email
      Loyalty programsarrow
    • Loyalty programsLoyalty integration with external systemsБыстрый стартBasic loyalty program use casesOrder SegmentsPromotion codes
      Reports and analyticsarrow
    • Channel reportTraffic report
        Summary reportarrow
      • Summary report metrics
      Cohorts reportLifetime reportFunnels reportGoals reportAudience growth reportClick map reportLoyalty programs reportBounces reportUndeliveries reportReport on global control groups
      Integrationsarrow
      • Action hooksarrow
      • Altcraft Action HooksAction hooks event typesAction Hook Message StructureJSON batch request (HTTP POST action hook)Message to RabbitMQ brokerMessage to RabbitMQ exchangerMessage to Kafka brokerTest event
        Integration of third-party services using Albatoarrow
      • Connecting Altcraft to Albato Launching the welcome scenario using AlbatoTransmitting event dataSetting app a trigger mailingEvent registrationGoogle Sheets and Altcraft integration AmoCRM and Altcraft integration
      Facebook Ads Manager™Google Ads AudiencesMAXYandex.Audience™VK Ads™Static segment synchronizationYandex AppMetrica™Tilda™Lpgenerator™WhatsAppViber*™ integrationIntegration scopeData Transmitted During SynchronizationNotify
      Weblayersarrow
      • Formsarrow
      • Create a formForm constructorAppearanceActions after form activationData analyticsBinding data channel and formsConditional logic in forms and surveysNPS testing
        Pixelsarrow
      • Goal customer actions and scoring
        Pop-upsarrow
      • Creating and publishing a pop-upSetting up a popup in the code editorManaging pop-ups manually via scriptPopup analyticsGuide: pop-up for push subscriptionsCase: Creating a pop-up with the "Wheel of Fortune" widgetBasic cases of placing a popup via the Tag Manager
        Tag Managerarrow
      • Configuring and installing Tag ManagerTrigger typesVariables typesLinking a pixel and the Tag manager
      Settingsarrow
    • Account settingsCustom linksVirtual sendersSending policiesAudit journalTags FAQ
        Users, groups and accessarrow
      • Two-Factor Authentication (2FA)
        Connectionsarrow
      • Connection to Facebook Ads ManagerConnection to Google AdsConnecting to Yandex.Audience™Connection to 360dialogConnection to EdnaConnection to Devino TelecomConnection to SMSTrafficConnection to VK Ads™Connection to MTS OmniChannelCustom Authentication ConnectionOAuth2 connectionBasic Authentication connectionToken Authentication connectionConnection to RapportoMAX connectionConnection to Notify
      Attribute settings
      API requests: where to startarrow
    • Import or update a profileTrigger mailing launchEngage profile in scenario
      Changelogarrow
    • v2026.1.76v2025.4.75v2025.4.74v2025.3.73v2025.2.72v2025.1.71v2024.4.70v2024.3.69v2024.2.68.2v2024.1.68
    Documentation archivelibrary
  • Profiles and databases
  • Types of fields in the database

Types of fields in the database

Default database fields​

This table provides a list of default database fields, their API matches, data types, and examples of values that can be used.

Field in the databaseField name in the APIField type in the UIThe type of the field in the APIExample of the value
EmailemailLine/Emailstring"example@example.com"
PhonesphonesPhone listarray["+79001234567"]
Name_fnameLinestring"John"
Last name_lnameLinestring"Doe"
Date of birth_bdateDatestring"2001-12-31"
"2001-12-31T00:00+03:00"

The time can only be transmitted via the API.
Gender_sexEnumstring"male"
"female"
Date of reg._regdateDatestring"2023-12-31"
"2023-12-31T23:59:59+03:00"
The IP address of the reg._regipIPstring"127.0.0.1"
City reg._regcityLinestring"Moscow"
Country reg._regcountryLinestring"Russian Federation"
"RU"
Link reg._regurlLinestring"https://example.com"
IP address_ipIPstring"127.0.0.1"
City_cityLinestring"Moscow"
Country_countryLinestring"Russian Federation"
"RU"
Region_regionLinestring"Europe/Moscow"
Index_postal_codeLinestring"190000"
Time zone_tzLinestring"Europe/Moscow"
Supplier_vendorLinestring"form #30"

Custom database fields​

The type of field determines which operators will be available in segments and in dynamic template variables, so we recommend carefully choosing the type of additional field in the database.

Field type in UIField type in APIExample of the value
Integerint100
Floatfloat100.5
Linestring"string value"
Datestring"2024-05-27T12:00:00Z"
Booleanbooleantrue
false
Enumstring"Option 1"

You can also pass a value as a number, for example, 1. The number corresponds to the ordinal number of the item in the list.
IPstring"127.0.0.1"
Tagsarray["Tag 1", "Tag 2", "Tag 3" ]
Objectobject{ "key_1": { "sub_key": "sub_value" } }
Array of objectsarray of objects[ { "key_1": "value_1" }, { "key_2": "value_2" } ]
info

When API importing or updating fields with the "Tags" type, their values will be overwritten, not added to the existing ones. To add new values without deleting old ones, use functional update.

Acceptable formats and restrictions​

The platform expects certain value formats for each type of field. Make sure that the imported data meets the specified requirements, otherwise the system will not be able to process them correctly.

  • Email — the format must comply with RFC standards. A regular expression is used for validation:
^[-a-z0-9!#$%&'*+/=?^_{|}~]+(\.[-a-z0-9!#$%&'*+/=?^_{|}~]+)*@((?:localhost|([a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?\.)*([a-z]{1,24})))$
  • Phones — the number must correspond to the international format (without spaces, hyphens and other separators, except for the plus sign at the beginning). More information about the standard can be found in this article.

  • Dates — are recorded in the format RFC 3339 (ISO 8601) indicating the time zone.

  • Country — accepted as a two-letter code ISO 3166-1 alpha-2 or the full name (in any case).

  • Gender — acceptable values are described in this article.

  • Provider — the length of the string is no more than 26 characters.

  • IP — IPv4 format.

  • Line — it is not recommended to store more than 100 KB of text in one field.

  • Objects and arrays of objects — you can write only peer-to-peer objects or peer objects nested in other objects. If you are using objects with a more complex structure, connect the SQL database and create queries to select profiles. In object field names, only Latin letters (in any case), digits from 0 to 9, the underscore _, and the hyphen - are allowed.Data type. You can store data of type int, float, string, boolean in the Object Array or Object fields.

  • The limit on the amount of data of one profile in the database is 16 MB, including all metadata. However, it is not recommended to store a total of more than 2 MB in additional profile fields.

Matching of database fields and form elements​

If you are configuring profile data import from form fields to database fields, make sure that you are using the correct field type for each form element.

Form elementField in the database
Short textCustom field with the "String" type
EmailDefault "Email" field
Phone numberDefault field "Phones"
Long textCustom field with the "String" type
NumberCustom field with the "Integer" type
Yes/NoCustom field with the "Boolean" type
One choiceCustom field with the "String" type
Multiple choiceCustom field with the "Tags" type
Drop-down listCustom field with the "Tags" type
DateDefault or custom field with the "Date" type
RangeCustom field with the "Integer" type
note

Although you can write all user data in string fields, this will limit the possibilities for further segmentation. For example, if the date is written in a string field, you will not be able to use the comparison operators "date less" or "date more" in segments or templates.

Last updated on Sep 20, 2024
Previous
Matching
Next
Global control groups
  • Default database fields
  • Custom database fields
  • Acceptable formats and restrictions
  • Matching of database fields and form elements
© 2015 - 2026 Altcraft, LLC. All rights reserved.