Skip to content
Hoody.com

The versioned GET /api/v1/display/ endpoint serves the Hoody HTML5 Display client with URL-based configuration. Use this endpoint when you need a RESTful, versioned URL for the client (such as behind an API gateway), instead of the service root / path that browsers normally load.

Serves the HTML5 Display client web interface with optional URL-based configuration. The page loads its scripts and styles by relative path, so they resolve only from the service root: in a browser, open / instead of /api/v1/display/.

Use this endpoint for:

  • RESTful API compliance
  • Versioned client access
  • API gateway integrations

The endpoint accepts the same URL parameters as the root path for full client customization.

Example:

https://{projectId}-{containerId}-display-1.{server}.containers.hoody.com/api/v1/display/?displayId=10&ssl=true&sound=true&reconnect=true
NameInTypeRequiredDescription
displayIdqueryintegerNoDisplay ID to use (overrides the *-display-N.* hostname pattern). Valid range: 1 to 999999.
nodequerystringNoHoody node identifier (e.g., example-1, example-2).
project_idquerystringNoHoody project ID.
container_idquerystringNoHoody container ID.
url_display_idquerystringNoDisplay ID for URL construction.
sslquerybooleanNoUse SSL/TLS for the WebSocket connection. Default: true.
webtransportquerybooleanNoUse WebTransport (HTTP/3) instead of WebSocket. Default: false.
soundquerybooleanNoEnable audio forwarding. Default: true.
audio_codecquerystringNoPreferred audio codec.
reconnectquerybooleanNoAuto-reconnect on connection loss. Default: true.

The HTML5 Display client interface loads successfully. The response body is an HTML document that the browser renders to bootstrap the client.

<!DOCTYPE html>
<html>
<head><title>Hoody Display Client</title></head>
<body>
<!-- Display HTML5 client interface -->
</body>
</html>
Terminal window
curl -G "https://{projectId}-{containerId}-display-1.{server}.containers.hoody.com/api/v1/display/" \
--data-urlencode "displayId=10" \
--data-urlencode "node={server}" \
--data-urlencode "project_id={projectId}" \
--data-urlencode "container_id={containerId}" \
--data-urlencode "url_display_id=display-1" \
--data-urlencode "ssl=true" \
--data-urlencode "webtransport=false" \
--data-urlencode "sound=true" \
--data-urlencode "audio_codec=opus" \
--data-urlencode "reconnect=true"