Get profile data
Description
Retrieves customer profile data, including database fields and subscriptions.
Request URL
Method: POST
https://example.com/api/v1.1/profiles/get/
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
db_id | int | 1 | Yes | Database ID |
Profile matching mode | ||||
matching | string | "email" "email_profile" "email_sub" "phone" "phone_sub" "profile_id" "push_sub" "custom" "custom_sub" "email_phone" "email_phone_sub" | No, if matched by email | Profile matching mode By default - email |
string | "example@example.com" | "matching":"email" | Email address | |
phone | string | "+79000000000" | "matching":"phone" | Phone number |
profile_id | string | "abcdefghijklmnqrstuvwxyz" | "matching":"profile_id" | Profile ID |
field_name | string | "CRM_ID" | "matching":"custom" | Custom profile data field name |
field_value | int/string | "123420" | "matching":"custom" | Custom profile data field value. tip Searching by combination of tags is available for tag type profile fields. Values are recorded as a string: "tag-1, tag-2". |
resource_id | int | 24 | No | Resource ID for email and phone matching |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"db_id": 1,
"email": "example@example.com"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<db_id>1</db_id>
<email>example@example.com</email>
</xml>
Response example
- JSON
- XML
{
"data": {
"LOYALTY_SCORE": 500,
"New_field_7": "00016",
"_acid": "FBFLR5Z8BxgvNPxBJZgL",
"_bdate": "1990-07-06T11:15:25.526Z",
"_browser": "Chrome",
"_city": "Beijing",
"_click_exist": false,
"_click_push_exist": false,
"_click_sms_exist": false,
"_confirm_exist": false,
"_country": "CN",
"_createtime": "2024-04-08T10:48:05.418Z",
"_deliv_date": "2024-04-18T10:18:29.809Z",
"_deliv_exist": true,
"_deliv_push_exist": false,
"_deliv_sms_date": "2024-05-06T10:00:05.548Z",
"_deliv_sms_exist": true,
"_domaingroup": "other",
"_emaildomain": "example.com",
"_fname": "Christopher",
"_ip": "106.12.21.70",
"_is_desktop": true,
"_is_test": true,
"_lat": 34.7732,
"_lname": "Lambert",
"_lon": 113.722,
"_md5": "1118e73b34d3f9a9030b9e4da6dcfb29",
"_open_date": "2024-04-18T10:18:29.727Z",
"_open_exist": true,
"_open_push_exist": false,
"_os": "Windows 10",
"_pixel_open_exist": false,
"_platform": "Other",
"_postal_code": "17",
"_ps_wf": [
12,
11,
10
],
"_ps_wfs": [
{
"di": "2024-04-08T10:48:07.093Z",
"do": "2024-04-13T10:48:22.359Z",
"et": "",
"ln": 8,
"s": 1,
"wId": 12
},
{
"di": "2024-04-08T19:35:04.15Z",
"do": "2024-04-12T19:37:19.821Z",
"et": "",
"ln": 8,
"s": 1,
"wId": 11
},
{
"di": "2024-04-16T14:42:49.063Z",
"do": "2024-04-17T14:42:52.438Z",
"et": "",
"ln": 8,
"s": 1,
"wId": 10
}
],
"_read_date": "2024-04-18T10:18:29.727Z",
"_read_exist": true,
"_regdate": "2024-04-08T10:48:05.418Z",
"_region": "Beijing",
"_reply_exist": false,
"_send_date": "2024-04-10T09:32:06.275960407Z",
"_send_exist": true,
"_send_push_exist": false,
"_send_sms_date": "2024-04-12T12:17:05.995339508Z",
"_send_sms_exist": true,
"_sex": 1,
"_status": 0,
"_subscribetime": "2024-04-08T10:48:05.418Z",
"_tz": "Asia/Shanghai",
"_undeliv_date": "2024-04-17T11:49:42.098Z",
"_undeliv_exist": true,
"_updatetime": "2024-04-19T14:25:22.185Z",
"_xxh": "5ce324d8407a8e2b",
"_xxm": 8507,
"db_id": 1,
"email": "example@example.com",
"id": "6613cb65dc4594c2934db63f",
"phones": [
"+79568150396"
],
"subscriptions": [
{
"resource_id": 24,
"channel": "email",
"email_data": {
"email": "example@example.com",
"domain": "example.com",
"domain_group": "other",
"md5": "1118e73b34d3f9a9030b9e4da6dcfb29"
},
"priority": 0,
"status": "unsubscribed",
"reg_info": {
"date": "2024-04-10T09:28:55.743Z"
},
"hash_id": "4a3c5813",
"is_delete": false
},
{
"resource_id": 25,
"channel": "sms",
"phone_data": {
"phone": "+79568150396",
"md5": "06ec7f059dae6f002d06a2f62a4320d8"
},
"priority": 0,
"status": "subscribed",
"reg_info": {
"date": "2024-04-12T12:16:44.086Z"
},
"hash_id": "f67a97c1",
"is_delete": false
}
],
"unsub": {
"c": 115,
"dt": "2024-04-18T10:18:29.727Z",
"m": 15
}
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<CRM_ID>66</CRM_ID>
<LOYALTY_SCORE>500</LOYALTY_SCORE>
<_acid>HWbGhUN1jKAdY8iNjdYf</_acid>
<_browser>Chrome</_browser>
<_city>St Petersburg</_city>
<_click_exist>false</_click_exist>
<_click_push_exist>false</_click_push_exist>
<_click_sms_exist>false</_click_sms_exist>
<_confirm_exist>false</_confirm_exist>
<_country>RU</_country>
<_createtime>2024-04-08T10:24:09.087Z</_createtime>
<_deliv_date>2024-05-06T10:00:06.623Z</_deliv_date>
<_deliv_exist>true</_deliv_exist>
<_deliv_push_exist>false</_deliv_push_exist>
<_deliv_sms_date>2024-05-06T10:00:05.274Z</_deliv_sms_date>
<_deliv_sms_exist>true</_deliv_sms_exist>
<_domaingroup>other</_domaingroup>
<_emaildomain>example.com</_emaildomain>
<_fname>Alina</_fname>
<_ip>92.53.90.8</_ip>
<_is_desktop>true</_is_desktop>
<_is_mobile>true</_is_mobile>
<_is_test>true</_is_test>
<_lat>59.939095</_lat>
<_lname>Lambert</_lname>
<_lon>30.315868</_lon>
<_md5>c5278382ce8972b4cd23b447c0e58989</_md5>
<_open_date>2024-05-06T10:00:06.481Z</_open_date>
<_open_exist>true</_open_exist>
<_open_push_exist>false</_open_push_exist>
<_os>Windows 10</_os>
<_pixel_open_exist>false</_pixel_open_exist>
<_platform>Other</_platform>
<_postal_code>1042</_postal_code>
<_ps_wf>12</_ps_wf>
<_ps_wf>11</_ps_wf>
<_ps_wfs>
<di>2024-04-08T10:24:10.069Z</di>
<do>2024-04-19T10:24:43.381Z</do>
<et/>
<ln>8</ln>
<s>1</s>
<wId>12</wId>
</_ps_wfs>
<_ps_wfs>
<di>2024-04-08T19:35:04.091Z</di>
<do>2024-04-18T19:37:37.428Z</do>
<et/>
<ln>8</ln>
<s>1</s>
<wId>11</wId>
</_ps_wfs>
<_read_date>2024-05-06T10:00:06.481Z</_read_date>
<_read_exist>true</_read_exist>
<_regdate>2024-04-08T10:24:09.087Z</_regdate>
<_region>Saint Petersburg</_region>
<_reply_exist>false</_reply_exist>
<_sbounce_date>2024-04-28T10:00:03.452Z</_sbounce_date>
<_sbounce_exist>true</_sbounce_exist>
<_send_date>2024-04-10T09:32:05.531223661Z</_send_date>
<_send_exist>true</_send_exist>
<_send_push_exist>false</_send_push_exist>
<_send_sms_date>2024-04-18T11:14:02.172438444Z</_send_sms_date>
<_send_sms_exist>true</_send_sms_exist>
<_status>0</_status>
<_subscribetime>2024-04-08T10:24:09.087Z</_subscribetime>
<_tz>Europe/Moscow</_tz>
<_undeliv_date>2024-04-17T11:49:39.091Z</_undeliv_date>
<_undeliv_exist>true</_undeliv_exist>
<_undeliv_sms_date>2024-04-22T10:00:02.62Z</_undeliv_sms_date>
<_undeliv_sms_exist>true</_undeliv_sms_exist>
<_updatetime>2024-04-18T12:36:31.7Z</_updatetime>
<_xxh>507a01069df7046e</_xxh>
<_xxm>7902</_xxm>
<db_id>1</db_id>
<email>example@example.com</email>
<id>6613c5c94a5d12bd6cc09171</id>
<phones>+79006574081</phones>
<subscriptions>
<channel>email</channel>
<email_data>
<domain>example.com</domain>
<domain_group>other</domain_group>
<email>example@example.com</email>
<md5>c5278382ce8972b4cd23b447c0e58989</md5>
</email_data>
<hash_id>fcc69fe5</hash_id>
<is_delete>false</is_delete>
<priority>0</priority>
<reg_info>
<date>2024-04-10T09:28:55.706Z</date>
</reg_info>
<resource_id>24</resource_id>
<status>subscribed</status>
</subscriptions>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
data | JSON object | Profile data |
error | int | Error code |
error_text | string | Error text |