ark api
Available API routes. Auth levels: public — no session required; session — requires a valid login session (ark_session cookie or Bearer token); workspace — additionally requires a currently selected workspace.
Health
GET /api/health— health check (public)
Auth
POST /api/auth/login— log in with email + password, sets the ark_session cookie (public)POST /api/auth/signup— create an account and log in (public)POST /api/auth/logout— log out, clears the ark_session cookie (public)GET /api/auth/session— current session, or null when not logged in (public)POST /api/auth/workspace— switch the current workspace (session)GET /api/auth/workspaces— list the logged-in user's workspaces (session)
Evaluation
GET /api/evaluation/menus— evaluation items of a manual year with per-item stats (workspace)GET /api/evaluation/targets— target×period grid rows of an interval item (workspace)GET /api/evaluation/docs— ad-hoc document list of a no-interval item's category (workspace)GET /api/evaluation/dashboard— evaluation dashboard data (workspace)
Templates
GET /api/templates/[filename]— download a starting-base .docx template (files/ dir; item filename in @repo/config) (public — fetched server-to-server by the ONLYOFFICE Document Server)