Vexar API

Account & Profile

Read and update your account, change your password, manage your avatar, list workspaces and delete your account. Authentication required.

GET /api/v1/auth/me Auth

Get the current account (includes the API key).

Response
{ "success": true, "user": { "id": 1, "email": "[email protected]", "name": "Jane", "plan": "pro", "api_key": "a1b2…" } }
PUT /api/v1/auth/me Auth

Update account fields (name, company, language, timezone).

Request body
{ "name": "Jane Doe", "company": "Acme", "language": "en", "timezone": "Europe/Kyiv" }
Response
{ "success": true, "user": { … } }
POST /api/v1/auth/change-password Auth

Change password (new password ≥ 8 chars).

Request body
{ "current_password": "…", "new_password": "…" }
Response
{ "success": true, "message": "Password changed successfully" }
POST /api/v1/auth/upload-avatar Auth

Upload an account avatar (multipart field avatar, max 10MB).

Response
{ "success": true, "user": { … }, "avatar_url": "https://cdn…" }
GET /api/v1/workspaces Auth

List workspaces you belong to (your own + organizations where you are an operator).

Response
{ "success": true, "workspaces": [ { "type": "personal" }, { "type": "organization", "owner_id": 5 } ] }
POST /api/v1/account/delete Auth

Permanently delete your account. Requires your password.

Request body
{ "password": "…" }
Response
{ "success": true }
POST /api/v1/app-session Auth

Register a desktop/mobile app session for analytics. platform: e.g. windows, mac, android, ios.

Request body
{ "platform": "windows" }
Response
{ "success": true }