Ask someone to be your contact, by username
const url = 'https://api.vexarn.dev/api/contact-requests';const options = { method: 'POST', headers: { cookie: '__Host-vexarn.session_token=<__Host-vexarn.session_token>', 'Content-Type': 'application/json' }, body: '{"username":"alice","localName":"Alice from work"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vexarn.dev/api/contact-requests \ --header 'Content-Type: application/json' \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token> \ --data '{ "username": "alice", "localName": "Alice from work" }'They confirm it. If they already asked you, you are connected at once. Limited to 10 requests an hour and 50 a day, and 50 waiting at once.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Surrounding spaces and one leading @ are dropped and letters lowercased; then 3 to 30 characters: a letter, then letters, digits or underscores.
Example
aliceWhat you call the contact, seen only by you. Trimmed; empty or null means none; at most 64 characters.
Example
Alice from workExample
{ "username": "alice", "localName": "Alice from work"}Responses
Section titled “Responses”The request, or the contact when it connected you
pending: your request, new or the one already sent (it looks the same whether or not they see it). connected: they had already asked you, so you are now contacts.
object
A request you sent that is not withdrawn or accepted. A decline is silent: the request stays here.
object
Someone who is not your contact: only their username, never the account name.
object
Your local name for them, applied when they accept.
How the request was sent: by username or through an invite link.
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
{ "status": "pending", "request": { "to": { "username": "alice" }, "via": "username", "createdAt": "2026-11-06T12:00:00.000Z" }}Invalid input (validation_error), your own username (cannot_add_self), or someone you blocked (contact_blocked): unblock them first
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), or you have the most contacts allowed (contact_limit_reached)
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" }}Nobody can be found by this username (user_not_found), including people who hid themselves from search
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" }}Already contacts (already_contacts), or too many waiting requests (contact_request_limit_reached)
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" }}The body is larger than the API accepts
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" }}The body is not application/json
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 by username (contact_request_rate_limited) or to the API (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 request is allowed again