---
title: "API reference"
description: "The current rumahl OS route catalog: shell, files, apps, capabilities, streams, store, warnings, administration, recovery, OIDC, browser auth and the app bridge."
url: "https://rumahl.com/developers/api"
section: "API & contracts"
group: "Reference"
updated: "21 November 2026"
---

# API reference

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

**Area:** API & contracts  
**Group:** Reference  
**Updated:** 21 November 2026  
**Reading time:** 16 min  
**HTML:** https://rumahl.com/developers/api

## 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

| Method | Path | Purpose |
| --- | --- | --- |
| GET | / | Server-rendered shell document |
| GET | /api/v1/shell/snapshot | Current shell, account, app and session state |
| GET | /api/v1/shell/events | Live shell events |
| GET/PUT | /api/v1/shell/preferences | Load or save preferences |
| GET/PUT | /api/v1/shell/os-mode | Load or save the OS presentation mode |
| GET/PUT | /api/v1/shell/workspace | Load or save workspace state |
| GET | /api/v1/shell/config | Display-safe platform configuration |
| GET | /api/v1/shell/widgets/{id}/frame | Widget frame |
| POST | /api/v1/shell/surfaces/{id}/frame | Shell surface frame |
| POST | /api/v1/shell/report | Client 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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET/POST/PUT/DELETE | /api/v1/shell/fs | List, create, rename or remove shell-visible entries |
| GET/PUT | /api/v1/shell/fs/content | Read or write shell-visible file content |
| GET | /api/v1/shell/fs/resolve | Resolve a shell-visible path |
| GET | /api/v1/files | List files |
| POST | /api/v1/files | Create a file or folder |
| PUT | /api/v1/files | Move or rename an entry |
| DELETE | /api/v1/files | Remove an entry |
| GET/PUT | /api/v1/files/content | Download 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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /api/v1/shell/apps | Bounded, session-filtered app catalog |
| POST | /api/v1/shell/apps/{id}/launch | Authorize launch and return a frame URL plus short-lived lease |
| GET/PUT | /api/v1/shell/apps/{id}/settings | Read or write manifest-declared app settings |
| GET | /api/v1/shell/apps/{id}/data | Scoped app data |
| GET/POST | /api/v1/shell/apps/{id}/runtime | Read runtime state or send a runtime action |
| POST | /api/v1/shell/apps/import | Import a verified package |
| DELETE | /api/v1/shell/apps/{id} | Uninstall an app |
| POST | /api/v1/shell/capabilities/invoke | Invoke 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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET/PUT | /api/v1/shell/apps/{id}/grants | Read 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/content | Read or write consented app files |
| GET/PUT/DELETE | /api/v1/shell/apps/{id}/network/consent | List, approve or revoke an origin consent |
| POST | /api/v1/shell/apps/{id}/network/request | Brokered HTTP(S) request with server-side secret attachment |
| GET | /api/v1/shell/apps/{id}/image | Recorded app image diagnostics |
| GET | /api/v1/shell/apps/{id}/storage | App storage diagnostics |

## Streams and app store

### HTTP routes

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /api/v1/shell/streams | List available service streams |
| POST | /api/v1/shell/streams/{id}/grant | Grant a stream scope |
| GET | /api/v1/shell/streams/{id}/api/websockets | WebSocket 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/fetch | Fetch an app-store resource |
| GET | /api/v1/shell/store/image | Proxy an app-store image |
| POST | /api/v1/shell/store/trust | Write 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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /api/v1/shell/warnings | Active warnings and revision |
| POST | /api/v1/shell/warnings/register | Register a warning publisher |
| POST | /api/v1/shell/warnings/publish | Publish a warning batch |
| POST | /api/v1/shell/warnings/clear | Clear published warnings |
| POST | /api/v1/shell/warnings/test | Publish a test warning |

## Administration

### HTTP routes

The admin surface requires an administrator actor. Account administration is not exposed to an ordinary app window.

| Method | Path | Purpose |
| --- | --- | --- |
| GET/POST | /api/v1/admin/users | List or create local users |
| PATCH/DELETE | /api/v1/admin/users/{id} | Update or remove a local user |
| POST | /api/v1/admin/users/{id}/password | Set a user password |
| GET | /api/v1/admin/sessions | List sessions |
| DELETE | /api/v1/admin/sessions/{id} | Revoke one session |
| GET | /api/v1/admin/audit | Read the admin audit trail |
| GET/PUT | /api/v1/admin/policies | Read or set account and device policies |
| GET/POST | /api/v1/admin/groups | List or create groups |
| DELETE | /api/v1/admin/groups/{id} | Delete a group |
| PUT | /api/v1/admin/groups/{id}/members | Update group membership |

## Recovery API

### HTTP routes

The recovery environment is served directly by Rust and does not need the React desktop or SSR renderer.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /recovery | Recovery page |
| GET | /recovery.js | Recovery client |
| GET | /api/v1/recovery/status | Recovery status |
| GET | /api/v1/recovery/audit | Recovery audit |
| GET | /api/v1/recovery/components | Components |
| GET | /api/v1/recovery/sensors | Sensors |
| GET | /api/v1/recovery/storage | Storage |
| GET | /api/v1/recovery/disks | Disks |
| POST | /api/v1/recovery/disk-test | Run a disk test |
| GET | /api/v1/recovery/diagnostics | Diagnostics |
| GET | /api/v1/recovery/network | Network state |
| POST | /api/v1/recovery/network-test | Run a network test |
| GET | /api/v1/recovery/logs | Logs |
| GET | /api/v1/recovery/crashes | Crash records |
| GET | /api/v1/recovery/boot | Boot state |
| GET | /api/v1/recovery/system | System information |
| POST | /api/v1/recovery/quarantine | Quarantine an item |
| GET/PUT | /api/v1/recovery/settings | Read or update recovery settings |
| GET/POST | /api/v1/recovery/host | Host status or an allowed host action |
| POST | /api/v1/recovery/restart | Restart through the recovery broker |
| POST | /api/v1/recovery/self-heal | Run self-heal |

> [!WARNING]
> **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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | /.well-known/openid-configuration | Provider metadata |
| GET | /oauth2/jwks | Public signing keys |
| GET | /oauth2/authorize | Authorization request |
| POST | /oauth2/authorize/approve | Explicit consent |
| POST | /oauth2/token | Token exchange |
| GET | /oauth2/userinfo | User 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".

| Method | Path | Purpose |
| --- | --- | --- |
| bridge | os.info | Bounded shell and app information |
| bridge | os.theme.get / os.theme.changed | Read and follow the semantic OS palette |
| bridge | os.settings.get / os.settings.set | Read or write the app’s own manifest settings |
| bridge | os.notification | Send a user notification |
| bridge | os.window.* | Close, minimize or focus the app window |
| bridge | os.capabilities.invoke | Invoke 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.

| Method | Path | Purpose |
| --- | --- | --- |
| GET/POST | /login | Login page or password login |
| GET | /login/appearance.js | Login appearance script |
| GET | /login/wallpaper.jpg | Login wallpaper |
| GET/POST | /logout | Logout page or session logout |
| GET | /offline | Offline shell |
| GET | /splash | Startup splash page |
| GET | /offline/ping | Offline worker probe |
| GET | /offline/wallpaper.jpg | Offline wallpaper |
| GET | /service-worker.js | Service worker |
| GET | /os-client.js | Offline client |
| GET | /rre-i18n.js | Offline translations |
| GET | /manifest.webmanifest | Installation manifest |
| GET | /icon.svg | Installation icon |
| GET | /icon-512.png | Large 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.

> [!IMPORTANT]
> **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

- [Request rules and enforcement](/developers/http-api)
- [Build an app](/developers/build-app)
- [App packages and signing](/developers/app-packages)
- [App hosting, leases and the bridge](/developers/app-hosting)
- [Install, uninstall and app databases](/developers/app-resources)
- [Accounts and OpenID Connect](/developers/identity-oidc)
- [Connectors and external services](/developers/connectors)
