Your contacts, or a search among them
const url = 'https://api.vexarn.dev/api/contacts?query=alice';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/contacts?query=alice' \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Search: exact local name (any case), then exact username (@ optional), then a substring of either. Omitted or empty: all contacts by local name, else username.
Example
aliceSearch: exact local name (any case), then exact username (@ optional), then a substring of either. Omitted or empty: all contacts by local name, else username.
Responses
Section titled “Responses”The contacts; with a query, best matches first, each with match
object
object
A contact.
object
The account name; only contacts see each other’s.
What you call the contact, seen only by you.
The person is blocked by the platform and can’t receive messages right now. The contact stays; it becomes available again when the block is lifted.
How the search query matched: exact local name, exact username, or a substring of either. Only on searched lists.
Example
{ "contacts": [ { "person": { "username": "alice", "name": "Alice Smith" }, "createdAt": "2026-11-06T12:00:00.000Z", "match": "local_name" } ]}The query is too long (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" }}Choose a username first (username_required)
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
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