|
Hermes 0.7.0
Linux game streaming host
|
These endpoints are documented alongside their handlers in the Hermes host. See the HTTP API guide for authentication and client requirements.
Login the user.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
Get a one-time password (OTP).
| response | The HTTP response object. |
| request | The HTTP request object. |
@api_examples{/api/otp| GET| null}
Send a PIN code to the host.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
@api_examples{/api/pin| POST| {"pin":"1234","name":"My PC"}}
Get the list of available applications.
| response | The HTTP response object. |
| request | The HTTP request object. |
Save an application. To save a new application the UUID must be empty. To update an existing application, you must provide the current UUID of the application.
| response | The HTTP response object. |
| request | The HTTP request object. The body for the post request should be JSON serialized in the following format: {
"name": "Application Name",
"output": "Log Output Path",
"cmd": "Command to run the application",
"exclude-global-prep-cmd": false,
"elevated": false,
"auto-detach": true,
"wait-all": true,
"exit-timeout": 5,
"prep-cmd": [
{
"do": "Command to prepare",
"undo": "Command to undo preparation",
"elevated": false
}
],
"detached": [
"Detached command"
],
"image-path": "Full path to the application image. Must be a png file.",
"uuid": "aaaa-bbbb"
}
|
Delete an application.
| response | The HTTP response object. |
| request | The HTTP request object. |
Reorder applications.
| response | The HTTP response object. |
| request | The HTTP request object. |
Launch an application.
| response | The HTTP response object. |
| request | The HTTP request object. |
Close the currently running application.
| response | The HTTP response object. |
| request | The HTTP request object. |
List the games installed in Steam and Lutris, to add as apps.
Reads native Steam (~/.local/share/Steam, ~/.steam/steam) and Flatpak Steam, and asks Lutris (native or Flatpak) for its installed games. Each game comes with the command that starts it; nothing is added here.
| response | The HTTP response object. |
| request | The HTTP request object. |
Upload a cover image.
| response | The HTTP response object. |
| request | The HTTP request object. |
@api_examples{/api/covers/upload| POST| {"key":"igdb_1234","url":"https://images.igdb.com/igdb/image/upload/t_cover_big_2x/abc123.png"}}
Get the list of paired clients.
| response | The HTTP response object. |
| request | The HTTP request object. |
Update client information.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
Disconnect a client.
| response | The HTTP response object. |
| request | The HTTP request object. |
Unpair a client.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
Unpair all clients.
| response | The HTTP response object. |
| request | The HTTP request object. |
Get the current configuration: the computed values Hermes is running with, overlaid with what the configuration file sets explicitly.
| response | The HTTP response object. |
| request | The HTTP request object. |
Get the locale setting.
| response | The HTTP response object. |
| request | The HTTP request object. |
Save the configuration settings.
| response | The HTTP response object. |
| request | The HTTP request object. The body for the post request should be JSON serialized in the following format: {
"key": "value"
}
|
Update existing credentials.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
@api_examples{/api/password| POST| {"currentUsername":"admin","currentPassword":"admin","newUsername":"admin","newPassword":"admin","confirmNewPassword":"admin"}}
Get the logs from the log file.
| response | The HTTP response object. |
| request | The HTTP request object. |
@api_examples{/api/logs| GET| null}
Get the live runtime status: encoder, session, and pipeline counters. The same view the Hestia diagnostics return, behind the normal Web UI session auth so the dashboard can poll it.
| response | The HTTP response object. |
| request | The HTTP request object. |
Everything the Game Mode console shows on one screen, in one call.
| response | The HTTP response object. |
| request | The HTTP request object. |
A console driven with a thumbstick polls; three round trips per poll to assemble one screen is three times the work and three chances to render a half-updated view. What it needs is small and fits in one object: is Hermes up, does anybody need a PIN typed right now, how many devices are paired, and is anything streaming.
pending_pair is the field the console exists for. It is true only while a client's request is parked waiting for four digits, so the console can put the pairing screen in front of the user at the moment it is useful instead of asking them to go looking for it.
List the isolated sessions this server is holding.
| response | The HTTP response object. |
| request | The HTTP request object. |
Not the same list as /api/clients/list, which is who may connect, nor the same as who is streaming: an isolated session outlives the stream that started it, so that a client can come back to the desktop it left. That is also how one can be left running with nobody attached, which is the case this list exists to make visible.
End one isolated session.
| response | The HTTP response object. |
| request | The HTTP request object. |
The body for the POST request should be JSON serialized in the following format:
The stream is stopped first where there is one, so the client is told the session ended rather than being left holding a stream into a desktop that is being torn down underneath it. Ending a session does not unpair the client and does not remove its account or its files: it may connect again and get the same session back.
Reset the display device persistence.
| response | The HTTP response object. |
| request | The HTTP request object. |
@api_examples{/api/reset-display-device-persistence| POST| null}
Restart Hermes.
| response | The HTTP response object. |
| request | The HTTP request object. |
@api_examples{/api/restart| POST| null}
Quit Hermes.
| response | The HTTP response object. |
| request | The HTTP request object. |
Return the current EVDI runtime and DKMS status for the Audio/Video UI.
Start EVDI installation only after the user explicitly confirms it in the UI. pkexec owns the privilege prompt, so Hermes never handles an admin password.
Return the state of the EVDI installation started by this Web UI.
Return the current Hermes-KMS driver and DKMS status for the Audio/Video UI.
Return the static Hestia extension capabilities.
This endpoint is deliberately read-only and unauthenticated so clients can detect Hermes before an extension authentication flow is available. It does not expose host state or permit any host-control operation.
Store settings for a paired Hestia client's next stream launch.
The normal GameStream launch path consumes the short-lived settings and creates a virtual display only when the stream actually begins.
The response's settings says what that launch will apply for the requested app, so the client can show where a host setting overrides its own: for virtual_display and scale_factor, the requested and effective values and the source that decided (client, app_forced for an app that forces its setting, app or host_default when the client's value is not used, headless, or isolated_session for an app that always runs on a display of its own). It is null when no app has the requested id.