Every endpoint lives under /api/v1 and speaks JSON. The OpenAPI document at /api/v1/openapi.json describes each one in full, fields and answers included. The API guide shows how to use them with curl.
Who says who can call it: anyone, any logged-in user, or admins only.
| Method |
Path |
Who |
What it does |
GET |
/api/v1/setup |
Anyone |
Whether the first time setup is still needed, and the rules for the first admin. |
POST |
/api/v1/setup |
Anyone with the setup code |
Creates the first admin and logs them in. |
POST |
/api/v1/login |
Anyone |
Logs in and sets the session cookie the panel uses. |
POST |
/api/v1/logout |
Anyone |
Logs out and clears the session cookie. |
GET |
/api/v1/me |
Logged in |
Who you’re logged in as and your role. |
POST |
/api/v1/me/password |
Logged in |
Changes your own password. |
GET |
/api/v1/users |
Admins |
Lists the users. |
PUT |
/api/v1/users/{name} |
Admins |
Creates a user or changes their role or password. |
DELETE |
/api/v1/users/{name} |
Admins |
Removes a user and logs them out. |
| Method |
Path |
Who |
What it does |
GET |
/api/v1/server |
Logged in |
Version, uptime, listeners, usage and the sections waiting for a restart. |
POST |
/api/v1/reload |
Admins |
Reads the config file again and applies it. |
GET |
/api/v1/panel |
Logged in |
Rules and timings the panel follows, like name rules, refresh timings and the docs link. |
| Method |
Path |
Who |
What it does |
GET |
/api/v1/settings |
Logged in |
Every setting with what’s in effect, its default, its limits and whether it’s written in the file. |
POST |
/api/v1/settings/check |
Admins |
Checks changes to some settings without saving them. |
PATCH |
/api/v1/settings |
Admins |
Saves changes to some settings and applies them. Needs If-Match. |
GET |
/api/v1/config |
Admins |
The whole config file as it is on disk, with its version. |
POST |
/api/v1/config/check |
Admins |
Checks a whole config file without saving it. |
PUT |
/api/v1/config |
Admins |
Saves a whole config file and applies it. Needs If-Match. |
| Method |
Path |
Who |
What it does |
GET |
/api/v1/streams |
Logged in |
Every configured stream plus the ones live through a template. |
GET |
/api/v1/streams/{name} |
Logged in |
One stream, with its publisher, sources, tracks, stats and viewers. |
PUT |
/api/v1/streams/{name} |
Admins |
Creates or replaces a stream. |
PATCH |
/api/v1/streams/{name} |
Admins |
Changes only the settings you send, or renames the stream. A taken name gets a 409. |
DELETE |
/api/v1/streams/{name} |
Admins |
Removes a stream and sends its publisher away. |
GET |
/api/v1/templates |
Logged in |
Every template, in config order. |
GET |
/api/v1/templates/{name} |
Logged in |
One template. |
PUT |
/api/v1/templates/{name} |
Admins |
Creates or replaces a template. |
DELETE |
/api/v1/templates/{name} |
Admins |
Removes a template. |
GET |
/api/v1/publishers |
Logged in |
Whoever is publishing right now. |
GET |
/api/v1/publishers/{name} |
Logged in |
The publisher of one stream. |
DELETE |
/api/v1/publishers/{name} |
Admins |
Kicks whatever feeds one stream, encoders get disconnected and pulls reconnect. |
Stream names keep their slashes in the path, like /api/v1/streams/news/channel_one.
| Method |
Path |
Who |
What it does |
GET |
/api/v1/history |
Logged in |
Viewers, bitrates and live streams over time for the whole server. Takes since_ms. |
GET |
/api/v1/history/{name} |
Logged in |
The same for one stream. |
GET |
/api/v1/sessions |
Logged in |
Who’s watching right now. Takes stream. |
| Method |
Path |
Who |
What it does |
GET |
/api/v1/openapi.json |
Anyone |
The OpenAPI document. |
GET |
/metrics |
Logged in |
Prometheus metrics, see Metrics. |
GET |
/health |
Anyone |
Answers ok while Nyquist is up. |
- Bitrates are in bits per second and byte counts are plain integers.
- Fields ending in
_ms are milliseconds, and at_ms and since_ms are unix times in milliseconds.
- Timestamps like
started_at are RFC 3339, in UTC.
- Durations in settings are friendly strings, like
"30s".
- Errors are
application/problem+json with status, title and detail.
- Anything that carries config contents comes with
Cache-Control: no-store.