Skip to main content
Answered

Getting: "message": "User Not Found" when trying to merge two contacts that exists in the workspace.


Hello,

 

I am trying to merge contacts leads into users as follow:

 

curl --location --request POST 'https://api.intercom.io/contacts/merge#39; \

--header 'Authorization: Bearer toto=' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json' \

--data-raw '{

  "from": "623f6320f06ce936269f7bd9",

  "to": "6189c5687f416a8308a57a23"

}'

When I try and query for them individually like this:

 

curl --location --request GET 'https://api.intercom.io/contacts/623f6320f06ce936269f7bd9#39; \

--header 'Authorization: Bearer toto=' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json'

 

The API returns the contact (lead or user) that I want to merge.

Also, same result when going through the platform:

 

https://app.intercom.com/a/apps/glsleifc/users/623f6320f06ce936269f7bd9/all-conversations/p>

 

I get the proper profile with associated conversation.

 

Yet, when I want to merge those contacts, every time the API is returning the exact same error:

 

"errors": [

{

"code": "not_found",

"message": "User Not Found"

}

]

 

Example of request IDs: 0005jfdjun8hdl9s8i7g | 0005clbhq0fgr6eviumg

 

We only have one workspace so I'm almost sure it's not the root cause of the problem.

Can someone help me figure out why the mergers are not happening?

 

Thanks a lot in advance!

Best answer by Evan P

Hey @product t14โ€‹ , ๐Ÿ‘‹ thanks for reaching out! I'm one of the Support Engineers here at Intercom!

 

I had a look at the request you are making & I found one error associated with the body of your request. I see you are using "to" when referring to the user you want to merge into. However you have to "into" here. If you modify this you should solve your issue. ๐Ÿ™Œ

 

curl --location --request POST 'https://api.intercom.io/contacts/merge#39; \

--header 'Authorization: Bearer toto=' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json' \

--data-raw '{

  "from": "623f6320f06ce936269f7bd9",

  "into": "6189c5687f416a8308a57a23"

}'

 

I hope this helps clarify. ๐Ÿ˜

 

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

2 replies

  • Active User
  • 32 replies
  • Answer
  • June 27, 2022

Hey @product t14โ€‹ , ๐Ÿ‘‹ thanks for reaching out! I'm one of the Support Engineers here at Intercom!

 

I had a look at the request you are making & I found one error associated with the body of your request. I see you are using "to" when referring to the user you want to merge into. However you have to "into" here. If you modify this you should solve your issue. ๐Ÿ™Œ

 

curl --location --request POST 'https://api.intercom.io/contacts/merge#39; \

--header 'Authorization: Bearer toto=' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json' \

--data-raw '{

  "from": "623f6320f06ce936269f7bd9",

  "into": "6189c5687f416a8308a57a23"

}'

 

I hope this helps clarify. ๐Ÿ˜

 


  • Author
  • New Participant
  • 2 replies
  • June 27, 2022

Hey!

Indeed it was the issue, as simple as that... ๐Ÿ˜ฃ

Thanks a lot for your answer!


Reply


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