Skip to content

API Overview

OmniLux exposes a REST API for the parts of the self-hosted server that external clients and household tools need most: authentication, catalog browsing, playback, Live TV, profile preferences, and error handling.

Start here

Base URL

text
http://your-server:4000/api

All endpoints are prefixed with /api.

Authentication

Most endpoints require a bearer token:

http
Authorization: Bearer <token>

Use HTTPS whenever the server is reachable outside your local network, and keep tokens out of screenshots, logs, and shared example commands.

Response format

Successful responses return data directly. Error responses use a compact JSON structure:

json
{
  "error": "Human-readable error message",
  "code": "MACHINE_READABLE_CODE"
}

See Errors for common error codes and general rate-limiting behavior.

Main surfaces

The runtime also publishes request, activity, discover, notification, plugin, system, and cloud-link route groups. Those surfaces are intentionally documented more selectively until the public integration contract needs full examples for each group.