Account API /api/account
📝 TODO — this English page is a skeleton. The structure mirrors the Chinese page, which is fully written.
| Method | Path | Description |
|---|---|---|
GET | /api/account | Overview and stats |
PUT | /api/account/profile | Update display name |
POST | /api/account/avatar | Upload avatar (base64 data URI, max 400 KB decoded) |
DELETE | /api/account/avatar | Remove avatar |
POST | /api/account/password | Change password |
GET | /api/account/sessions | Active sessions |
DELETE | /api/account/sessions/:id | Sign out one device |
DELETE | /api/account/sessions | Sign out all other devices |
Changing the password revokes every session except the current one. Deleting the current session directly returns 400 current_session — use logout instead.