Skip to main content

Get profile action history

Description

Retrieves a single profile action history.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
list_idInt20YesDatabase ID
xxhstring"0eb51aefd919f90a"No, of you use matching for searchxx hash profile ID
matchingstring"email"
"email_profile"
"email_sub"
"phone"
"phone_sub"
"profile_id"
"push_sub"
"custom"
"custom_sub"
"email_phone"
"email_phone_sub"
No, of you use xxh for searchProfile matching mode
By default — email

For each type of matching, certain fields must be passed in the request body. Learn more about these fields here.
date_fromstring"2016-11-25"NoTime period start
YYYY-MM-DD
date_tostring"2016-11-29"NoTime period end
YYYY-MM-DD

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"list_id": 20,
"xxh": "0eb51aefd919f90a"
}

Response example

{
"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"
}

Response parameters

ParameterTypeDescription
datastringAn array of received data regarding events in the profile history
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.
errorintError code
error_textstringError message

Profile history events (action)

Email channel events
sendEmail sent
delivEmail delivered
undelivEmail not delivered
openEmail opened
readEmail read. The message was opened by the user for 8 seconds or more
clickEmail clicked. Registered when the user clicks a link in the email. Each link click is registered as a separate click event, so if a profile clicks on two different links in the same email, two click events will be recorded.
confirmClick on the subscription confirmation link in the email (confirm-link)
subscribe_emailSubscribed to the Email channel of the resource
unsubscribe_emailUnsubscribed from the Email channel of the resource
replyReceived a reply to the Email
complainReceived a Complain status
hbounceReceived a Hard Bounce status
SMS channel events
send_smsSMS message sent to the gateway for subscriber delivery
deliv_smsSMS message delivered
undeliv_smsSMS message not delivered
click_smsNon-unique click on the link in the SMS message
subscribe_smsSubscribed to the SMS channel of the resource
unsubscribe_smsUnsubscribed from the SMS channel of the resource
Push channel events
send_pushPush sent
deliv_pushPush delivered
open_pushNon-unique opening of the push message
click_pushClick on the Push message
undeliv_pushPush message not delivered
subscribe_pushSubscribed to the Push channel of the resource
unsubscribe_pushUnsubscribed from the Push channel of the resource
Telegram Bot Channel Events
telegram_bot_sendTelegram bot event: Telegram bot sent
telegram_bot_delivTelegram bot event: Telegram bot delivered
telegram_bot_undelivTelegram bot event: Telegram bot not delivered
telegram_bot_clickTelegram bot event: Telegram bot click
telegram_bot_subscribeTelegram bot event: Telegram bot subscription
WhatsApp* channel events
whatsapp_sendMessage sent for delivery to the WhatsApp* chat
whatsapp_delivMessage delivered to the WhatsApp* chat
whatsapp_undelivMessage not delivered to the WhatsApp* chat
whatsapp_clickNon-unique click on the link in the WhatsApp* chat message
whatsapp_readMessage read by the user
whatsapp_subscribeWhatsApp* channel event: WhatsApp* subscription
Viber channel events
viber_sendMessage sent for delivery to the Viber chat
viber_delivMessage delivered to the recipient
viber_undelivMessage not delivered, rejected by Viber or Devino.Online
viber_clickClick on the link in the message. If the recipient clicks on the same link several times, each click event is recorded.
viber_readMessage read by the user
viber_subscribeViber channel event: Viber subscription
Events for all channels
offenceMessage not sent due to sending policy restrictions
suppressMessage not sent by the campaign because the profile is on the stop list
Subscriber Profile Import Events
import_manualProfile created manually
import_apiProfile created by API import
import_fileProfile created by import from a file
import_formProfile created by import from a form
import_pushProfile created as a result of push import
import_popupProfile created by import via popup
Unsubscribe Events
unsub_apiSubscriber unsubscribed from emails via API
unsub_manualUnsubscribed manually (global profile status changed to "Unsubscribed")
Pixel events
pixel_openGoal achieved
Promo codes events
promocode_attachPromo code attached
promocode_detachPromo code detached
promocode_activatePromo code activated
Segment events
segs_addEntered a static segment
segs_removeExited a static segment
Profile Relationship Events
rel_attachProfile receives a connection with another profile
rel_detachProfile loses a connection with another profile
rel_strengthenWeight of the connection between profiles increases
Form Events
form_loadForm loaded
form_page_showForm page loaded
form_postForm filled and submitted
form_abandon Form abandoned. The profile loads the form page and does not close it for an hour, without submitting the form.
form_bounceError in filling out the form (attempted re-filling, technical issues, etc.)

*The Meta organization, which owns Instagram, Facebook and WhatsApp products, has been declared as extremist and banned in Russia.