My DM inbox — one entry per peer
GET /account/messages
GET
/account/messages
Lists every peer the caller has exchanged DMs with, paired with the most recent message in that thread + the count of unread messages from that peer. Newest-first. Wires the envelope-icon dropdown + the /account/messages full inbox.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
integer
Responses
Section titled “ Responses ”List of threads.
object
threads
required
Array<object>
Inbox row — one per peer the caller has DM’d. Denormalized peer identity + the most recent message excerpt + this peer’s unread count so the inbox renders without N+1 round-trips.
object
peer_user_ref
required
integer format: int64
peer_username
required
string
peer_display_name
string
peer_avatar_url
string
last_message_id
required
string format: uuid
last_sender_user_ref
required
Which side authored the most recent message in this thread. Lets the inbox card render “You: …” vs “PeerName: …” prefixes.
integer format: int64
last_body
required
string
last_sent_at
required
string format: date-time
last_read_at
string format: date-time
unread_count
required
Count of unread messages from this peer in this thread. Sum across all threads matches the envelope-pill total.
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"}