What is 'identity-profiles' in contact

contacts

#1

Hi,

When sending a get request for Get a contact record by its vid I am getting details of the contact. Inside the API response, I found a field 'identity-profiles' and its have a property 'identities'. My question is what exactly identity-profiles is? What is identities type stand for? What are the type LEAD_GUID, TAG_ID etc? Is there any documentation out there!

Thanks a lot in advance.


Limiting returned data from contacts
#3

Hi @Shakil,

The identity-profiles array contains a record's merge history. See detailed definitions on the Contacts API Overview page.

Below is an example from my portal, where record 96651 with the email timewizard@hubspot.com was merged into record 96601 with the email babydragon@hubspot.com:

"identity-profiles": [
        {
            "vid": 96601,
            "saved-at-timestamp": 1537984282188,
            "deleted-changed-timestamp": 0,
            "identities": [
                {
                    "type": "EMAIL",
                    "value": "babydragon@hubspot.com",
                    "timestamp": 1537984106012,
                    "is-primary": true
                },
                {
                    "type": "LEAD_GUID",
                    "value": "b7125d6f-f0e9-4ad4-a126-75fb072e40c6",
                    "timestamp": 1537984106035
                },
                {
                    "type": "EMAIL",
                    "value": "timewizard@hubspot.com",
                    "timestamp": 1537984127210,
                    "is-secondary": true
                }
            ]
        },
        {
            "vid": 96651,
            "saved-at-timestamp": 1537984282339,
            "deleted-changed-timestamp": 0,
            "identities": [
                {
                    "type": "LEAD_GUID",
                    "value": "c92d5b73-1bae-4beb-89c5-e76aa385669b",
                    "timestamp": 1537984127231
                }
            ]
        }
    ]

#4