Skip to main content
Answered

API Reply to the last conversation is failing - user not found


Hi, this is my first post, so go easy :)

 

I'd like to reply to the last conversation using the api. The URL I'm calling is: 

https://api.intercom.io/conversations/last/reply/p>

 

I'm using this as reference - https://developers.intercom.com/intercom-api-reference/reference#reply-to-a-conversation/p>

 

The message body looks approximately like this:

 

{

  "message_type": "comment",

  "type": "user",

  "user_id": "usersemail@aferry.com",

  "body": "Test message"

}

 

I've confirmed this user exists but I get this response:

 

{

    "type": "error.list",

    "request_id": "000sdhmlsb3j8gk6qieg",

    "errors": [

        {

            "code": "not_found",

            "message": "User Not Found"

        }

    ]

}

Any ideas appreciated. I can't see what could be wrong.

Best answer by Roy

Hello @james c12​ , ID is a Contact ID, not an e-mail address.

This is a correct ID for API call:

userid

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

2 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • January 23, 2021

Hello @james c12​ , ID is a Contact ID, not an e-mail address.

This is a correct ID for API call:

userid


  • Author
  • New Participant
  • 1 reply
  • January 25, 2021

Thanks Roy, it was a combination of this and incorrect http headers.

😀


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