Reference · HTTP
API reference.
Every documented rumahl OS route in one place: shell state, files, apps, consent, streams, admin, recovery, OIDC and the app bridge. The current release is the source of truth.
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.
shell action / app bridge
↓
same-origin request + session cookie
↓
gateway: Host, Origin, CSRF
↓
Rust: account, session, installation, grants
↓
domain operation or denial
A rendered control is never proof of permission. Hiding a button is not authorization.
For request shapes, limits and complete examples, read the HTTP API guide. For the app-side method surface, read the Bridge SDK reference.
Base URL and request rules
- Routes are relative to the running instance, for example
https://<host>. Development useshttps://localhost:8443. - A local password login issues a fresh 12-hour
__Host-session cookie. - Mutating
/api/v1/requests require the exact shell Origin. - Foreign Host headers and missing CSRF protection are rejected.
- Private responses are
no-storeand are never cached by the offline worker. - App windows never receive the shell session token or a broad bearer credential.
Shell, session and preferences
/Server-rendered shell document/api/v1/shell/snapshotCurrent shell, account, app and session state/api/v1/device/addressesDisplay-safe allowed device origins/api/v1/shell/eventsLive shell events/api/v1/shell/preferencesLoad or save preferences/api/v1/shell/os-modeLoad or save the presentation mode/api/v1/shell/workspaceLoad or save workspace state/api/v1/shell/configDisplay-safe platform configuration/api/v1/shell/widgets/{id}/frameWidget frame/api/v1/shell/surfaces/{id}/frameShell surface frame/api/v1/shell/reportClient report to the platform/api/v1/shell/reauthenticateRe-check the password for the lock screen/api/v1/shell/theme-policyEffective theme policy for the accountFiles and workspace
/api/v1/shell/fsList, create, rename or remove shell-visible entries/api/v1/shell/fs/contentRead or write shell-visible file content/api/v1/shell/fs/resolveResolve a shell-visible path/api/v1/filesList personal files/api/v1/filesCreate a file or folder/api/v1/filesMove or rename an entry/api/v1/filesRemove an entry/api/v1/files/contentDownload or write personal file contentWorkspace and file requests stay behind the same session and origin checks. Resources are logical references, not arbitrary host paths.
Apps and capabilities
/api/v1/shell/appsBounded, session-filtered app catalog/api/v1/shell/apps/{id}/launchAuthorize launch and return a frame URL plus short-lived lease/api/v1/shell/apps/{id}/settingsRead or write manifest-declared settings/api/v1/shell/apps/{id}/dataScoped app data/api/v1/shell/apps/{id}/runtimeRead runtime state or send a runtime action/api/v1/shell/apps/importImport a verified package/api/v1/shell/apps/{id}Uninstall an app/api/v1/shell/capabilities/invokeInvoke a declared capability through the platform/api/v1/shell/apps/{id}/imageRecorded app image diagnostics/api/v1/shell/apps/{id}/storageApp storage diagnosticsThe catalog is session-filtered. Launch and renewal authorize the live account, installation and grants again.
App consent, files and network
/api/v1/shell/apps/{id}/grantsRead requested grants or issue explicit consent/api/v1/shell/apps/{id}/grants/{grant}Revoke one grant/api/v1/shell/apps/{id}/files/contentRead or write consented app files/api/v1/shell/apps/{id}/network/consentList, approve or revoke an origin consent/api/v1/shell/apps/{id}/network/requestBrokered HTTP(S) request with server-side secretsInstallation grants nothing. Each request is checked against the live installation, account, session and explicit consent.
Streams and app store
/api/v1/shell/streamsList available service streams/api/v1/shell/streams/{id}/grantGrant a stream scope/api/v1/shell/streams/{id}/api/websocketsWebSocket proxy for a stream/api/v1/shell/streams/{id}/Stream root/api/v1/shell/streams/{id}/{*tail}Same-origin stream asset proxy/api/v1/shell/store/fetchFetch an app-store resource/api/v1/shell/store/imageProxy an app-store image/api/v1/shell/store/trustWrite the app-store trust fileStore, install jobs, updates and network
These routes are OS-owned: the platform persists the state, downloads packages and applies system updates. The shell only asks and polls; closing a window does not abort an operation.
/api/v1/shell/store/sourcesRead or save the account source list/api/v1/shell/store/updatesRead or save the app auto-update policy/api/v1/shell/store/updates/stateLast update check and pending app updates/api/v1/shell/store/updates/checkRun an update check nowThe official store is the default until the account saves its own list. The scheduler checks enabled sources in the background.
/api/v1/shell/apps/previewValidate a package and return its preview/api/v1/shell/apps/installStart an OS-owned install or update job/api/v1/shell/apps/installsList active install jobs/api/v1/shell/apps/install/{job}Poll job progress, consent or error/api/v1/shell/apps/install/{job}/confirmConfirm an install after consent/api/v1/shell/apps/install/{job}/cancelCancel a queued or parked jobInstall, preview and package downloads run as platform jobs. The shell receives progress and a consent preview; it never streams package bytes through the app frame.
/api/v1/shell/system-updatesRead state or save channel and auto-download/api/v1/shell/system-updates/checkCheck the release repository now/api/v1/shell/system-updates/downloadDownload the selected release/api/v1/shell/system-updates/installApply a downloaded releaseThe platform checks the fixed release repository. Applying an update requires an administrator and the privileged image updater.
/api/v1/shell/networkRead the observed network or apply a static configurationStatic IPv4, gateway and DNS are validated and applied through the privileged host-config broker. The platform service never writes network files itself.
Weather warnings
/api/v1/shell/warningsActive warnings and revision/api/v1/shell/warnings/registerRegister a warning publisher/api/v1/shell/warnings/publishPublish a warning batch/api/v1/shell/warnings/clearClear published warnings/api/v1/shell/warnings/testPublish a test warningPublishing and test warnings require the relevant app capability and policy.
Administration
/api/v1/admin/usersList or create local users/api/v1/admin/users/{id}Update or remove a local user/api/v1/admin/users/{id}/passwordSet a user password/api/v1/admin/sessionsList sessions/api/v1/admin/sessions/{id}Revoke one session/api/v1/admin/auditRead the admin audit trail/api/v1/admin/policiesRead or set account and device policies/api/v1/admin/groupsList or create groups/api/v1/admin/groups/{id}Delete a group/api/v1/admin/groups/{id}/membersUpdate group membershipRequires an administrator actor. This surface is not exposed to an ordinary app window.
Recovery API
The recovery environment is served directly by Rust and does not need the React desktop or SSR renderer. Host power and maintenance actions require the separate recovery broker, peer-UID checks and an operator allowlist.
/recoveryRecovery page/recovery.jsRecovery client/api/v1/recovery/statusRecovery status/api/v1/recovery/auditRecovery audit/api/v1/recovery/componentsComponents/api/v1/recovery/sensorsSensors/api/v1/recovery/storageStorage/api/v1/recovery/disksDisks/api/v1/recovery/disk-testRun a disk test/api/v1/recovery/diagnosticsDiagnostics/api/v1/recovery/networkNetwork state/api/v1/recovery/network-testRun a network test/api/v1/recovery/logsLogs/api/v1/recovery/crashesCrash records/api/v1/recovery/bootBoot state/api/v1/recovery/systemSystem information/api/v1/recovery/quarantineQuarantine an item/api/v1/recovery/settingsRead or update recovery settings/api/v1/recovery/hostHost status or an allowed host action/api/v1/recovery/restartRestart through the recovery broker/api/v1/recovery/self-healRun self-healOpenID Connect
/.well-known/openid-configurationProvider metadata/oauth2/jwksPublic signing keys/oauth2/authorizeAuthorization request/oauth2/authorize/approveExplicit consent/oauth2/tokenToken exchange/oauth2/userinfoUser information for authorized clientsrumahl OS is its own OpenID Provider for installed applications. Local account and session rules still apply.
Bridge methods
| Method | Purpose |
|---|---|
os.info | Bounded shell and app information |
os.theme.get / os.theme.changed | Read and follow the semantic OS palette |
os.notification | Send a user notification |
os.window.close / minimize / focus | Control the app’s own window |
os.capabilities.invoke | Invoke another installed app’s declared capability |
os.warnings.register / publish / test / clear | OS-owned weather-warning source |
os.files.request / read / write | Consented personal-file access |
os.settings.get / os.settings.set | Read or write the app’s own settings |
os.net.request | Brokered HTTP(S) request to a consented origin |
pets.state / interact / action.register / action.unregister | Optional pet interaction surface |
The bridge uses window.postMessage with protocol rumahl.bridge.v1. The channel is bound to the frame’s contentWindow; a sandboxed app has origin "null".
Errors and denial
- 2xx: the request was accepted; 4xx: authentication, permission or request validation; 5xx: 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 ignored.
- A session or UI mode never grants recovery, maintenance or admin rights.
- Do not retry a denied mutation with a different origin or a cached private response.
Was this page helpful?