Skip to content

API Overview

OmniLux exposes a REST API for core server operations. The public docs focus on the most common integration surfaces and intentionally avoid exhaustive coverage of internal or sensitive admin workflows.

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