API reference
The current rumahl OS route catalog: shell, files, apps, capabilities, streams, store, warnings, administration, recovery, OIDC, browser auth and the app bridge.
One authorization boundary
A shell action and an app bridge call both end at the same platform boundary. The browser sends a same-origin request with the session cookie; the gateway checks Host, Origin and CSRF; Rust revalidates the live account, session, installation and grants before the operation runs. A rendered control is never proof of permission.
Base URL and request rules
Routes below are relative to the origin of the running instance, for example https://<host>. The development server uses https://localhost:8443; a deployed instance uses its own host. The current checkout is the source of truth when a route changes.
- A local password login issues a fresh 12-hour
__Host-session cookie. - Mutating
/api/v1/requests require the exact shell Origin. - The gateway rejects foreign Host headers and missing CSRF protection.
- Private responses are
no-storeand are never cached by the offline worker. - App windows never receive the shell session token or a broad platform bearer credential.
Shell, session and preferences
HTTP routes
GET/Server-rendered shell documentGET/api/v1/shell/snapshotCurrent shell, account, app and session stateGET/api/v1/shell/eventsLive shell eventsGET/PUT/api/v1/shell/preferencesLoad or save preferencesGET/PUT/api/v1/shell/os-modeLoad or save the OS presentation modeGET/PUT/api/v1/shell/workspaceLoad or save workspace stateGET/api/v1/shell/configDisplay-safe platform configurationGET/api/v1/shell/widgets/{id}/frameWidget framePOST/api/v1/shell/surfaces/{id}/frameShell surface framePOST/api/v1/shell/reportClient report to the platform
Files and workspace
HTTP routes
Workspace and file routes stay behind the same session and origin checks. Resources are logical references, not arbitrary host paths.
GET/POST/PUT/DELETE/api/v1/shell/fsList, create, rename or remove shell-visible entriesGET/PUT/api/v1/shell/fs/contentRead or write shell-visible file contentGET/api/v1/shell/fs/resolveResolve a shell-visible pathGET/api/v1/filesList filesPOST/api/v1/filesCreate a file or folderPUT/api/v1/filesMove or rename an entryDELETE/api/v1/filesRemove an entryGET/PUT/api/v1/files/contentDownload or write file content
Apps and capabilities
HTTP routes
The catalog is session-filtered. Launch and renewal authorize the live account, installation and grants again.
GET/api/v1/shell/appsBounded, session-filtered app catalogPOST/api/v1/shell/apps/{id}/launchAuthorize launch and return a frame URL plus short-lived leaseGET/PUT/api/v1/shell/apps/{id}/settingsRead or write manifest-declared app settingsGET/api/v1/shell/apps/{id}/dataScoped app dataGET/POST/api/v1/shell/apps/{id}/runtimeRead runtime state or send a runtime actionPOST/api/v1/shell/apps/importImport a verified packageDELETE/api/v1/shell/apps/{id}Uninstall an appPOST/api/v1/shell/capabilities/invokeInvoke a declared capability through the platform
App consent, files and network
Settings are bound to the installation. Plain values are validated against the manifest; secret values are write-only, encrypted at rest and never echoed. Network consent is per installation, user and exact origin; the app never receives a socket, cookie jar or secret plaintext. The image and storage views are advanced diagnostics behind the current OS-mode policy.
HTTP routes
These routes are the user-consent surface and enforcement consumer. Installation alone grants nothing; each request is checked against the live installation, account, session and explicit consent.
GET/PUT/api/v1/shell/apps/{id}/grantsRead requested grants or issue explicit consentDELETE/api/v1/shell/apps/{id}/grants/{grant}Revoke one grantGET/PUT/api/v1/shell/apps/{id}/files/contentRead or write consented app filesGET/PUT/DELETE/api/v1/shell/apps/{id}/network/consentList, approve or revoke an origin consentPOST/api/v1/shell/apps/{id}/network/requestBrokered HTTP(S) request with server-side secret attachmentGET/api/v1/shell/apps/{id}/imageRecorded app image diagnosticsGET/api/v1/shell/apps/{id}/storageApp storage diagnostics
Streams and app store
HTTP routes
GET/api/v1/shell/streamsList available service streamsPOST/api/v1/shell/streams/{id}/grantGrant a stream scopeGET/api/v1/shell/streams/{id}/api/websocketsWebSocket proxy for a streamGET/api/v1/shell/streams/{id}/Stream rootGET/api/v1/shell/streams/{id}/{*tail}Same-origin stream asset proxyGET/api/v1/shell/store/fetchFetch an app-store resourceGET/api/v1/shell/store/imageProxy an app-store imagePOST/api/v1/shell/store/trustWrite the app-store trust file
Weather warnings
HTTP routes
Warnings are an OS-owned surface. Publishing and test warnings require the relevant app capability and policy.
GET/api/v1/shell/warningsActive warnings and revisionPOST/api/v1/shell/warnings/registerRegister a warning publisherPOST/api/v1/shell/warnings/publishPublish a warning batchPOST/api/v1/shell/warnings/clearClear published warningsPOST/api/v1/shell/warnings/testPublish a test warning
Administration
HTTP routes
The admin surface requires an administrator actor. Account administration is not exposed to an ordinary app window.
GET/POST/api/v1/admin/usersList or create local usersPATCH/DELETE/api/v1/admin/users/{id}Update or remove a local userPOST/api/v1/admin/users/{id}/passwordSet a user passwordGET/api/v1/admin/sessionsList sessionsDELETE/api/v1/admin/sessions/{id}Revoke one sessionGET/api/v1/admin/auditRead the admin audit trailGET/PUT/api/v1/admin/policiesRead or set account and device policiesGET/POST/api/v1/admin/groupsList or create groupsDELETE/api/v1/admin/groups/{id}Delete a groupPUT/api/v1/admin/groups/{id}/membersUpdate group membership
Recovery API
HTTP routes
The recovery environment is served directly by Rust and does not need the React desktop or SSR renderer.
GET/recoveryRecovery pageGET/recovery.jsRecovery clientGET/api/v1/recovery/statusRecovery statusGET/api/v1/recovery/auditRecovery auditGET/api/v1/recovery/componentsComponentsGET/api/v1/recovery/sensorsSensorsGET/api/v1/recovery/storageStorageGET/api/v1/recovery/disksDisksPOST/api/v1/recovery/disk-testRun a disk testGET/api/v1/recovery/diagnosticsDiagnosticsGET/api/v1/recovery/networkNetwork statePOST/api/v1/recovery/network-testRun a network testGET/api/v1/recovery/logsLogsGET/api/v1/recovery/crashesCrash recordsGET/api/v1/recovery/bootBoot stateGET/api/v1/recovery/systemSystem informationPOST/api/v1/recovery/quarantineQuarantine an itemGET/PUT/api/v1/recovery/settingsRead or update recovery settingsGET/POST/api/v1/recovery/hostHost status or an allowed host actionPOST/api/v1/recovery/restartRestart through the recovery brokerPOST/api/v1/recovery/self-healRun self-heal
Host power and maintenance actions require the separate rumahl-recovery.service broker, peer-UID checks and an explicit operator allowlist. A session or UI mode alone grants no maintenance rights.
OpenID Connect
Standards endpoints
rumahl OS is its own OpenID Provider for installed applications. Local account and session rules still apply.
GET/.well-known/openid-configurationProvider metadataGET/oauth2/jwksPublic signing keysGET/oauth2/authorizeAuthorization requestPOST/oauth2/authorize/approveExplicit consentPOST/oauth2/tokenToken exchangeGET/oauth2/userinfoUser information for authorized clients
Bridge API inside an app
Bridge methods
Installed web apps use window.postMessage with protocol rumahl.bridge.v1. The channel is bound to the frame contentWindow; a sandboxed app has the origin "null".
bridgeos.infoBounded shell and app informationbridgeos.theme.get / os.theme.changedRead and follow the semantic OS palettebridgeos.settings.get / os.settings.setRead or write the app’s own manifest settingsbridgeos.notificationSend a user notificationbridgeos.window.*Close, minimize or focus the app windowbridgeos.capabilities.invokeInvoke another installed app’s declared capability
Browser auth and offline surface
Browser and worker routes
These routes serve the login page, logout, installation metadata and the offline shell. They are not app APIs.
GET/POST/loginLogin page or password loginGET/login/appearance.jsLogin appearance scriptGET/login/wallpaper.jpgLogin wallpaperGET/POST/logoutLogout page or session logoutGET/offlineOffline shellGET/splashStartup splash pageGET/offline/pingOffline worker probeGET/offline/wallpaper.jpgOffline wallpaperGET/service-worker.jsService workerGET/os-client.jsOffline clientGET/rre-i18n.jsOffline translationsGET/manifest.webmanifestInstallation manifestGET/icon.svgInstallation iconGET/icon-512.pngLarge installation icon
Errors, denial and state
- A 2xx response means the request was accepted; 4xx responses cover authentication, permission and request validation; 5xx responses mean the platform operation failed.
- Permission request is not permission grant. Installation and capability discovery do not create a grant.
- Unknown bridge methods and unknown manifest fields are rejected rather than silently ignored.
- A session or UI mode alone never grants recovery, maintenance or admin rights.
- Do not retry a denied mutation with a different origin or a cached private response.
Hiding a button is not authorization. Every launch, capability invocation, stream grant and admin action is checked again in Rust for the live account, installation and session.
Related contracts
Need more context? Read the source or open a discussion with the project.