All DMs between me and a specific peer
GET /account/messages/{peer_ref}
GET
/account/messages/{peer_ref}
Cursor-paginated newest-first. Caller must be one of the two participants (gate enforced by the WHERE clause — no separate “is this thread mine?” check needed). 404 when the peer doesn’t exist.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” peer_ref
required
integer format: int64
Query Parameters
Section titled “Query Parameters ” limit
integer
cursor
string
Responses
Section titled “ Responses ”A page of messages.
object
items
required
Array<object>
One DM between two users.
object
id
required
string format: uuid
sender_user_ref
required
integer format: int64
recipient_user_ref
required
integer format: int64
body
required
string
sent_at
required
string format: date-time
read_at
NULL = unread by recipient.
string format: date-time
next_cursor
string
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"}Resource not found
object
error
required
Human-readable error summary
string
Example
the request could not be completed