---
title: "HTTP request rules"
description: "Session, Origin, CSRF and response rules that apply to every rumahl OS route. The API reference holds the full route catalog."
url: "https://rumahl.com/developers/http-api"
section: "HTTP API"
group: "Reference"
updated: "21 November 2026"
---

# HTTP request rules

> Session, Origin, CSRF and response rules that apply to every rumahl OS route. The API reference holds the full route catalog.

**Area:** HTTP API  
**Group:** Reference  
**Updated:** 21 November 2026  
**Reading time:** 8 min  
**HTML:** https://rumahl.com/developers/http-api

## Authentication and request rules

- 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 never cached by the offline worker.
- Rust revalidates the live account, session, installation and grants on every launch or renewal.

> [!NOTE]
> **Complete route catalog**
>
> The API reference at /developers/api groups every documented HTTP route, bridge method, OIDC endpoint and recovery boundary in one place.

## Route families

The API reference is the canonical route catalog. These families show what the gateway exposes without duplicating every path and method here.

> [!NOTE]
> **Full route catalog**
>
> Open /developers/api for every documented method, path and purpose, including recovery and OIDC endpoints.

| Family | Representative routes |
| --- | --- |
| Shell and session | /api/v1/shell/snapshot, /events, /preferences, /os-mode, /workspace, /config |
| Files | /api/v1/shell/fs, /fs/content, /fs/resolve, /api/v1/files, /files/content |
| Apps | /api/v1/shell/apps, /apps/{id}/launch, /settings, /data, /runtime, /import, DELETE /apps/{id} |
| App consent and network | /apps/{id}/grants, /apps/{id}/files/content, /apps/{id}/network/consent, /apps/{id}/network/request |
| Capabilities | /api/v1/shell/capabilities/invoke |
| Streams and store | /api/v1/shell/streams, /streams/{id}/grant, /streams/{id}/{*tail}, /store/* |
| Surfaces and widgets | /api/v1/shell/widgets/{id}/frame, /surfaces/{id}/frame |
| Warnings | /api/v1/shell/warnings, /warnings/register, /warnings/publish, /warnings/clear |
| Administration | /api/v1/admin/users, /admin/sessions, /admin/audit, /admin/policies, /admin/groups |
| Reporting | /api/v1/shell/report |

## OIDC routes

```text
GET  /.well-known/openid-configuration
GET  /oauth2/jwks
GET  /oauth2/authorize
POST /oauth2/authorize/approve
POST /oauth2/token
GET  /oauth2/userinfo
```

## Recovery routes

The recovery environment is served directly by Rust and does not need the React desktop or SSR renderer. Its API covers status, audit, components, sensors, storage, disks and disk tests, diagnostics, network and network tests, logs, crashes, boot, system, quarantine, settings, host actions, restart and self-heal.

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

## Offline routes

- /os-client.js registers /service-worker.js with scope /.
- The worker caches only /offline, /offline/client.js and /offline/wallpaper.jpg.
- No shell document, login HTML, API response, profile, session, file or app resource is cached.
- Writes are never intercepted, queued or replayed.
