Skip to main content

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

{
"date_from": "2017-01-01",
"date_to": "2018-01-10",
"format": "json",
"from_id": "0000000000000000.20010101",
"fields": ["CustomNumber", "CustomEnum"],
"limit": 2,
"list_id": 20,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"data": [
{
"xxh": "0000183c20737b7e",
"profile_id": "5c94fbc103e42237764042ef",
"email": "mitzi.jpa2yj@example.com",
"list_id": 1,
"action": "web_version_save",
"count": 1,
"datetime": "2020-01-24T10:30:42Z",
"message_id": 31,
"campaign_id": 180,
"subscriptions": [
{
"resource_id": 1,
"channel": "email",
"email": "mitzi.jpa2yj@example.com",
"priority": 0,
"status": "subscribed"
},
{
"resource_id": 2,
"channel": "email",
"email": "mitzi.jpa2yj@example.com",
"priority": 0,
"status": "subscribed"
}
],
"fields": {
"CustomEnum": 1,
"CustomNumber": 1000000537
}
},
{
"xxh": "0000183c20737b7e",
"profile_id": "5c94fbc103e42237764042ef",
"email": "mitzi.jpa2yj@example.com",
"list_id": 1,
"action": "web_version_save",
"count": 1,
"datetime": "2020-01-24T10:41:27Z",
"message_id": 31,
"campaign_id": 183,
"subscriptions": [
{
"resource_id": 1,
"channel": "email",
"email": "mitzi.jpa2yj@example.com",
"priority": 0,
"status": "subscribed"
},
{
"resource_id": 2,
"channel": "email",
"email": "mitzi.jpa2yj@example.com",
"priority": 0,
"status": "subscribed",
"custom_fields": {
"_browser_name": "Firefox",
"_device_type": "web",
"custom_field_1": "test value"
},
"cats": [
"category_1",
"category_2"
]
}
],
"fields": {
"CustomEnum": 1,
"CustomNumber": 1000000537
}
}
],
"error": 0,
"error_text": "Successful operation",
"next_from_id": "0000183c20737b7e.20200124164531"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
data.actionstringProfile action (Learn more)
data.countintNumber of actions taken in this second
data.datetimestringDate and time of the action
data.emailstringProfile email
data.profile_idstringProfile ID
data.subscriptionsArray of objectsAll profile subscriptions. For the CSV format, it will be presented 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.
data.list_id (db_id)intDatabase ID
data.message_idintMessage template ID
data.xxhstringProfile xxhash ID
next_from_idstringThe first profile in the next batch of the database