Getting a 404 when trying to read a DM


When querying the URL listed on the docs for reading a DM, I’m getting a 404, even though the ID of the message is a valid one, and the URL is exactly like the one listed on the documentation.

What could I be missing?

Here is an example URL: GET
And here is the json response I get:
{“errors”:[{“message”:“Sorry, that page does not exist”,“code”:34}]}



Are you sure that that is the valid ID? Are you retrieving it from an “id” field or from an “id_str” field? DM ids are 64-bit integers and many programming languages will silently munge the value if you try to work with the integer variant.


@episod Thanks! That seems to have done the trick!