Skip to main content
Answered

API Error when calling https://api.intercom.io/messages

  • January 12, 2022
  • 1 reply
  • 140 views

I am making a call with this data:

 

{

  "message_type": "email",

  "subject": "Hey",

  "body": "Ponies, cute small horses or something more sinister?",

  "template": "plain",

  "from": {

    "type": "admin",

    "id": "61df30800add612e4d8e19dc"

  },

  "to": {

    "type": "user",

    "id": "61df30800add612e4d8e19dc"

  }

}

 

and the response I get is as follows:

{

    "type": "error.list",

    "request_id": "004ar6gmrkcj0msrhlg0",

    "errors": [

        {

            "code": "not_found",

            "message": "Resource Not Found"

        }

    ]

}

 

Can someone tell me why and what mistake I am making?

 

Thanks

 

Nat

Best answer by Milan

@ram n​  IDs are not correct I assume. They are the same and I doubt that user and admin have the same ID. Please check.

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

1 reply

Milan
Expert User ✨
Forum|alt.badge.img+5
  • Top Expert
  • 306 replies
  • Answer
  • January 13, 2022

@ram n​  IDs are not correct I assume. They are the same and I doubt that user and admin have the same ID. Please check.


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