Merge two contacts

Example Request & Response

$ curl https://api.intercom.io/contacts/merge \\\n-X POST \\\n-H 'Authorization:Bearer <Your access token>' \\\n-H 'Accept:application/json'\n-H 'Content-Type: application/json' -d\n\n{\n  \"from\": \"5d70dd30de4efd54f42fd526\",\n  \"into\": \"5ba682d23d7cf92bef87bfd4\"\n}\n

Example Errors

HTTP/1.1 404 FOUND\n{\n  \"type\": \"error.list\",\n  \"request_id\": \"9a3d0816-9707-4598-977e-c009ba630148\",\n  \"errors\": [\n    {\n      \"code\": \"not_found\",\n      \"message\": \"Contact Not Found\"\n    }\n  ]\n}\n
HTTP/1.1 400 UNPROCESSABLE ENTITY\n{\n  \"type\": \"error.list\",\n  \"request_id\": \"0019c4t1derm7namdon0\",\n  \"errors\": [\n    {\n      \"code\": \"invalid_merge\",\n      \"message\": \"Merging can only be performed on a lead into a user\"\n    }\n  ]\n}\n

You can merge a contact with a role of lead into a contact with a role of user.

What happens upon a contact being merged?

The contact that's specified as from will be deleted after being merged into the contact specified as into. Attributes that don't exist on the contact specified as into will be copied over.

Request Body Parameters

ParameterTypeRequiredDescription
fromStringYesThe unique identifier for the contact to merge away from. Must be a lead.
intoStringYesThe unique identifier for the contact to merge into. Must be a user.

Response

This will return a Contact model for the contact who's been merged into.