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
    • 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
    • Subscriptions
    • Action history
      • Get profile action history
      • Get multiple profiles action history
    • Profile relations
    • Get data for multiple profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
  • 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).
  • Profiles
  • Action history
  • Get multiple profiles action history
Documentation for version v72

Get multiple profiles action history

Description​

Retrieves multiple profiles action history.

Request URL​

Method: POST

https://example.com/api/v1.1/subscribers/history_get_all

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
list_idint20YesDatabase ID
from_idstring"005a06ded879ecd7.20170406"NoThe first profile in response (xxhash)
limitint300NoResponse profiles array limit
By default - 1000
date_fromstring"2016-11-25"YesTime period start
YYYY-MM-DD
date_tostring"2016-11-29"YesTime period end
YYYY-MM-DD
fieldsstring array["CustomID"]NoReturns a field ( fields ) with profile data from the listed fields in the response. For CSV format, it will be represented as a JSON string.

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"list_id": 4,
"limit": 3,
"date_from": "2024-07-15",
"date_to": "2024-10-09",
"format": "json",
"from_id": "",
"fields": [
"CustomNumber",
"CustomEnum"
]
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<list_id>4</list_id>
<limit>3</limit>
<date_from>2024-07-15</date_from>
<date_to>2024-10-09</date_to>
<format>xml</format>
<from_id></from_id>
<fields>CustomNumber</fields>
<fields>CustomEnum</fields>
</xml>

Response example​

  • JSON
  • XML
{
"data": [
{
"xxh": "9202595093f237d4",
"profile_id": "66f66973096b3b454bbbccec",
"email": "example@example.com",
"list_id": 66,
"action": "send",
"count": 1,
"datetime": "2024-09-27T15:52:57.004Z",
"message_id": 5,
"campaign_id": 137,
"event_id": "66f6aaa9da00a9db1c0b2683",
"smid": "uBAhiRBRQhARg7y489hr5F2b2aXMJaztFS7vM7DE1NGJhZWM5",
"campaign_name": "New astral campaign",
"message_name": "testing",
"subscription": {
"resource_id": 5,
"resource_name": "res1",
"channel": "email",
"email": "sub1@yandex.ru",
"priority": 0,
"status": "subscribed",
"custom_fields": {
"_device_type": "other"
},
"cats": []
},
"channel": "email",
"subscriptions": [
{
"resource_id": 5,
"resource_name": "res1",
"channel": "email",
"email": "sub1@yandex.ru",
"priority": 0,
"status": "subscribed",
"custom_fields": {
"_device_type": "other"
},
"cats": []
},
{
"resource_id": 5,
"resource_name": "res1",
"channel": "email",
"email": "sub2@yandex.ru",
"priority": 0,
"status": "subscribed",
"custom_fields": {
"_device_type": "mob"
},
"cats": []
}
]
}
],
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<item>
<xxh>9202595093f237d4</xxh>
<profile_id>66f66973096b3b454bbbccec</profile_id>
<email>example@example.ru</email>
<list_id>66</list_id>
<action>send</action>
<count>1</count>
<datetime>2024-09-27T15:52:57.004Z</datetime>
<message_id>5</message_id>
<campaign_id>137</campaign_id>
<event_id>66f6aaa9da00a9db1c0b2683</event_id>
<smid>uBAhiRBRQhARg7y489hr5F2b2aXMJaztFS7vM7DE1NGJhZWM5</smid>
<campaign_name>New astral campaign</campaign_name>
<message_name>testing</message_name>
<subscription>
<resource_id>5</resource_id>
<resource_name>res1</resource_name>
<channel>email</channel>
<email>sub1@yandex.ru</email>
<priority>0</priority>
<status>subscribed</status>
<custom_fields>
<_device_type>other</_device_type>
</custom_fields>
<cats/>
</subscription>
<channel>email</channel>
<subscriptions>
<subscription>
<resource_id>5</resource_id>
<resource_name>res1</resource_name>
<channel>email</channel>
<email>sub1@yandex.ru</email>
<priority>0</priority>
<status>subscribed</status>
<custom_fields>
<_device_type>other</_device_type>
</custom_fields>
<cats/>
</subscription>
<subscription>
<resource_id>5</resource_id>
<resource_name>res1</resource_name>
<channel>email</channel>
<email>sub2@yandex.ru</email>
<priority>0</priority>
<status>subscribed</status>
<custom_fields>
<_device_type>mob</_device_type>
</custom_fields>
<cats/>
</subscription>
</subscriptions>
</item>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
datastringAn array of received data regarding events in the history of profiles
data.xxhstringProfile xxhash ID
data.profile_idstringProfile ID
data.emailstringProfile email
data.list_id (db_id)intDatabase ID
data.actionstringProfile action (More details)
data.countintNumber of actions taken in this second
data.datetimestringDate and time of the action in RFC 3339 (ISO 8601) format
data.message_idintMessage template ID

Returns 0 if the action does not involve using a template.
data.campaign_idintCampaign ID

Returns 0 if the action does not involve using a campaign.
data.event_idstringEvent ID
data.smidstringUnique identifier of the send within the campaign

Returns an empty string if the action does not involve sending a message.
data.campaign_namestringName of the campaign

Returns an empty string if the action does not involve using a campaign.
data.message_namestringName of the message template

Returns an empty string if the action does not involve using a template.
data.subscriptionstringObject containing information about the subscription under which the sending was performed
data.channelstringCommunication channel in which the event was recorded.

Returns an empty string if the channel is not involved.
data.subscriptionsarray of objectsAll subscriptions of the profile. For CSV format, it will be represented as a JSON string.
data.fieldsobjectAdditional profile fields specified in the fields parameter of the request. For the CSV format, it will be presented as a JSON string.
next_from_idstringThe first profile in the next batch of the databas
errorintError code
error_textstringError message
Last updated on May 16, 2024
Previous
Get profile action history
Next
Profile relations
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.