# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
