Your username, held usernames and who can find you
const url = 'https://api.vexarn.dev/api/account/profile';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/account/profile \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The profile
object
Your current username; null until chosen, and contacts are unavailable until then (username_required).
nobody: a request by username answers as for a username that does not exist; only invite links work.
Former usernames held for you for 14 days after a change: nobody else can take them, you can take one back.
object
Changes you can make now: 2 per 14 days, taking back a held name included; the first choice is free.
When a change becomes possible again, while none is left; otherwise null.
A free username derived from the account name, offered while you have none; otherwise null.
The organization a corporate account belongs to, with your role there; null for a personal account.
object
owner manages everything incl. domains, SSO and roles; admin manages members and policies; member nothing.
The work email your organization’s identity provider confirmed; null for a personal account.
Your role on the Vexarn staff, or null.
Example
{ "username": "alice", "discoverableBy": "everyone", "heldUsernames": [ { "heldUntil": "2026-11-06T12:00:00.000Z" } ], "nextUsernameChangeAt": "2026-11-06T12:00:00.000Z", "suggestedUsername": "alice_smith", "organization": { "name": "Acme", "slug": "acme", "role": "member" }, "workEmail": "alice@acme.example", "platformRole": "support"}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
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