Mark every unread DM from this peer as read
POST /account/messages/{peer_ref}/read
POST
/account/messages/{peer_ref}/read
Idempotent. Called when the caller opens the thread. Returns count of rows newly-flipped so the envelope pill can decrement deterministically.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” peer_ref
required
integer format: int64
Responses
Section titled “ Responses ”How many were just marked read.
object
marked_count
required
integer format: int64
Authentication required, missing, or invalid
object
error
required
Human-readable error summary
string
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}