Skip to main content
Answered

Creating a conversation from a visitor returning an error "Lead Not Found"

  • May 17, 2022
  • 1 reply
  • 116 views

Hello!

I am trying to create a conversation from a visitor per the doc: https://developers.intercom.com/intercom-api-reference/reference/create-a-conversation

 

I've tried setting `type` to `contact` as indicated. When passing a `user_id` like so:

 

{

"from": {

"type": "contact",

"user_id": "1234567"

},

"body": "Hey"

}

 

I received the error `Lead Not Found` and the conversation / contact with role lead are not created as expected.

 

How can I create conversations from visitors?

 

Additionally, in an ideal world I would be able to pass a singular user ID (not knowing if this is a visitor or existing Intercom user) and then create a conversation attached to the provided user if they exist, or instead a new user if they did not. Is this at all feasible?

 

Thanks for any help.

Best answer by Lisa B11

Hey @emily h12​ 👋

 

It might be that you are using an older version of the REST API or referencing an older version and so getting syntax incorrect. Would you mind sending us a message through the Messenger for investigation into the logs of the calls you are making please 🙌

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

1 reply

Forum|alt.badge.img+5
  • Employee
  • 250 replies
  • Answer
  • May 19, 2022

Hey @emily h12​ 👋

 

It might be that you are using an older version of the REST API or referencing an older version and so getting syntax incorrect. Would you mind sending us a message through the Messenger for investigation into the logs of the calls you are making please 🙌


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