Skip to main content
Answered

Create Conversation for Lead throws an error "User Not Found".

  • February 1, 2022
  • 6 replies
  • 204 views

As per the api doc: https://developers.intercom.com/intercom-api-reference/reference/create-a-conversation

When creating conversation, We should send the type as lead in from object. But on doing so, I get the error, user not found.

{
"type": "error.list",
"request_id": "00034vg9jrnkg43k9mf0",
"errors": [
{
"code": "not_found",
"message": "User Not Found"
}
]
}

 

 

But when I change type to `user`, it worked.

 

Expected:

For lead, we should pass type as `lead` only not `user`.

Best answer by Aparna

@anurag m​ ! Sorry for the delay. You can reach via Messenger in your workspace or send an email to team@intercom.io

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

6 replies

  • Employee
  • 328 replies
  • February 3, 2022

Hey @anurag m​ ! Thanks for flagging it. I will test this and also check if there is any bug issue on this. If needed I will open up a new issue.


  • Employee
  • 328 replies
  • February 3, 2022

Hey @anurag m​ ! Can you please reach out to our support team, so we can investigate this further and open an issue?


  • Author
  • Connector
  • 9 replies
  • February 4, 2022

Thanks!

Sure @aparna​ ! Please tell me the way to reach the support team.


  • Author
  • Connector
  • 9 replies
  • February 7, 2022

@aparna​ Any update on this please.

 


  • Employee
  • 328 replies
  • Answer
  • February 9, 2022

@anurag m​ ! Sorry for the delay. You can reach via Messenger in your workspace or send an email to team@intercom.io


I have the same problem, why not posting the answer so everyone can take advantage ?

Request:

curl -v -H "Authorization: Bearer X*******X" -H "Accept: application/json" -H "Content-Type: application/json" \
https://api.intercom.io/conversations\
-X POST\
-d "{ \"from\": {\"type\":\"lead\",\"id\":\"1*****7\"}, \"body\":\"Conversation created from API\" }"

Response: Error 404

{"type":"error.list","request_id":"00********p0","errors":[{"code":"not_found","message":"User Not Found"}]}

The user id I'm using for the lead is the last number on the URL of the admin's page: `https://app.intercom.com/a/apps/*****/admins/1*****7`/p>

 

 

 


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