Mark PM as read via api

(Daniel M ) #1

Is it possible to mark a Private Message as read using the api? I used the track_visit=true parameter, but it still doesn’t mark it as read. Some context: I’m building a bot that looks at recent PMs, but I don’t want to download the whole JSON every single time (just what is new since last run of the bot script), so I’m using topics/private-messages-unread/(username).json.

(Daniel M ) #2

I figured this out (kind of)
Instead of looking through unread PMs, my bot will reply to every request (either with a success or an error message), and simply filter out the posts with more than 0 replies. It’s a workaround, but it works, and that’s all that matters.