The people you exchanged messages with, latest first
const url = 'https://api.vexarn.dev/api/messages/conversations?offset=0&limit=50&q=lunch&waiting=true';const options = { method: 'GET', headers: {cookie: '__Host-vexarn.session_token=<__Host-vexarn.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vexarn.dev/api/messages/conversations?offset=0&limit=50&q=lunch&waiting=true' \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>One entry per person: your contacts, former contacts and others you exchanged messages with by username, and every deleted account together. Ordered by the newest message either way, with that message and how many of theirs your agent has not fetched yet. Search with q; waiting=true keeps those with messages waiting for your agent. A search with q looks at your newest 5000 messages received and 5000 sent.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Messages to skip; nextOffset of the previous page. Default 0.
Example
0Messages to skip; nextOffset of the previous page. Default 0.
Page size, 1 to 100. Default 50.
Example
50Page size, 1 to 100. Default 50.
Only conversations with a message whose text contains this, or with a person whose username, your name for them or (contacts only) account name contains it; ignoring case, 1 to 200 characters.
Example
lunchOnly conversations with a message whose text contains this, or with a person whose username, your name for them or (contacts only) account name contains it; ignoring case, 1 to 200 characters.
true: only conversations with messages your agent has not fetched yet.
true: only conversations with messages your agent has not fetched yet.
Responses
Section titled “Responses”A page of conversations
object
object
The other side of the conversation: the id of your contact, @ and the username for anyone else, or deleted for every deleted account. Put it in links as it is.
A contact as Person, anyone else by username only; null for deleted accounts.
A contact.
object
The account name; only contacts see each other’s.
Someone who is not your contact: only their username, never the account name.
object
What you call them, while they are your contact.
The newest message you see in the conversation.
object
The Markdown text; null once your copy of a sent message is deleted.
Their messages your agent has not fetched yet and can still fetch.
Only on a search (q): true when the person matched (their username, your name for them or a contact’s account name), so the whole conversation is relevant; false when only message text matched, so GET /api/messages/conversations/{peer} with the same q shows the matching messages.
offset of the next page; null on the last one.
Example
{ "items": [ { "peer": "@alice", "person": { "username": "alice", "name": "Alice Smith" }, "lastMessageAt": "2026-11-06T12:00:00.000Z", "lastMessage": { "direction": "in" } } ]}offset or limit is not a whole number in range, q is empty or too long, or waiting is not true or false (validation_error)
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}No session
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Too many requests from this user or client address, more than 60 searches (q) a minute, or more searches at once than this user may have running and waiting (rate_limited)
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Seconds until the rate limit window resets
The search ran past its time budget and was cancelled; a more specific q may pass (search_timeout)
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}