curl --request POST \
--url https://api.hubapi.com/contacts/v1/contact/merge-vids/{contact_id}/ \
--header 'Content-Type: application/json' \
--data '
{
"vidToMerge": "<string>"
}
'{
"vidToMerge": 1343774
}Merge two contact records. The contact ID in the URL will be treated as the primary contact, and the contact ID in the request body will be treated as the secondary contact. For more details about what happens when you merge two contact records, please see this knowledge article. Note: Merging contacts cannot be undone. The data from the secondary contact will be merged into the primary contact, and while you can see the combined history of the two records in the resulting single contact, there is not a way to separate the contacts after the merge.
curl --request POST \
--url https://api.hubapi.com/contacts/v1/contact/merge-vids/{contact_id}/ \
--header 'Content-Type: application/json' \
--data '
{
"vidToMerge": "<string>"
}
'{
"vidToMerge": 1343774
}Scope requirements
Unique identifier for a particular contact. In HubSpot's contact system, contact ID's are called "vid".
Unique identifier for the contact to merge into the primary contact.
Successful response - Merge two contact records
The response is of type object.