younifyd
Menu

List Contact Merge History

Get contact merge history

GET/contacts/{id}/merge_history

Use it in a workflow

  1. Add a step and choose the Intercom connector.
  2. Pick the List Contact Merge History action (under Contacts).
  3. Fill in the fields below, then reference the result from later steps as {{listContactMergeHistory.response.data}}.

Request

Path parameters

idstringrequired

The id of the contact to fetch merge history for.

Query parameters

cursorstring

A cursor for pagination. Pass the `next_cursor` value from a previous response to fetch the next page.

per_pageinteger

The number of results to return per page (default 50, max 150).

Default 50

orderstring

The order to return results in. Defaults to descending.

One ofascdesc

Headers

Intercom-Versionstring

Intercom API version.</br>By default, it's equal to the version set in the app package.

One of1.01.11.21.31.42.02.12.22.32.42.52.62.72.82.92.102.112.122.132.142.152.16Default "2.16"

Response

Returns 200 with an object. Read it in later steps with {{listContactMergeHistory.response.data.<field>}}.

typestring

The type of object.

One oflist

dataarray<object>

An array of merge history entries.

typestring

The type of object.

source_contact_idstring

The Intercom ID of the contact that was merged into this contact.

source_contact_rolestring

The role of the contact that was merged in.

One ofleaduser

merged_atinteger (date-time)

(Unix timestamp in seconds) The time when the merge occurred.

next_cursorstring

A cursor to pass as the `cursor` query parameter to fetch the next page of results. Absent when there are no more pages.

has_moreboolean

Whether there are more results to fetch.

json
{
  "type": "list",
  "data": [
    {
      "type": "merge_history",
      "source_contact_id": "5ba682d23d7cf92bef87bfd3",
      "source_contact_role": "lead",
      "merged_at": 1571672154
    }
  ],
  "next_cursor": "WyIxNjM0NTY3ODkwIl0",
  "has_more": false
}

Need more? See the Intercom guide for connection setup and behaviour shared by every action.