Skip to main content
Answered

How to get id of lead merged to user

  • April 19, 2024
  • 1 reply
  • 39 views

Andrii Fedyk

The REST API has a method for merging contacts from lead to user. It works pretty simple:

```

curl -i -X POST https://api.intercom.io/contacts/merge \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Intercom-Version: 2.10' \
  -d '{ "from": "LEAD_ID", "into": "USED_ID" }'

```

Also, lead can be merged to user in the Intercom app.

 

When lead is merged, our integration listen for webhook with topic `contact.merged`. This webhook has an information to what contact the lead was merged, but has a missing part from what lead:

 

```

{
  "type": "notification_event",
  "app_id": "abcdee",
  "data": {
    "type": "notification_event_data",
    "item": {
      "type": "contact",
      "id": "USER_ID",
      "workspace_id": "abcdee",
      "...": "..."
    }
  },
  "links": {},
  "topic": "contact.merged",
  "delivery_status": "pending",
  "delivery_attempts": 1,
  "delivered_at": 0,
  "first_sent_at": 1713533523,
  "created_at": 1713533523,
  "self": null
}

```

 

May you add lead ID to the webhook, so out server know what lead needs to merged on our side.

Thanks!

Best answer by Ebenezer.Laleye

Hi @Andrii Fedyk ! Ebenezer here from Engineering Support👋.

I’ll submit this to the R&D team as a feature request, if this is something that be can do it will be put on future road maps.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+4

Hi @Andrii Fedyk ! Ebenezer here from Engineering Support👋.

I’ll submit this to the R&D team as a feature request, if this is something that be can do it will be put on future road maps.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings