Answered

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

  • 12 January 2022
  • 1 reply
  • 85 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

icon

Best answer by Milan 13 January 2022, 22:28

View original

1 reply

Userlevel 4
Badge +5

@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