Skip to main content

API

Hermes has a RESTful API which can be used to interact with the service. It is served by the Web UI's HTTPS server, on port 47990 by default.

Two different callers are authenticated in two different ways:

  • Web UI endpoints (everything except /api/hestia/v1/*) use the admin account. Authenticate with basic authentication using the admin username and password, or with the session cookie /api/login returns.
  • Hestia endpoints (/api/hestia/v1/*) use the paired client certificate presented during the TLS handshake. This uses the pairing completed by Hestia, Artemis, and Moonlight clients. Each endpoint also requires the matching per-client permission. An unpaired certificate is rejected with 401 unauthorized; a paired client without the permission gets 403 permission_denied. These endpoints never accept the admin password. The one exception is capabilities, which is deliberately unauthenticated so a client can detect Hermes before it has paired; it is read-only and exposes no host state.

Unless otherwise specified, authentication is required for all API calls.

See the C++ reference for host internals.

POST /api/login​

Source-generated reference.

POST /api/otp​

Source-generated reference.

POST /api/pin​

Source-generated reference.

GET /api/apps​

Source-generated reference.

POST /api/apps​

Source-generated reference.

POST /api/apps/delete​

Source-generated reference.

POST /api/apps/reorder​

Source-generated reference.

POST /api/apps/launch​

Source-generated reference.

POST /api/apps/close​

Source-generated reference.

GET /api/library​

Source-generated reference.

POST /api/covers/upload​

Source-generated reference.

GET /api/clients/list​

Source-generated reference.

POST /api/clients/update​

Source-generated reference.

POST /api/clients/disconnect​

Source-generated reference.

POST /api/clients/unpair​

Source-generated reference.

POST /api/clients/unpair-all​

Source-generated reference.

GET /api/config​

Source-generated reference.

GET /api/configLocale​

Source-generated reference.

POST /api/config​

Source-generated reference.

POST /api/password​

Source-generated reference.

GET /api/logs​

Source-generated reference.

GET /api/metrics​

Source-generated reference.

GET /api/gamemode/status​

Source-generated reference.

GET /api/sessions/list​

Source-generated reference.

POST /api/sessions/terminate​

Source-generated reference.

POST /api/reset-display-device-persistence​

Source-generated reference.

POST /api/restart​

Source-generated reference.

POST /api/quit​

Source-generated reference.

Virtual display drivers​

These back the live diagnostic and the guided install in the Audio/Video settings tab. They are Linux-only; on other platforms they answer with error set.

GET /api/evdi/status​

Source-generated reference.

POST /api/evdi/install​

Source-generated reference.

GET /api/evdi/install/status​

Source-generated reference.

GET /api/hermes-kms/status​

Source-generated reference.

Clipboard sharing​

GET /api/clipboard/status​

Report whether clipboard sharing is available on this host, and what to install if it is not.

POST /api/clipboard/install​

Install the clipboard helper this host is missing. On Linux pkexec owns the privilege prompt, so Hermes never handles an admin password.

Hestia API v1​

Authenticated by the paired client certificate, not the admin password — see the note at the top of this page. Clients should gate enhanced behaviour on the capabilities response and fall back to the standard Moonlight/Sunshine flow when these endpoints are absent.

GET /api/hestia/v1/capabilities​

Source-generated reference.

GET /api/hestia/v1 answers with the same document. This is the only endpoint on this page that requires no authentication.

POST /api/hestia/v1/session/prepare​

Source-generated reference.

The response's settings says what the launch will apply for the requested app: for virtual_display and scale_factor, the requested and effective values and the source that decided (client, app_forced, app, host_default, headless or isolated_session). The client's choice wins unless an app forces its own setting; a client can show where that happened.

POST /api/hestia/v1/session/stop​

Clear this client's prepared session and stop the stream it owns, if one is running. Requires the launch permission.

GET /api/hestia/v1/display/status​

Report the virtual display and physical-monitor state: which backend is in use, whether the physical outputs were disabled for a stream, and whether a recovery state file exists. Requires the view permission.

POST /api/hestia/v1/display/recover​

Restore the physical display layout after a session left it disabled. Requires the launch permission.

GET /api/hestia/v1/client/permissions​

Report the calling client's own id and the permissions it was granted, plus the features those permissions enable. Available to any paired client.

GET /api/hestia/v1/diagnostics​

Return the live runtime status, the streaming-readiness preflight and the state of optional dependencies. Requires the view permission.

GET /api/hestia/v1/clipboard​

Read the host clipboard. Requires the clipboard_read permission.

POST /api/hestia/v1/clipboard​

Write the host clipboard. Requires the clipboard_set permission.

GET /api/hestia/v1/commands​

List the server commands this client may run, as configured by server_cmd. Requires the server_cmd permission.

POST /api/hestia/v1/commands/run​

Run one of those server commands by name. Requires the server_cmd permission.