> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/rest-apis/customer/merge.md).

# Merge contact

Use this endpoint to merge two or more contacts. The secondary contacts **(mergeIds)** will be merged onto the primary contact (**primary\_contact\_id)**. Merge data includes conversation, chats, notes, views, etc. The primary contact ID in the endpoint URL **(primary\_contact\_id)** is required. Place the secondary\_contact\_ids  in the request body.

**Contact Ids** can be found by going to the Acquire platform and hovering over a contact's name in `Contact List` or by using the endpoint **GET** All Contacts.

If a secondary merge's contact details are different from the primary contact details, both contact details will be preserved on the primary contact profile. For example, if a secondary merge contact has an email that differs from their primary email, both emails will be preserved on the primary contact profile after the merge.

{% hint style="danger" %}
Warning: merges cannot be reverted.
{% endhint %}

## Merge Contact

<mark style="color:green;">`POST`</mark> `https://{{account_id}}.acquire.io/api/v1/crm/contact/merge/{{contactId}}`

#### Path Parameters

| Name                                        | Type    | Description       |
| ------------------------------------------- | ------- | ----------------- |
| contactId<mark style="color:red;">\*</mark> | integer | ID of the contact |

#### Headers

| Name                                            | Type   | Description         |
| ----------------------------------------------- | ------ | ------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{API\_KEY}} |

#### Request Body

| Name                                       | Type    | Description                         |
| ------------------------------------------ | ------- | ----------------------------------- |
| soureIds<mark style="color:red;">\*</mark> | integer | ID of the contact you want to merge |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": {
        "id": 83,
        "message": "#78 contact timeline's merged with #83 successfully."
    }
}
```

{% endtab %}
{% endtabs %}

## Body(raw)

```
{
  "sourceIds": [
    11
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.acquire.io/rest-apis/customer/merge.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
