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.

Current releaseUpdated 1 December 2026101 API routes

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.

request flow
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 uses https://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-store and are never cached by the offline worker.
  • App windows never receive the shell session token or a broad bearer credential.

Shell, session and preferences

Shell and session13 routes
GET/Server-rendered shell document
GET/api/v1/shell/snapshotCurrent shell, account, app and session state
GET/api/v1/device/addressesDisplay-safe allowed device origins
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 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
POST/api/v1/shell/reauthenticateRe-check the password for the lock screen
GET/api/v1/shell/theme-policyEffective theme policy for the account

Files and workspace

Files8 routes
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 personal 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 personal file content

Workspace and file requests stay behind the same session and origin checks. Resources are logical references, not arbitrary host paths.

Apps and capabilities

Apps10 routes
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 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
GET/api/v1/shell/apps/{id}/imageRecorded app image diagnostics
GET/api/v1/shell/apps/{id}/storageApp storage diagnostics

The catalog is session-filtered. Launch and renewal authorize the live account, installation and grants again.

Consent and network5 routes
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 secrets

Installation grants nothing. Each request is checked against the live installation, account, session and explicit consent.

Streams and app store

Streams and store8 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

Store, 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.

Store sources and update policy4 routes
GET/PUT/api/v1/shell/store/sourcesRead or save the account source list
GET/PUT/api/v1/shell/store/updatesRead or save the app auto-update policy
GET/api/v1/shell/store/updates/stateLast update check and pending app updates
POST/api/v1/shell/store/updates/checkRun an update check now

The official store is the default until the account saves its own list. The scheduler checks enabled sources in the background.

OS install jobs6 routes
POST/api/v1/shell/apps/previewValidate a package and return its preview
POST/api/v1/shell/apps/installStart an OS-owned install or update job
GET/api/v1/shell/apps/installsList active install jobs
GET/api/v1/shell/apps/install/{job}Poll job progress, consent or error
POST/api/v1/shell/apps/install/{job}/confirmConfirm an install after consent
POST/api/v1/shell/apps/install/{job}/cancelCancel a queued or parked job

Install, 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.

System updates4 routes
GET/PUT/api/v1/shell/system-updatesRead state or save channel and auto-download
POST/api/v1/shell/system-updates/checkCheck the release repository now
POST/api/v1/shell/system-updates/downloadDownload the selected release
POST/api/v1/shell/system-updates/installApply a downloaded release

The platform checks the fixed release repository. Applying an update requires an administrator and the privileged image updater.

Network configuration1 routes
GET/PUT/api/v1/shell/networkRead the observed network or apply a static configuration

Static IPv4, gateway and DNS are validated and applied through the privileged host-config broker. The platform service never writes network files itself.

Weather warnings

OS-owned warnings5 routes
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

Publishing and test warnings require the relevant app capability and policy.

Administration

Admin10 routes
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

Requires 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.

Recovery21 routes
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

OpenID Connect

Standards endpoints6 routes
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

rumahl OS is its own OpenID Provider for installed applications. Local account and session rules still apply.

Bridge methods

MethodPurpose
os.infoBounded shell and app information
os.theme.get / os.theme.changedRead and follow the semantic OS palette
os.notificationSend a user notification
os.window.close / minimize / focusControl the app’s own window
os.capabilities.invokeInvoke another installed app’s declared capability
os.warnings.register / publish / test / clearOS-owned weather-warning source
os.files.request / read / writeConsented personal-file access
os.settings.get / os.settings.setRead or write the app’s own settings
os.net.requestBrokered HTTP(S) request to a consented origin
pets.state / interact / action.register / action.unregisterOptional 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.