All articles
Back to Developers
API & contracts

API reference

The current rumahl OS route catalog: shell, files, apps, capabilities, streams, store, warnings, administration, recovery, OIDC, browser auth and the app bridge.

16 min read Updated: 21 November 2026
Markdown

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-store and 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 document
  • GET/api/v1/shell/snapshotCurrent shell, account, app and session state
  • GET/api/v1/shell/eventsLive shell events
  • GET/PUT/api/v1/shell/preferencesLoad or save preferences
  • GET/PUT/api/v1/shell/os-modeLoad or save the OS presentation mode
  • GET/PUT/api/v1/shell/workspaceLoad or save workspace state
  • GET/api/v1/shell/configDisplay-safe platform configuration
  • GET/api/v1/shell/widgets/{id}/frameWidget frame
  • POST/api/v1/shell/surfaces/{id}/frameShell surface frame
  • POST/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 entries
  • GET/PUT/api/v1/shell/fs/contentRead or write shell-visible file content
  • GET/api/v1/shell/fs/resolveResolve a shell-visible path
  • GET/api/v1/filesList files
  • POST/api/v1/filesCreate a file or folder
  • PUT/api/v1/filesMove or rename an entry
  • DELETE/api/v1/filesRemove an entry
  • GET/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 catalog
  • POST/api/v1/shell/apps/{id}/launchAuthorize launch and return a frame URL plus short-lived lease
  • GET/PUT/api/v1/shell/apps/{id}/settingsRead or write manifest-declared app settings
  • GET/api/v1/shell/apps/{id}/dataScoped app data
  • GET/POST/api/v1/shell/apps/{id}/runtimeRead runtime state or send a runtime action
  • POST/api/v1/shell/apps/importImport a verified package
  • DELETE/api/v1/shell/apps/{id}Uninstall an app
  • POST/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 consent
  • DELETE/api/v1/shell/apps/{id}/grants/{grant}Revoke one grant
  • GET/PUT/api/v1/shell/apps/{id}/files/contentRead or write consented app files
  • GET/PUT/DELETE/api/v1/shell/apps/{id}/network/consentList, approve or revoke an origin consent
  • POST/api/v1/shell/apps/{id}/network/requestBrokered HTTP(S) request with server-side secret attachment
  • GET/api/v1/shell/apps/{id}/imageRecorded app image diagnostics
  • GET/api/v1/shell/apps/{id}/storageApp storage diagnostics

Streams and app store

HTTP routes

  • GET/api/v1/shell/streamsList available service streams
  • POST/api/v1/shell/streams/{id}/grantGrant a stream scope
  • GET/api/v1/shell/streams/{id}/api/websocketsWebSocket proxy for a stream
  • GET/api/v1/shell/streams/{id}/Stream root
  • GET/api/v1/shell/streams/{id}/{*tail}Same-origin stream asset proxy
  • GET/api/v1/shell/store/fetchFetch an app-store resource
  • GET/api/v1/shell/store/imageProxy an app-store image
  • POST/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 revision
  • POST/api/v1/shell/warnings/registerRegister a warning publisher
  • POST/api/v1/shell/warnings/publishPublish a warning batch
  • POST/api/v1/shell/warnings/clearClear published warnings
  • POST/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 users
  • PATCH/DELETE/api/v1/admin/users/{id}Update or remove a local user
  • POST/api/v1/admin/users/{id}/passwordSet a user password
  • GET/api/v1/admin/sessionsList sessions
  • DELETE/api/v1/admin/sessions/{id}Revoke one session
  • GET/api/v1/admin/auditRead the admin audit trail
  • GET/PUT/api/v1/admin/policiesRead or set account and device policies
  • GET/POST/api/v1/admin/groupsList or create groups
  • DELETE/api/v1/admin/groups/{id}Delete a group
  • PUT/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 page
  • GET/recovery.jsRecovery client
  • GET/api/v1/recovery/statusRecovery status
  • GET/api/v1/recovery/auditRecovery audit
  • GET/api/v1/recovery/componentsComponents
  • GET/api/v1/recovery/sensorsSensors
  • GET/api/v1/recovery/storageStorage
  • GET/api/v1/recovery/disksDisks
  • POST/api/v1/recovery/disk-testRun a disk test
  • GET/api/v1/recovery/diagnosticsDiagnostics
  • GET/api/v1/recovery/networkNetwork state
  • POST/api/v1/recovery/network-testRun a network test
  • GET/api/v1/recovery/logsLogs
  • GET/api/v1/recovery/crashesCrash records
  • GET/api/v1/recovery/bootBoot state
  • GET/api/v1/recovery/systemSystem information
  • POST/api/v1/recovery/quarantineQuarantine an item
  • GET/PUT/api/v1/recovery/settingsRead or update recovery settings
  • GET/POST/api/v1/recovery/hostHost status or an allowed host action
  • POST/api/v1/recovery/restartRestart through the recovery broker
  • POST/api/v1/recovery/self-healRun self-heal
Recovery is a separate trust boundary

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 metadata
  • GET/oauth2/jwksPublic signing keys
  • GET/oauth2/authorizeAuthorization request
  • POST/oauth2/authorize/approveExplicit consent
  • POST/oauth2/tokenToken exchange
  • GET/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 information
  • bridgeos.theme.get / os.theme.changedRead and follow the semantic OS palette
  • bridgeos.settings.get / os.settings.setRead or write the app’s own manifest settings
  • bridgeos.notificationSend a user notification
  • bridgeos.window.*Close, minimize or focus the app window
  • bridgeos.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 login
  • GET/login/appearance.jsLogin appearance script
  • GET/login/wallpaper.jpgLogin wallpaper
  • GET/POST/logoutLogout page or session logout
  • GET/offlineOffline shell
  • GET/splashStartup splash page
  • GET/offline/pingOffline worker probe
  • GET/offline/wallpaper.jpgOffline wallpaper
  • GET/service-worker.jsService worker
  • GET/os-client.jsOffline client
  • GET/rre-i18n.jsOffline translations
  • GET/manifest.webmanifestInstallation manifest
  • GET/icon.svgInstallation icon
  • GET/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.
Authorization stays on the server

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.

On this page