Backend REST API Reference
FynnCloud Server exposes a JSON + streaming HTTP REST API under /api/* (plus GET /health). All mutating endpoints check AIO’s BackupFreezeMiddleware and return 503 Service Unavailable with Retry-After: 5 while a crash-consistent restic backup (backup.lock) is in progress.
Authentication Modes & Rate-Limit Categories
Section titled “Authentication Modes & Rate-Limit Categories”| Auth Mode | Header / Credential | Notes |
|---|---|---|
| User Session | Authorization: Bearer <accessToken> or HttpOnly cookie |
Standard browser & native client sessions (UserPayload) |
| App Token | Authorization: Bearer <AppAccessToken> |
Strictly allowlisted by AppAuthorizationPolicy. ?accessToken= query param is strictly rejected (401) for User and App tokens. |
| Share Unlock Token | Authorization: Bearer <ShareAccessToken> (or ?accessToken= only on GET/HEAD /api/files/:id/download & /thumbnail) |
Anonymous public share link sessions (Caller.guest) |
| App Secret | X-FynnCloud-App-ID + X-FynnCloud-App-Secret |
Server-to-server calls from installed app containers |
| Admin + Step-Up | Admin session + X-FynnCloud-Step-Up-Token |
Required for destructive AIO operations (recovery-kit, updates:apply, backups:config, restore) |
Rate-Limit Categories
Section titled “Rate-Limit Categories”Configured via RATE_LIMIT_ENABLED (default true):
.auth(10/min): Login, registration, password reset, OAuth token, TOTP, passkeys, setup restore, and privileged AIO mutations..share(60/min): Public share link unlock & guest access..api(300/min): Standard authenticated user API routes..ai(20/min): Ask AI chat endpoints.- Exempt from
.apirate limiter:GET /api/events,GET /api/sync/events, and all app-secret routes under/api/apps/{capabilities,notifications,notifications/dismiss,badges,presence,presence/activity,realtime/publish}.
Core, Health & Public Settings
Section titled “Core, Health & Public Settings”| Method | Path | Auth | Description |
|---|---|---|---|
GET |
/health |
Public | Server liveness check (200 OK) |
GET |
/api/meta |
Public | Server version, capabilities, and instance metadata |
GET |
/api/settings/public |
Public | Public branding, registration toggle, and docs provider |
GET |
/api/branding/logo / icon |
Public | Custom uploaded instance logo / favicon |
Authentication, Passkeys, TOTP, OAuth & App Passwords
Section titled “Authentication, Passkeys, TOTP, OAuth & App Passwords”| Method | Path | Auth / Limit | Description |
|---|---|---|---|
POST |
/api/auth/register |
Public (.auth) |
Create account (requires accessRegistrationEnabled=true or first-run 0-user setup) |
POST |
/api/auth/login |
Public (.auth) |
Local password or LDAP login (returns TOTP challenge if 2FA enabled) |
POST |
/api/auth/refresh |
Refresh cookie/token (.auth) |
Rotate access + refresh tokens |
POST |
/api/auth/logout |
User or grant-bound App Token | Revoke session / OAuth grant (writes 60s Redis tombstone) |
GET / DELETE |
/api/auth/sessions, /sessions/:id, /sessions/others |
User | List active sessions, revoke one, or revoke all other sessions |
POST |
/api/auth/totp/setup, /verify, /disable |
User (.auth) |
Enroll/verify/disable TOTP. /disable requires a valid TOTP or recovery code—password-only disable is rejected (401) |
POST |
/api/auth/passkeys/register/start, /finish |
User (.auth) |
Enroll WebAuthn Passkey |
POST |
/api/auth/passkeys/login/start, /finish |
Public (.auth) |
Passwordless Passkey login & Conditional UI autofill |
GET / DELETE |
/api/auth/passkeys, /passkeys/:id |
User | List or remove passkeys |
GET / POST / DELETE |
/api/auth/app-passwords, /app-passwords/:id |
User | Manage up to 50 fc_app_* app passwords |
POST |
/api/auth/app-passwords/verify |
App Secret | Exchange { username, password, app_id, app_secret } → { token, expiresIn, user } |
GET / POST |
/api/auth/oauth/authorize, /token |
User / Public (.auth) |
OAuth 2.0 PKCE (fynncloud-desktop, fynncloud-ios, app:<id>[:<variant>]) |
GET |
/api/auth/sso/providers |
Public | Discover enabled OIDC/LDAP/Header SSO providers |
GET |
/api/auth/sso/oidc/:key/login, /callback |
Public (.auth) |
OIDC Authorization Code + PKCE login & callback |
Users, Directory, Presence & Events
Section titled “Users, Directory, Presence & Events”| Method | Path | Auth | Description |
|---|---|---|---|
GET / PATCH |
/api/user/me, /api/user/quotas |
User / App (user:read, GET only) |
Current profile & storage quota summary |
GET / POST / DELETE |
/api/user/:userID/avatar |
User / App (user:read, GET only) |
Fetch, upload, or remove user avatar |
PUT |
/api/user/status |
User / App (presence:write) |
Update manual presence mode & custom status note (≤ 100 chars) |
GET |
/api/presence |
User / App (user:read) |
Resolve live presence & activity (?userIds=..., max 200) |
GET |
/api/directory/recipients, /groups |
User / App (user:read) |
Search users & groups for sharing / collaboration |
GET |
/api/directory/groups/:groupID/members |
Admin or App Secret (groups:read) |
Resolve member UUIDs of a group (never exposed to browser AppAccessToken) |
GET |
/api/events |
User / App Token (exempt from .api limit) |
Host SSE stream (ready, notification.upsert, notification.dismiss, badge, presence.updated, app.realtime) |
GET |
/api/notifications |
User | List active notifications |
POST |
/api/notifications/:id/dismiss, /actions/:actionID |
User | Dismiss notification or trigger action button (delivers notification.action webhook to app) |
Files, Versions, Sync, Shares & Office
Section titled “Files, Versions, Sync, Shares & Office”| Method | Path | Auth | Description |
|---|---|---|---|
GET |
/api/files/all, /search, /recent, /favorites, /shared, /shared-with-others, /trash, /resolve |
User / App (files:all:read required!) |
Drive listings & hybrid filename/semantic search |
GET |
/api/files/:id, /download, /thumbnail, /versions, /activity |
User / Share / App (activity also requires user:read) |
Metadata, Range download, thumbnail, version list, unified activity feed |
POST / PATCH / DELETE |
/api/files/folder, /api/files/:id, /move, /favorite, /restore, /permanent |
User / App (files:*:write) |
Create folders, rename, move, favorite, trash, restore, permanently delete |
POST |
/api/files/upload/init, PUT /upload/:id/part/:n, POST /upload/:id/complete, DELETE /upload/:id |
User / Share (file_drop/collaborative) / App |
3-step chunked upload protocol (see Multipart Uploads) |
POST / DELETE |
/api/files/:id/versions/:versionID/restore, DELETE /versions/:versionID |
User / App (files:*:write) |
Non-destructive restore or delete historical file version |
GET |
/api/activities |
User / App (files:all:read AND user:read) |
Account-wide file activity stream |
GET |
/api/sync/changes, POST /api/sync/ack, GET /api/sync/events |
User (sync/events exempt from .api limit) |
Incremental delta sync, cursor ack, and real-time file sync SSE stream |
GET / POST / PATCH / DELETE |
/api/files/:id/internal-shares, /internal-shares/:shareID |
User (forbidden for App tokens) | Manage viewer, editor, manager user/group shares |
GET / POST / PATCH / DELETE |
/api/files/:id/share-links, /share-links/:linkID |
User (forbidden for App tokens) | Manage view_only, file_drop, collaborative public links |
GET / POST |
/api/share/:token, /api/share/:token/unlock |
Public (.share) |
Public share info & password unlock (ShareAccessToken) |
GET |
/api/files/:id/editor |
User / Collaborative Share (explicitly forbids App tokens: 403) |
Mint EuroOffice DocsAPI or WOPI editor session |
GET / POST |
/api/wopi/files/:id, /api/wopi/files/:id/contents |
WopiAccessToken |
WOPI host protocol callbacks |
POST |
/api/ai/chat |
User (.ai) |
Streaming Ask AI assistant with tool calls |
Apps, Push Devices & LiveKit RTC
Section titled “Apps, Push Devices & LiveKit RTC”| Method | Path | Auth | Description |
|---|---|---|---|
GET / POST / PUT / DELETE |
/api/apps, /install, /:id/update, /:id/enable, /:id/disable, /:id/restart, /:id, /:id/logs |
Admin | App lifecycle & container management |
POST |
/api/apps/:appId/token |
User | Mint scoped AppAccessToken ({ token, expires_in }) |
GET |
/api/apps/integrations |
App Token | Discover compatibility/availability of compatibility.apps targets |
ALL |
/api/apps/:appId/proxy/** |
User / App Token / Cross-App Secret / public_paths |
Authenticating App Gateway with HMAC-SHA256 identity signatures |
GET |
/api/apps/capabilities |
App Secret (exempt) | { notifications, badges, presence, events, realtime, push } |
POST |
/api/apps/notifications, /notifications/dismiss |
App Secret (notifications:send, exempt) |
Upsert/dismiss persistent notifications & dispatch HPKE push |
PUT |
/api/apps/badges |
App Secret (notifications:send, exempt) |
Set or clear rail badges |
GET |
/api/apps/presence |
App Secret (user:read, exempt) |
Query online users & resolved presence entries |
PUT |
/api/apps/presence/activity |
App Secret (presence:write, exempt) |
Set elevated activity headline (in_call, presenting, in_meeting, focus; 15–300s TTL) |
POST |
/api/apps/realtime/publish |
App Secret (realtime:push, exempt, 4 MB cap) |
Fan out app events to recipient browsers over /api/events |
PUT / GET / DELETE |
/api/push/devices, /devices/:deviceID, /devices/installation/:installationID |
User / App Token (notifications:send) |
Register, list, or remove HPKE / FileProvider push devices |
GET / POST / DELETE |
/api/rtc/status, /api/rtc/token, /api/rtc/rooms/:room/mute, /api/rtc/rooms/:room/participants/:identity |
App Secret (rtc:rooms) |
LiveKit SFU status, isolated HS256 token minting, Twirp mute & kick |
Administration & AIO System API (/api/admin/system/*)
Section titled “Administration & AIO System API (/api/admin/system/*)”Standard Admin Endpoints
Section titled “Standard Admin Endpoints”| Method | Path | Auth | Description |
|---|---|---|---|
GET |
/api/admin/overview |
Admin | Live user, group, file, trash, version, and share byte/count statistics |
GET |
/api/alerts |
Admin | Real-time server health alerts (18 checks across critical/warning/info) |
GET / POST |
/api/scheduled-jobs, /scheduled-jobs/:id/trigger (alias /run) |
Admin | Inspect last-run timestamps & manually trigger scheduled jobs |
GET / PATCH |
/api/settings |
Admin | Read (secrets masked) & update all 73 dynamic AppSettings |
POST |
/api/sso/sync-groups, /api/sso/sync-users |
Admin | Trigger immediate LDAP group or user catalog synchronization |
POST |
/api/ai/test, /api/ai/test-embedding, /api/ai/reindex |
Admin | Test LLM/embedding endpoints or trigger full semantic reindex |
POST |
/api/mail/test, /api/rtc/test |
Admin | Send test SMTP email / test LiveKit Twirp ListRooms connection |
GET / POST / DELETE |
/api/subscription |
Admin | Inspect, install, or remove signed subscription key |
AIO System & Step-Up Reauthentication Endpoints (All 20 Routes)
Section titled “AIO System & Step-Up Reauthentication Endpoints (All 20 Routes)”| Method | Path | Step-Up Action / Limit | Description |
|---|---|---|---|
POST |
/api/setup/restore |
Setup token (0 users only, .auth) |
First-run disaster recovery from restic backup |
GET |
/api/admin/system/step-up/methods |
Admin | Check available step-up methods (hasPasskeys, hasTOTP, hasPassword) |
POST |
/api/admin/system/step-up/passkey/start, /finish |
Admin (.auth) |
WebAuthn UV=1 step-up → 300s stepUpToken |
POST |
/api/admin/system/step-up/verify |
Admin (.auth) |
TOTP step-up (or password only if neither Passkey nor TOTP enrolled) |
GET |
/api/admin/system/status |
Admin | AIO supervisor status, channel, components, and versions |
POST |
/api/admin/system/reconcile |
Admin (.auth) |
Reconcile containers against /data/stack.yaml & re-sync component settings |
GET |
/api/admin/system/diagnostics, /diagnostics/bundle |
Admin | Live host diagnostics & redacted support bundle |
POST |
/api/admin/system/components/:id |
Admin (.auth) |
Toggle built-in AIO components (eurooffice, livekit) + auto-wire settings |
POST |
/api/admin/system/maintenance |
Admin (.auth) |
Enable/disable maintenance mode |
POST |
/api/admin/system/recovery-kit |
Step-Up: recovery-kit (.auth) |
Export 6-field Recovery Kit JSON (disabled if AIO_ALLOW_SOCKET_RECOVERY_KIT=false) |
POST |
/api/admin/system/updates/check |
Admin | Poll ECDSA P-256 signed release feed |
POST |
/api/admin/system/updates/apply |
Step-Up: updates:apply (.auth) |
Apply signed stack update with health-checked automatic rollback |
POST |
/api/admin/system/supervisor/update |
Step-Up: updates:apply (.auth) |
Trigger fynncloud-aio-upgrader supervisor self-swap |
GET |
/api/admin/system/backups |
Admin | List restic snapshots & backup status |
PUT |
/api/admin/system/backups/config |
Step-Up: backups:config (.auth) |
Update backup target (local/s3/sftp), schedule, credentials, retention |
POST |
/api/admin/system/backups/run |
Admin (.auth) |
Trigger immediate crash-consistent backup (backup.lock) |
POST |
/api/admin/system/backups/verify |
Admin (.auth) |
Run 5% restic restore-drill verification |
POST |
/api/admin/system/backups/restore |
Step-Up: restore (.auth) |
Restore running instance from a chosen restic snapshot |