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 API documentation
    API interaction
    Matching
      Profilesarrow
    • Import profile
      Update profile
      Import multiple profiles
      Update multiple profiles
      Add multiple profiles
      Add profile to database
      Quick profile import
      Import profile to RabbitMQ
      Get profile data
      Uploading profiles to a file
      Suspend all database profiles
      Unsuspend all profiles in a database
      Delete profile
      Subscription fields functional update
      Database fields functional update
      Merging multiple profiles
      Unsubscribe profile from resource
      Profile splitting
        Subscriptionsarrow
      • Add or edit subscription
        Get all profile subscriptions
        Get all subscriptions from multiple profiles
        Get profile subscription
        Delete profile subscription
        Restore deleted subscription
        Suspend all subscriptions
        Unsuspend all suspended subscriptions
        Action historyarrow
      • Get profile action history
        Get multiple profiles action history
        Profile relationsarrow
      • Attach relation
        Detach relation
        Modify relation properties
        Overwrite relation properties
        Get profile relations info
        Get profile relations info
      Get data for multiple profiles
      Databasesarrow
    • Get database statistics
      Update statistics on database
      Get database list
      Get database information
      Get database fields
      Database wipe
      Resourcesarrow
    • Get resource statistics
      Update statistics on resource
      Get resources list
      Get resource information
      Get resource subscription fields
      Segmentsarrow
    • Get statistics on resource
      Update statistics on segment
      Add or remove profile
      Get profile data in a static segment
      Create segment
      Update segment
      Get segment information
      Get segments list
      Delete segment
      Suppression listsarrow
    • Create suppression list
      Update suppression list
      Get suppression list info
      Get the list of suppression lists
      Delete suppression list
      Upload suppression list data to file
        Suppression list actionsarrow
      • Check if email is suppressed
        Add email to suppression list
        Add multiple emails to suppression list
        Remove email from suppression list
        Remove all emails from suppression list
        Check if domain is suppressed
        Add domain to suppression list
        Add multiple domains to suppression list
        Remove domain from suppression list
        Remove all domains from suppression list
        Check if phone number is suppressed
        Add phone number to suppression list
        Add multiple phones to suppression list
        Remove phone number from suppression list
        Remove all phone numbers from suppression list
      Templates and fragmentsarrow
    • Get templates list
      Get template info
      Delete template
      Add template
      Update template
      Channel object
      Campaignsarrow
    • Get campaign information
      Get campaign list
      Activate campaign
      Complete campaign
      Deactivate campaign
      Get campaign status
      Mailingsarrow
    • Activate mailing
      Deactivate mailing
      Get mailing list
      Get mailing information
      Get mailing log
      Clone mailing
      Delete mailing
      Get mailing status
        Broadcast mailingsarrow
      • Get broadcasts list
        Get broadcast information
        Create broadcast mailing
        Update broadcast mailing
        Launch a broadcast mailing
        Regular mailingsarrow
      • Get regular mailings list
        Get regular mailing information
        Create regular mailing
        Update regular mailing
        Launch a regular mailing
        Trigger mailingsarrow
      • Get trigger mailings list
        Get trigger mailing information
        Create trigger mailing
        Update trigger mailing
        Trigger launch (API call)
        Profile import + trigger mailing launch
        Task for bulk trigger launch
        Task for bulk profiles import + trigger launch
        Bulk trigger launch
        Bulk profiles import + trigger mailing launch
        Clone a trigger mailing
        Data array
      Automation scenariosarrow
    • Engage profile in scenario
      Import and engage profile in scenario
      Batch import and engage profiles in a scenario
      Task for batch import and engaging profiles in the scenario
      Get scenarios list
      Activate scenario
      Deactivate scenario
      Loyalty Programsarrow
    • Get profile tier in a loyalty program
      Export points transactions
      Expiring points for a period
      Get profile account transactions
      Get trigger promotions list
      Accrue points to a member
      Redeem member points
      Commit temporary transaction
      Preliminary Order Calculation
      Order Confirmation
      Roll back temporary transaction
      Cancel points transaction
      Get points account balance
      Register member in a loyalty program
      Remove member from loyalty program
      Promo codesarrow
    • Import promo codes
      Get promo code information
      Activate promo code
      Update promo code
      Attach promo code
      Detach promo code
      Get all promo codes
      Goalsarrow
    • Goals and goal values registration
      Application push notificationsarrow
    • Processing and adding a subscription
      Add app push events
      Marketarrow
      • Market objectsarrow
      • Order data object
        Product data object
        SKU data object
        Categories array
        Custom fields array
        Ordersarrow
      • Import order and item statuses
        Get orders list
        Delete order
        Get order status
        Update order line status
        Products and SKUarrow
      • Import products, SKUs and categories
        Import SKUs and categories
        Get products list
        Get SKUs list
        Delete products
        Delete SKU
      Analytic reportsarrow
    • Get summary report
      Get soft bounces report
      Get undeliveries report
      SendersDevarrow
    • Get senders list
        Virtual senders (Smart accounts only)arrow
      • Get virtual senders list
        Get virtual sender information
        Clone virtual sender
        Create virtual sender
        Update virtual sender
        Delete virtual sender
      External datatables queriesarrow
      • Segmentation queriesarrow
      • Add segmentation query
        Update segmentation query
        Get segmentation query information
        Get segmentation queries list
        Delete segmentation query
        Template queriesarrow
      • Add template query
        Update template query
        Get template query information
        Get template queries list
        Delete template query
      Objectsarrow
    • AKMTA object
      Content object
      Email rule object
      File object
      Profile data object
      SMS rule object
      Sender object
      Sender types
      Start schedule object
      Subscription object
      Trigger types
      Miscellaneousarrow
    • Upload file
      Get message web version
      Push providers
      Deduplication of requests
      How to send API request with RabbitMQ
      List of gender identifications
      Obtain valid values for fields: browsers, devices, tz, oses, languages
    Importing the API collection in Postman
    List of API endpoints
      SDKarrow
      • mSDKarrow
        • Androidarrow
        • Quick Start
          SDK Functionality
          SDK Configuration
          Public SDK API
            Provider configuration androidarrow
          • Firebase Cloud Messaging
            Huawei Mobile Services
            RuStore
          iOSarrow
        • Quick Start
          SDK Functionality
          SDK Configuration
          Public SDK API
            Provider configurationarrow
          • Apple Push Notification Service
            Firebase Cloud Messaging
            Huawei Mobile Services
          React Native (Android/iOS)arrow
        • Quick Start
          SDK Configuration
          SDK Functionality
          Public SDK API
          Provider setup
        Managing JWT and Role Token
  • Mailings
  • Trigger mailings
  • Get trigger mailing information

Get trigger mailing information

Description​

Retrieves detailed information about a trigger mailing.

Request URL​

Method: POST

https://example.com/api/v1.1/campaigns/triggers/get

Request parameters​

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

Request example​

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

Response example​

  • JSON
  • XML
{
"data": {
"call_url": "trk.test.test.altcraft.com/trg/465ea6fedf0a75fafe1a413943aae3696d95939038311994/<email|md5|xxh>",
"content": [
{
"from_email": "",
"from_name": "",
"message_id": 41,
"replyto_email": "",
"replyto_name": "",
"subject": ""
}
],
"send_channel": "email",
"custom_tracking_domains": [],
"id": 7,
"is_active": true,
"is_random_tracking_prefix": false,
"list_id": 20,
"name": "API call trigger",
"resource_id": 44,
"skip_minutes": 0,
"subid": "API",
"trigger_type": "api_call",
"virtual_sender_id": 98
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<blind_carbon_copy/>
<call_url>http://trk.test.test.altcraft.com:8095/trg/65512f8ec196edd63e50585b4bfd377365512f8ec196edd62f3de6b87e2969e3/
<email|md5|xxh>
</call_url>
<channel>0</channel>
<content>
<from_email/>
<from_name/>
<message_id>8</message_id>
<replyto_email/>
<replyto_name/>
<subject/>
</content>
<custom_tracking_domains/>
<description/>
<for_confirm>false</for_confirm>
<id>12</id>
<is_active>true</is_active>
<is_new_ch>false</is_new_ch>
<is_new_contact>false</is_new_contact>
<is_new_sub>false</is_new_sub>
<is_random_tracking_prefix>false</is_random_tracking_prefix>
<is_status_changed>false</is_status_changed>
<list_id>1</list_id>
<name>New trigger mailing 3</name>
<policy_id>0</policy_id>
<resource_id>4</resource_id>
<send_channel>email</send_channel>
<skip_minutes>0</skip_minutes>
<skip_unique_checking>false</skip_unique_checking>
<start_schedule>
<losers>false</losers>
<profile>false</profile>
<start_hours/>
<start_mdays/>
<start_mins/>
<start_months/>
<start_wdays/>
<start_years/>
<tz/>
</start_schedule>
<sub_cats_filter/>
<sub_fields_filter/>
<subid/>
<subscribe_resource_id>0</subscribe_resource_id>
<trigger_type>api_call</trigger_type>
<unconditional_sending>false</unconditional_sending>
<update_time>2024-02-15T20:45:00.705Z</update_time>
<updated_user>roman</updated_user>
<virtual_sender_id>0</virtual_sender_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
idintTrigger mailing ID
namestringMailing name
is_activeboolMailing active flag
contentJSON arrayMessage template object
trigger_typestringTrigger type.
See below
skip_minutesintWaits for X minutes before mailing launch
resource_idintResource ID
send_channelstringSending channel
for_confirmboolMessages with opt-in link flag
policy_idintSending policy ID
descrstringMailing description
push_sending_modestringPush notification sending mode (push channels only)
attributesobjectAttributes assigned to mailing
Smart settings
virtual_sender_idstringVirtual sender ID
(Smart accounts)
is_random_tracking_prefixboolRandom tracking domain prefix
(Smart accounts)
custom_tracking_domainsJSON arrayTracking domains list
(Smart accounts)
blind_carbon_copyJSON arrayHidden copy email addresses
(Smart accounts)
unconditional_sendingboolSend messages regardless of subscription status
(Smart accounts)

Trigger type parameters​

These parameters depend on trigger type specified for a mailing (trigger_type)

ParameterTypeDescriptionapi_callapi_importactionupdatepixelsubscribe
actionstringAction based trigger typeNoNoYesNoNoNo
update_queryJSON array
NoNoNoYesNoNo
link_namestringMessage link nameNoNoYesNoNoNo
message_idintTemplate IDNoNoYesNoNoNo
list_idintDatabase IDYesYesNoYesNoNo
subscribe_resource_idintResource IDNoNoNoNoNoYes
channelstringTrigger channelNoNoNoNoNoYes
is_new_subboolNew resource triggerNoNoNoNoNoYes
is_new_chboolNew channel triggerNoNoNoNoNoYes
is_new_contactboolNew contact triggerNoNoNoNoNoYes
is_status_changedboolSubscription status change triggerNoNoNoNoNoYes
trigger_statusesarray(int)Subscription status change optionsNoNoNoNoNoYes
pixel_idintPixel IDNoNoNoNoYesNo
pixel_targetstringPixel goalNoNoNoNoYesNo

trigger_type: action​

Represents message action based trigger.

It has 3 additional parameters.

Two of them are: "action": "<action name>" and "message_id": 123. They specify associated message and a message action.

"link_name": "String" property cpecifies link name when "action": "click_sms" or "action": "clicklink_sms".

  • "action": "open" — email opened.
  • "action": "read" — email read
  • "action": "click" — any link clicked in email message
  • "action": "confirm" — opt-in link clicked
  • "action": "click_sms" — any click in SMS message
  • "action": "clicklink" — a specific email link clicked, "link_name": "String"
  • "action": "clicklink_sms" — a specific SMS link clicked, "link_name": "String"

trigger_type: api_import​

Represents API profile import trigger.

Retrieves import database ID "list_id": 32.

trigger_type: pixel​

Represents pixel activation trigger type.

Has two additional parameters:

  • "pixel_id": 64 — Altcraft pixel unique ID.
  • "pixel_target": "Target-name" — Pixel goal name.

trigger_type: update​

Represents profile fields update trigger.

Has two additional parameters:

  • "list_id": 32 — profile database ID.
  • "update_query": {"fieldname": "_postal_code", "fieldtype": "unicode", "operator": "equal", "value": "800028"} — trigger conditions.

Update query​

  • "fieldname": "_postal_code" — field name. Custom fields are used by their custom names. System and default fields have preset names.
  • "fieldtype": "unicode" — data type for custom and default database fields.
  • "operator": "equal" — logical operator.
  • "value": "800028" — value expected by trigger.
  • "submatch": "object_key" — property path. When the value of this property changes, the trigger will fire. Only used with the object and arr_object field types.

Field types​

field types can be the following:

  • unicode — a string of characters or numbers, "a1b2c"
  • int — an integer number, -1234
  • bool — Boolean, true or false
  • date — date in string format, "2000-10-24T00:00:00.000Z"
  • tags — tags, an array of strings, ["T1", "Tag2"]
  • enum — a map composed of key-value pairs {"item_one": 1, "item_two": 2}
  • object — object, {"A": "B", "C": "D"};
  • arr_object — array of objects, [{"A": 1},{"B": 2}]

Query logical operators​

OperatordescriptionLineNumberIPEnumDateBooleanTagsObjectArr_object
"equal"value gets equal++++++---
"not_equal"value gets not equal++++++---
"not_exists_or_empty"value unset or field removed++++++-++
"not_empty_or_exists"value set or field added++++++-++
"tag_added_any"any tag added------+--
"tag_removed_any"any tag removed------+--
"equal_property"if the value of the specified property becomes equal to-------++
"not_equal_property"if the value of the specified property becomes not equal to-------++
"added_element"if a new element is added to the array--------+
"deleted_element"if one of the elements is removed from the array--------+
Last updated on Feb 21, 2024
Previous
Get trigger mailings list
Next
Create trigger mailing
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
  • Trigger type parameters
    • trigger_type: action
    • trigger_type: api_import
    • trigger_type: pixel
    • trigger_type: update
      • Update query
      • Field types
      • Query logical operators
© 2015 - 2026 Altcraft, LLC. All rights reserved.