Mediarium
Documentation menu

Docs / Reference

HTTP API reference

Every route the server exposes. Routes marked public need no sign-in; all others need a session cookie or an X-API-Key header (see the Profile page). Routes marked any account work for members and administrators; routes marked admin answer members with 403 {"error": "Only an administrator can do this."} (see Accounts). Responses are JSON; errors are {"error": "..."}.

activity

Method Path Access What it does
GET /api/activity any account

apps

Method Path Access What it does
GET /api/apps any account lists the add-ons: every one for an administrator (who edits them), the enabled ones for everybody else.
PUT /api/apps admin replaces the whole list (administrators).

archiver

Method Path Access What it does
GET /api/archiver admin GET /api/archiver: the settings, the followed sources and the last videos.
PUT /api/archiver admin PUT /api/archiver saves the settings.
POST /api/archiver/sources admin POST /api/archiver/sources follows a channel or a playlist.
DELETE /api/archiver/sources/{id} admin DELETE /api/archiver/sources/{id} stops following a source.
POST /api/archiver/sources/{id}/check admin POST /api/archiver/sources/{id}/check checks one source now, in the background, and tries the videos that failed again.
POST /api/archiver/test admin POST /api/archiver/test runs "yt-dlp --version" on the file at the given path (or the saved one) and answers with the version.

auth

Method Path Access What it does
GET /api/auth/api-keys any account lists the account's API keys without the keys themselves (only a hash is stored; see internal/auth.CreateAPIKey), just enough to recognise and revoke one later.
POST /api/auth/api-keys any account makes a new API key and returns the key itself this one time.
DELETE /api/auth/api-keys/{id} any account
POST /api/auth/change-password any account
GET /api/auth/discover-services any account answers GET /api/auth/discover-services.
PUT /api/auth/discover-services any account answers PUT /api/auth/discover-services {"services": ["netflix"], "on": true}.
GET /api/auth/ereader any account GET /api/auth/ereader
DELETE /api/auth/ereader/kobo any account DELETE /api/auth/ereader/kobo
POST /api/auth/ereader/kobo any account POST /api/auth/ereader/kobo: makes a new Kobo address; the old one stops working and the next sync sends everything again.
POST /api/auth/ereader/kobo/resync any account POST /api/auth/ereader/kobo/resync: forgets what was sent to the Kobo, so the next sync sends every book again.
DELETE /api/auth/ereader/opds any account DELETE /api/auth/ereader/opds
POST /api/auth/ereader/opds any account POST /api/auth/ereader/opds: makes a new e-reader password.
GET /api/auth/idle-signout admin
PUT /api/auth/idle-signout admin
GET /api/auth/ldap admin GET /api/auth/ldap
PUT /api/auth/ldap admin PUT /api/auth/ldap saves the setup.
POST /api/auth/ldap/test admin POST /api/auth/ldap/test {config..., testUsername, testPassword}: connects with the details sent (not yet saved), finds the user and shows what was found.
POST /api/auth/login public
POST /api/auth/login/code public POST /api/auth/login/code {"challenge", "code"} or {"challenge", "recoveryCode"}
POST /api/auth/logout public
GET /api/auth/me any account
GET /api/auth/methods public GET /api/auth/methods: public, so the sign-in page can show the buttons.
GET /api/auth/oidc admin GET /api/auth/oidc
PUT /api/auth/oidc admin PUT /api/auth/oidc saves the setup.
GET /api/auth/oidc/callback public GET /api/auth/oidc/callback: the provider sends the browser back here.
DELETE /api/auth/oidc/link any account DELETE /api/auth/oidc/link: unties the account from the provider.
POST /api/auth/oidc/link any account POST /api/auth/oidc/link {"password"}: starts tying the signed-in account to the provider.
GET /api/auth/oidc/start public GET /api/auth/oidc/start?next=/path: begins a sign-in.
POST /api/auth/oidc/test admin POST /api/auth/oidc/test {config...}: reads the provider's setup from the address sent (nothing is saved) and reports what Mediarium found, with the address ...
POST /api/auth/passkey/login/begin public POST /api/auth/passkey/login/begin: public.
POST /api/auth/passkey/login/finish public POST /api/auth/passkey/login/finish?c= (body: the browser's answer)
GET /api/auth/passkeys any account GET /api/auth/passkeys: the signed-in person's passkeys, and whether they can add one.
POST /api/auth/passkeys/register/begin any account POST /api/auth/passkeys/register/begin {"password"}
POST /api/auth/passkeys/register/finish any account POST /api/auth/passkeys/register/finish?c=&name=
DELETE /api/auth/passkeys/{id} any account DELETE /api/auth/passkeys/{id}
PUT /api/auth/passkeys/{id} any account PUT /api/auth/passkeys/{id} {"name"}
PUT /api/auth/profile any account lets the logged-in user change their username, name and email, returning the updated account.
GET /api/auth/proxy-signin admin
PUT /api/auth/proxy-signin admin
GET /api/auth/request-notices any account GET /api/auth/request-notices
PUT /api/auth/request-notices any account PUT /api/auth/request-notices {"enabled": bool}
POST /api/auth/request-notices/devices any account POST /api/auth/request-notices/devices {"subscription": "", "name": "..."}
DELETE /api/auth/request-notices/devices/{id} any account DELETE /api/auth/request-notices/devices/{id}
DELETE /api/auth/sessions any account signs the caller out everywhere except this browser (DELETE /api/auth/sessions).
GET /api/auth/sessions any account lists the places the caller is signed in (GET /api/auth/sessions).
GET /api/auth/sign-in admin GET /api/auth/sign-in
PUT /api/auth/sign-in admin PUT /api/auth/sign-in {"localSignIn"?: bool, "passkeys"?: bool}
GET /api/auth/two-step any account GET /api/auth/two-step: the signed-in person's own state.
POST /api/auth/two-step/disable any account POST /api/auth/two-step/disable {"password"}
POST /api/auth/two-step/enable any account POST /api/auth/two-step/enable {"code"}: the first code from the app proves it was added; two-step sign-in is on from then, and the answer carries the recove...
POST /api/auth/two-step/recovery any account POST /api/auth/two-step/recovery {"password"}: a new set of recovery codes (the old ones stop working).
POST /api/auth/two-step/setup any account POST /api/auth/two-step/setup: a new secret to add to an authenticator app, as a QR code and as text.

automation

Method Path Access What it does
GET /api/automation/quiet admin
PUT /api/automation/quiet admin starts the quiet time for the given number of minutes, or ends it with 0.

blocklist

Method Path Access What it does
DELETE /api/blocklist admin
GET /api/blocklist admin lists the blocklist, newest first.
DELETE /api/blocklist/{id} admin
PUT /api/blocklist/{id}/scope admin switches an entry between "all" (every title) and "item" (only the title it was made for).

book-authors

Method Path Access What it does
GET /api/book-authors any account GET /api/book-authors: the authors followed.
DELETE /api/book-authors/{key}/follow any account DELETE /api/book-authors/{key}/follow: stop following.
PUT /api/book-authors/{key}/follow any account PUT /api/book-authors/{key}/follow: follow an author (or change the formats).
GET /api/book-authors/{key}/works any account GET /api/book-authors/{key}/works?sort=popular|newest

book-covers

Method Path Access What it does
GET /api/book-covers/{file} any account serves a book cover from the local copy.

book-series

Method Path Access What it does
GET /api/book-series any account GET /api/book-series: the series followed.
DELETE /api/book-series/{source}/{key}/follow any account DELETE /api/book-series/{source}/{key}/follow: stop following.
PUT /api/book-series/{source}/{key}/follow any account PUT /api/book-series/{source}/{key}/follow: follow a series (or change the formats) and add the books of it that are missing.

book-works

Method Path Access What it does
GET /api/book-works/{key} any account GET /api/book-works/{key}: one book from Open Library for its info page, or from Hardcover when the key is one of theirs, marked when it is already in the li...
GET /api/book-works/{key}/series any account GET /api/book-works/{key}/series?title=&author=: the series this book is in ({"series": null} when none is known).

books

Method Path Access What it does
GET /api/books any account
POST /api/books any account adds a book with the formats asked for.
GET /api/books/discover any account GET /api/books/discover?list=trending&period=weekly&page=1 GET /api/books/discover?list=browse&subject=fantasy&from=2000&to=2010&sort=popular&page=1
GET /api/books/import admin
POST /api/books/import admin starts reading the books folders (administrators).
POST /api/books/import/match admin attaches a book picked by hand to one of the files the last import did not find (administrators, like the import itself).
POST /api/books/import/retry admin looks again only at the books the last import did not find (or could not save), without reading the folders again: for the ones Open Library or Audnexus did ...
POST /api/books/manual any account is POST /api/books/manual: a book, an audiobook or both, typed in by hand.
GET /api/books/progress any account GET /api/books/progress: where the person is in every book.
GET /api/books/search any account looks books up on Open Library, and on Hardcover when a token is saved.
GET /api/books/search/google any account lists Google Books results in Google's order, in the movie and show info language.
POST /api/books/search/google any account adds a book found through Google Books.
GET /api/books/subjects any account GET /api/books/subjects: the genres the Discover filter offers.
DELETE /api/books/{id} admin removes a book; with ?deleteFiles=true its files go to the recycle bin of their folder (or are deleted when the bin is off).
GET /api/books/{id} any account
GET /api/books/{id}/comic any account says how many pages the comic of a book has.
GET /api/books/{id}/comic/{n} any account serves one page (n counts from 1).
DELETE /api/books/{id}/cover any account DELETE /api/books/{id}/cover: take the chosen cover away.
POST /api/books/{id}/cover any account POST /api/books/{id}/cover: a multipart form with the picture in "file".
PUT /api/books/{id}/cover/edition any account PUT /api/books/{id}/cover/edition {"coverId": 123}: show another edition's cover.
GET /api/books/{id}/cover/editions any account GET /api/books/{id}/cover/editions: the covers Open Library has for the book.
POST /api/books/{id}/cover/link any account POST /api/books/{id}/cover/link {"url": "https://..."}
GET /api/books/{id}/file-cover any account serves the cover of a book taken from its own file (the first page of a comic).
POST /api/books/{id}/grab any account
GET /api/books/{id}/links any account GET /api/books/{id}/links: where the book can be read or listened to, the connected Audiobookshelf and Kavita servers that have it.
GET /api/books/{id}/listen/{n} any account GET /api/books/{id}/listen/{n}: one track, with ranges for seeking.
GET /api/books/{id}/own-cover any account serves the picture a person gave a book.
GET /api/books/{id}/progress any account GET /api/books/{id}/progress?format=: where the person is in one format.
PUT /api/books/{id}/progress any account PUT /api/books/{id}/progress: saves where the person is.
GET /api/books/{id}/read any account GET /api/books/{id}/read: the ebook file.
GET /api/books/{id}/releases any account
POST /api/books/{id}/search any account
GET /api/books/{id}/tracks any account GET /api/books/{id}/tracks: the audiobook's tracks in order.
PUT /api/books/{id}/want any account

calendar

Method Path Access What it does
GET /api/calendar any account
DELETE /api/calendar/feed any account
GET /api/calendar/feed any account
POST /api/calendar/feed any account
GET /api/calendar/feed/{file} public serves the .ics file.

collections

Method Path Access What it does
GET /api/collections any account is GET /api/collections: the collections that have a film in the library, with the library ids of those films.
GET /api/collections/{id} any account is GET /api/collections/{id}: the collection from TMDB with which of its films are in the library, and the follow choice.
POST /api/collections/{id}/add admin is POST /api/collections/{id}/add: adds the films of a collection that are not in the library yet, with the profile, folder and monitoring chosen, and can st...
PUT /api/collections/{id}/follow admin is PUT /api/collections/{id}/follow: turns "also add new films in this collection" on or off.

custom-formats

Method Path Access What it does
GET /api/custom-formats any account
POST /api/custom-formats admin imports pasted JSON.
POST /api/custom-formats/assign admin gives the chosen formats a score in each of the chosen quality profiles: TRaSH's own score for each, or one score typed in.
POST /api/custom-formats/default-scores admin says what the TRaSH Guides score each of these formats, for the form that adds formats to a profile.
POST /api/custom-formats/test any account says which formats a release name matches.
GET /api/custom-formats/trash-update admin lists what an update from the guides would change.
POST /api/custom-formats/trash-update admin updates the formats that came from the guides.
GET /api/custom-formats/trash-update/status admin tells when the guides were last checked and when the next check is due.
DELETE /api/custom-formats/{id} admin
PUT /api/custom-formats/{id} admin

dashboard

Method Path Access What it does
GET /api/dashboard any account

debrid

Method Path Access What it does
GET /api/debrid admin GET /api/debrid
PUT /api/debrid admin PUT /api/debrid {"service": "realdebrid", "apiKey": "..."}
POST /api/debrid/test admin POST /api/debrid/test {"service": ..., "apiKey": ...}: a blank key tests the saved one.
GET /api/debrid/torrents admin is GET /api/debrid/torrents: what is on the Real-Debrid, TorBox or Premiumize account.
POST /api/debrid/torrents/{id}/remove admin is POST /api/debrid/torrents/{id}/remove: delete a torrent from the account.

discover

Method Path Access What it does
GET /api/discover/browse any account
GET /api/discover/for-you any account
GET /api/discover/genres any account lists TMDB's genres for movies or shows, for the Discover genre filter.
GET /api/discover/import-list any account turns a public Trakt list address into full TMDB movie details for the Discover page.
GET /api/discover/list any account
GET /api/discover/popular any account
GET /api/discover/search any account searches the movie and TV databases together, which is the first step of finding something.
GET /api/discover/trending any account
GET /api/discover/tv/popular any account
GET /api/discover/tv/trending any account

download-client

Method Path Access What it does
GET /api/download-client admin GET /api/download-client: the download client settings, without the password.
PUT /api/download-client admin PUT /api/download-client: save the download client.
POST /api/download-client/test admin POST /api/download-client/test {"kind", "url", "username", "password"}: a blank password tests the saved one when the address is the saved one.
GET /api/download-client/torrents admin is GET /api/download-client/torrents?scope=mine|all: the torrents in the download client, only Mediarium's own (its category) or everything in it.
POST /api/download-client/torrents/{hash}/{action} admin is POST /api/download-client/torrents/{hash}/{action} with action pause, resume, recheck, remove (keep the files) or remove-files.

downloads

Method Path Access What it does
POST /api/downloads/manual admin adds an NZB, a torrent or a magnet link to the download line for a chosen movie, episode, album or book.
GET /api/downloads/status admin summarises the two built-in downloaders for the Downloads settings page: Usenet is ready once at least one server is enabled; the torrent client is always re...
GET /api/downloads/stream-pause admin shows the switch and what the last check found.
PUT /api/downloads/stream-pause admin turns the switch on or off.
GET /api/downloads/torrent-options admin
PUT /api/downloads/torrent-options admin

episodes

Method Path Access What it does
DELETE /api/episodes/{id}/file admin deletes one episode's file.
POST /api/episodes/{id}/locate-file admin points one episode at a video file a person picked in the library folders (in the show's own folder or elsewhere).
PUT /api/episodes/{id}/monitored any account
GET /api/episodes/{id}/subtitles any account
POST /api/episodes/{id}/subtitles/download any account
GET /api/episodes/{id}/subtitles/status any account

events

Method Path Access What it does
GET /api/events any account serves the live stream: "hello" first, then an event for each change, and a comment line every few seconds while it is quiet.

exclusions

Method Path Access What it does
GET /api/exclusions any account
POST /api/exclusions any account
DELETE /api/exclusions/{kind}/{tmdbId} any account

feature-offers

Method Path Access What it does
GET /api/feature-offers admin answers what was chosen for each offer: "never", or "later:" for not now.
PUT /api/feature-offers admin remembers the answer to one offer.

feedback

Method Path Access What it does
POST /api/feedback any account forwards a report or idea to the developer.

files

Method Path Access What it does
GET /api/files/stream any account plays a video (or, for an album, an audio track), or shows a picture or text file, from a title's folder in the browser: ?movie={id}&path=, ?s...

flaresolverr

Method Path Access What it does
GET /api/flaresolverr/status admin reports whether the Cloudflare helper is built in and answering (admin only).

health

Method Path Access What it does
GET /api/health any account lists setup problems for administrators.

img

Method Path Access What it does
GET /api/img/{kind}/{size}/{file} any account serves a poster, backdrop or picture of a person from a known picture host, at one of a fixed set of sizes and in the best format the browser accepts.

import-lists

Method Path Access What it does
GET /api/import-lists admin GET /api/import-lists
POST /api/import-lists admin POST /api/import-lists
POST /api/import-lists/plex/{userId}/run admin POST /api/import-lists/plex/{userId}/run: check one account's Plex watchlist now.
POST /api/import-lists/preview admin POST /api/import-lists/preview: read a list as typed, without saving it or adding anything, and say what is on it.
DELETE /api/import-lists/{id} admin DELETE /api/import-lists/{id}: forgets the list.
PUT /api/import-lists/{id} admin PUT /api/import-lists/{id}
PUT /api/import-lists/{id}/enabled admin PUT /api/import-lists/{id}/enabled {"enabled": true}: the switch on the list.
POST /api/import-lists/{id}/forget admin POST /api/import-lists/{id}/forget: the list starts over, treating every title on it as new.
GET /api/import-lists/{id}/history admin GET /api/import-lists/{id}/history
POST /api/import-lists/{id}/run admin POST /api/import-lists/{id}/run: read the list now.

indexer-definitions

Method Path Access What it does
GET /api/indexer-definitions admin lists the sites that can be added, downloading the community definitions on first use (refresh=1 re-downloads them).
POST /api/indexer-definitions/custom admin takes the text of a Cardigann (.yml) definition.
DELETE /api/indexer-definitions/custom/{id} admin deletes an added definition file, unless an indexer still uses it.

indexers

Method Path Access What it does
GET /api/indexers admin lists the configured indexers, never with their API keys or passwords.
POST /api/indexers admin adds an indexer: a Newznab/Torznab API, or a site from the definition list (definitionId + settings).
GET /api/indexers/seed-rules admin
POST /api/indexers/test admin tests an indexer that has not been saved yet.
DELETE /api/indexers/{id} admin
PUT /api/indexers/{id} admin edits a saved indexer.
GET /api/indexers/{id}/categories admin lists the categories a saved Newznab or Torznab indexer says it has (its capabilities), as suggestions for the extra categories.
PUT /api/indexers/{id}/enabled admin
PUT /api/indexers/{id}/priority admin sets how much an indexer is preferred: a number from 1 to 50, lower first.
POST /api/indexers/{id}/resume admin is "Try again now": the indexer is asked by the next search, and its failures are forgotten.
PUT /api/indexers/{id}/seed-rules admin
POST /api/indexers/{id}/test admin tests a saved indexer with its stored credentials.

irc-announce

Method Path Access What it does
GET /api/irc-announce admin lists the connections with how each is doing, and the built-in templates.
POST /api/irc-announce admin
POST /api/irc-announce/test admin reads pasted announcement lines with a template and says how they were read and whether the release would be grabbed.
DELETE /api/irc-announce/{id} admin
PUT /api/irc-announce/{id} admin
PUT /api/irc-announce/{id}/enabled admin
GET /api/irc-announce/{id}/log admin returns the last 50 announcements of a connection and what became of each, newest first.

issues

Method Path Access What it does
GET /api/issues any account GET /api/issues: an administrator sees every report, anyone else their own.
POST /api/issues any account POST /api/issues {"kind": "movie", "itemId": 12, "category": "no-sound", "episode": "S01E02", "message": "..."}
DELETE /api/issues/{id} admin DELETE /api/issues/{id}
POST /api/issues/{id}/reopen admin POST /api/issues/{id}/reopen
POST /api/issues/{id}/resolve admin POST /api/issues/{id}/resolve {"comment": "..."}

library

Method Path Access What it does
GET /api/library/browse admin lists the folders and video files inside the library folders and the downloads folder, for choosing a file or folder.
POST /api/library/bulk/folder admin is POST /api/library/bulk/folder: the chosen titles keep their files where they are, and their next files go to rootPath.
PUT /api/library/bulk/monitored admin turns monitoring on or off for the chosen titles.
PUT /api/library/bulk/no-upgrade admin switches the search for better versions off (noUpgrade true) or back on for the chosen titles.
PUT /api/library/bulk/profile admin gives the chosen titles a quality profile.
POST /api/library/bulk/remove admin takes the chosen titles out of the library, one after the other.
POST /api/library/bulk/replace-smaller admin starts the replacement for the movies of a selection.
POST /api/library/bulk/search-now admin looks for releases of the chosen titles that are monitored and still missing something.
PUT /api/library/bulk/sources admin chooses where the chosen titles are downloaded from.
PUT /api/library/bulk/tags admin adds and removes tags on the chosen titles (administrators).
GET /api/library/counts any account answers how many movies and shows the library has, for the Library's tabs, so a tab does not have to load the other tab's whole list just to show its number.
GET /api/library/file-details any account says how far the reading of the files has got, for the note in the Library.
GET /api/library/folders any account is GET /api/library/folders (any account): the folders a movie or a show can be kept in, the main one first, and under newTitles where a title added without ...
POST /api/library/import admin registers the reviewed selections.
GET /api/library/import/active admin lists what is going on: scans waiting to be reviewed or still running, imports still filling in details, and finished imports whose banner has not been dismi...
GET /api/library/import/batches/{id} admin
POST /api/library/import/batches/{id}/dismiss admin
POST /api/library/import/batches/{id}/watch admin switches monitoring on for exactly the titles an import added, once it has finished, so the person can start it with one click on the report.
POST /api/library/incomplete/redo admin deletes the library files that look incomplete among the given movies, shows and episodes, blocklists the release each one came from when it is known, and se...
POST /api/library/metadata-files/cancel admin
POST /api/library/metadata-files/run admin is POST /api/library/metadata-files/run: writes the files for what is in the library already.
GET /api/library/metadata-files/status admin
POST /api/library/move-files admin is POST /api/library/move-files: moves the files of the chosen titles to the folder, in the background.
POST /api/library/move-files/cancel admin
POST /api/library/move-files/preview admin is POST /api/library/move-files/preview: what moving the files of the chosen titles to a folder would do.
GET /api/library/move-files/status admin
GET /api/library/owned any account
POST /api/library/scan admin starts a scan of an existing folder.
GET /api/library/scan/{id} admin
GET /api/library/suggest any account searches the library as a person types (GET /api/library/suggest?q=star+w&limit=8): the movies, shows, books, artists and albums whose name has a word that s...

lifecycle

Method Path Access What it does
GET /api/lifecycle admin GET /api/lifecycle
PUT /api/lifecycle admin PUT /api/lifecycle with the rules.
POST /api/lifecycle/dry-run admin POST /api/lifecycle/dry-run: what the saved rules would put on the shelf now.
POST /api/lifecycle/keep any account POST /api/lifecycle/keep {"kind": "movie" | "episode", "id": 3}: the title on the shelf stays.
GET /api/lifecycle/shelf any account GET /api/lifecycle/shelf: the titles on the Leaving soon shelf, the ones due first at the top.
POST /api/lifecycle/unkeep admin POST /api/lifecycle/unkeep {"kind": "movie" | "series", "id": 3}: the rules may take the title again.

manual-import

Method Path Access What it does
GET /api/manual-import admin lists the video files in a folder (the downloads folder unless ?folder= names another), biggest first, with what each file's name suggests.
POST /api/manual-import admin brings one file into the library as the movie or episode chosen: linked or copied, and for a move the original is removed afterwards.
GET /api/manual-import/folders admin lists the folders inside a folder (the top of the filesystem when none is given), for choosing where a manual import looks.

media-servers

Method Path Access What it does
GET /api/media-servers admin lists the Plex, Jellyfin and Emby servers (tokens are never included).
POST /api/media-servers admin adds a media server; refreshAfterImport and enabled default to on.
POST /api/media-servers/discover admin looks for Plex, Jellyfin and Emby servers on the local network: broadcasts, plus a scan of private networks (subnets, or Mediarium's own networks and common ...
POST /api/media-servers/jellyfin/quickconnect admin starts Jellyfin Quick Connect at baseUrl and answers the code to enter in a Jellyfin app, and an id to poll with.
GET /api/media-servers/jellyfin/quickconnect/{id} admin reports whether the Quick Connect code was approved; once it is, the Jellyfin server is saved with the access token it gave and returned as server.
GET /api/media-servers/links any account lists where a title can be watched: with tmdbId and kind (movie or tv), the enabled servers that have it; without tmdbId, each enabled server's own home page...
POST /api/media-servers/login admin signs in to Jellyfin or Emby with a username and password and saves the server with the access token it gives; the password is never stored.
POST /api/media-servers/plex/pin admin starts Sign in with Plex: it answers the PIN code and the app.plex.tv address where the person approves it.
GET /api/media-servers/plex/pin/{pinId} admin reports whether the Plex PIN was approved yet; once it is, it lists the account's servers (never their tokens).
POST /api/media-servers/plex/pin/{pinId}/add admin adds a server from the signed-in Plex account with its own access token, using uri or, if that doesn't answer, the first of its addresses that does (local on...
POST /api/media-servers/test admin tests the server as typed into the form, without saving it.
DELETE /api/media-servers/{id} admin removes a saved media server.
PUT /api/media-servers/{id} admin edits a saved server; a blank token keeps the saved one.
POST /api/media-servers/{id}/refresh admin asks a saved server to scan all of its libraries now.
POST /api/media-servers/{id}/test admin tests a saved server and remembers the outcome (shown on the dashboard when it fails).

metrics

Method Path Access What it does
GET /api/metrics admin gives library, queue, disk and health numbers in the Prometheus text format (version 0.0.4), for people who graph their server with Grafana.

migrate

Method Path Access What it does
POST /api/migrate/preview admin reads the connected apps (Radarr, Sonarr, Prowlarr, SABnzbd, NZBGet and others; only GET requests, plus the read-only version and config calls to NZBGet) and...
POST /api/migrate/run admin starts importing from the connected apps in the background; GET /api/migrate/status follows it.
GET /api/migrate/status admin reports the progress and results of the current or last import.

modules

Method Path Access What it does
GET /api/modules any account tells every signed-in account which modules are on, and whether subtitles are switched on, so the interface shows only their pages.
PUT /api/modules admin switches modules on or off (administrators) and answers with the new state.

monitor

Method Path Access What it does
POST /api/monitor/run admin checks everything right now (even when the schedule is off) and returns the fresh results.
GET /api/monitor/status admin reports the last result for every enabled Usenet server and indexer.

movies

Method Path Access What it does
GET /api/movies any account
POST /api/movies any account adds a movie to the library as missing, from a search result or a Discover pick, using the choices made in the add dialog: quality profile, whether to monito...
DELETE /api/movies/{id} admin removes a movie from the library.
GET /api/movies/{id} any account
GET /api/movies/{id}/copies any account GET /api/movies/{id}/copies
POST /api/movies/{id}/copies admin POST /api/movies/{id}/copies {"profileId": 4} adds a second copy of a movie and starts looking for it.
GET /api/movies/{id}/disk-usage admin
GET /api/movies/{id}/events any account lists a movie's own activity log, newest first (at most 200 events).
DELETE /api/movies/{id}/file admin deletes a movie's file and makes the movie wanted again.
GET /api/movies/{id}/files any account lists the files in a movie's folder on disk.
PUT /api/movies/{id}/folder any account is PUT /api/movies/{id}/folder: where the movie's next files go.
POST /api/movies/{id}/grab any account queues a release for a movie and starts the download and import in the background.
POST /api/movies/{id}/locate-file admin sets the file a person picked as the movie's file.
POST /api/movies/{id}/locate-folder admin looks in a folder a person picked and gives the movie the biggest video there.
PUT /api/movies/{id}/monitored any account
PUT /api/movies/{id}/no-upgrade admin and handleSetSeriesNoUpgrade switch the search for better versions off for one title (or back on).
PUT /api/movies/{id}/profile admin
POST /api/movies/{id}/replace-smaller any account starts the replacement for one movie.
POST /api/movies/{id}/rescan admin looks at a movie's file again, for the Rescan files button.
GET /api/movies/{id}/search any account is the interactive search for one library movie: every matching release across the indexers, with the reasons automation would skip it.
POST /api/movies/{id}/search-now any account runs the automatic search for one movie right now, even if it is unmonitored, grabbing the best acceptable release.
GET /api/movies/{id}/similar any account lists movies like one in the library, for the "because you added ..." rail.
PUT /api/movies/{id}/sources admin
GET /api/movies/{id}/subtitles any account
POST /api/movies/{id}/subtitles/download any account
GET /api/movies/{id}/subtitles/status any account
PUT /api/movies/{id}/tags any account PUT /api/movies/{id}/tags and /api/series/{id}/tags: replace a title's tags.

music

Method Path Access What it does
GET /api/music/albums/{id} any account returns one album with its tracklist and which tracks have a file.
GET /api/music/albums/{id}/cover any account serves an album's cover image (any account): the cover file in the album's folder, else the front cover from the Cover Art Archive, fetched once and kept.
POST /api/music/albums/{id}/cover any account is POST /api/music/albums/{id}/cover (multipart, field "file"): the picture for an album added by hand.
GET /api/music/albums/{id}/events any account lists an album's own activity log, newest first (at most 200 events): searches and why nothing was taken, grabs, download steps, imports and failures.
DELETE /api/music/albums/{id}/files admin deletes one file from an album's folder (administrators): ?path= is the file's path in the listing, relative to the album's folder.
GET /api/music/albums/{id}/files any account lists the files in an album's folder on disk (any account): tracks carry their track id, and cover art, logs and cue sheets are listed too.
POST /api/music/albums/{id}/grab any account grabs one release for an album (from the interactive search: {releaseTitle, downloadUrl, sizeBytes, protocol}) through the same download queue as movies and ...
PUT /api/music/albums/{id}/monitored any account switches monitoring on or off for one album, with a body of {"monitored": true} or {"monitored": false}.
POST /api/music/albums/{id}/rescan admin rechecks the files in an album's folder (administrators): the Rescan album folder button.
POST /api/music/albums/{id}/search any account is the interactive search for one album: every release the indexers have for "Artist Album" in the audio categories, with what its name says and the reasons ...
POST /api/music/albums/{id}/search-now any account runs the automatic search for one album right now, even when it is not monitored, and grabs the best acceptable release.
GET /api/music/artists any account
POST /api/music/artists any account adds an artist from MusicBrainz with its albums, EPs and singles (studio releases; live albums and compilations are left out), and monitors them as asked: al...
DELETE /api/music/artists/{id} admin removes an artist and its albums from the library.
GET /api/music/artists/{id} any account returns one artist with its albums, EPs and singles.
PUT /api/music/artists/{id} admin changes an artist (administrators): whether it is followed and which quality profile it uses.
POST /api/music/artists/{id}/albums any account is POST /api/music/artists/{id}/albums {mbid}: adds one release the filter left out to the library, monitored.
GET /api/music/artists/{id}/cover any account serves a picture for an artist (any account): the cover of its first album that has one, studio albums before EPs and singles.
GET /api/music/artists/{id}/discography any account is GET /api/music/artists/{id}/discography (any account): what the effective filter leaves out of the artist's page on MusicBrainz, so the page can say what ...
GET /api/music/artists/{id}/disk-usage admin
PUT /api/music/bulk/follow admin follows or unfollows the chosen artists.
PUT /api/music/bulk/profile admin gives the chosen artists a music quality profile.
POST /api/music/bulk/remove admin takes the chosen artists out of the library, one after the other, with the same rules as removing titles: downloads are cancelled either way and album folder...
GET /api/music/covers/release-group/{mbid} any account serves the front cover of any release group by its MusicBrainz id (any account), for the Discover page: fetched once from the archive and kept, so the browse...
GET /api/music/discover any account
GET /api/music/discover/artists any account
GET /api/music/filters any account is GET /api/music/filters (any account).
PUT /api/music/filters admin is PUT /api/music/filters (administrators): the library-wide choice, as {types, hideSecondary, hideBootlegs}.
GET /api/music/import/scan admin returns the most recent scan job, running or finished, so the page shows it again when it is reopened (administrators).
POST /api/music/import/scan admin starts reading the music folder and registering what MusicBrainz recognises (administrators).
DELETE /api/music/import/scan/{id} admin stops a running scan (administrators).
GET /api/music/import/scan/{id} admin returns a scan job: its phase, progress, the summary and one result per album folder found (administrators).
DELETE /api/music/listenbrainz any account DELETE /api/music/listenbrainz: forget the token and any unsent plays.
GET /api/music/listenbrainz any account GET /api/music/listenbrainz
PUT /api/music/listenbrainz any account PUT /api/music/listenbrainz {token?, enabled?}
POST /api/music/listenbrainz/listen signed in POST /api/music/listenbrainz/listen {trackId, listenedAt}: a play that has counted.
POST /api/music/listenbrainz/playing signed in POST /api/music/listenbrainz/playing {trackId}
POST /api/music/manual any account is POST /api/music/manual: an album typed in by hand.
GET /api/music/player-settings any account GET /api/music/player-settings
PUT /api/music/player-settings admin PUT /api/music/player-settings {lyricsOnline}
GET /api/music/playlists any account GET /api/music/playlists
POST /api/music/playlists any account POST /api/music/playlists {name, shared?, trackIds?, albumId?, artistId?}
DELETE /api/music/playlists/{id} any account DELETE /api/music/playlists/{id}
GET /api/music/playlists/{id} any account GET /api/music/playlists/{id}
PUT /api/music/playlists/{id} any account PUT /api/music/playlists/{id} {name?, shared?}
PUT /api/music/playlists/{id}/order any account PUT /api/music/playlists/{id}/order {entryIds: [...]}
POST /api/music/playlists/{id}/tracks any account POST /api/music/playlists/{id}/tracks {trackIds?, albumId?, artistId?}
DELETE /api/music/playlists/{id}/tracks/{entry} any account DELETE /api/music/playlists/{id}/tracks/{entry}
GET /api/music/preview/{mbid} any account is GET /api/music/preview/{mbid} (any account), the details of one release group by its MusicBrainz id.
GET /api/music/profiles any account lists the music quality profiles, in the order they were made; the one with default true is used by artists that have none of their own.
POST /api/music/profiles admin makes a music quality profile (administrators): {name, allowed[], cutoff, upgradeAllowed, fallback[]}.
DELETE /api/music/profiles/{id} admin removes a music quality profile (administrators) that is not the default and that no artist uses (409 otherwise).
PUT /api/music/profiles/{id} admin changes a music quality profile (administrators).
GET /api/music/search any account finds artists on MusicBrainz by name, marking the ones already in the library.
GET /api/music/tiers any account lists the music quality tiers, worst to best, for building a profile.
GET /api/music/tracks/{id}/gain signed in GET /api/music/tracks/{id}/gain: the ReplayGain tags of a track's file, null for the ones it doesn't have.
GET /api/music/tracks/{id}/lyrics signed in GET /api/music/tracks/{id}/lyrics
PUT /api/music/tracks/{id}/monitored any account switches one track of an album between wanted and not wanted, with a body of {"monitored": true} or {"monitored": false}.
GET /api/music/tracks/{id}/play any account GET /api/music/tracks/{id}/play: one downloaded track, for the built-in player.
GET /api/music/wanted any account

notifications

Method Path Access What it does
GET /api/notifications admin
POST /api/notifications admin
POST /api/notifications/digest admin sends the summary now, so a person can see what it looks like.
GET /api/notifications/events admin lists the events a target can subscribe to.
GET /api/notifications/push-key admin answers the public key a browser subscribes with.
POST /api/notifications/test admin sends a test message through a target that need not be saved: send the type and config from the form as they stand, or just an id to test a saved target, or ...
GET /api/notifications/types admin describes every target type and its form fields, so the UI can render the forms generically.
DELETE /api/notifications/{id} admin
PUT /api/notifications/{id} admin edits a saved target.

oauth

Method Path Access What it does
GET /api/oauth/requests/{id} any account
POST /api/oauth/requests/{id} any account is the Allow or Deny of the consent page.

onboarding

Method Path Access What it does
POST /api/onboarding/admin public is onboarding wizard step 1.
GET /api/onboarding/status public tells the frontend whether to show the first-run wizard or the normal app shell.

plex-watchlist

Method Path Access What it does
DELETE /api/plex-watchlist any account DELETE /api/plex-watchlist: forget the Plex account and what was seen.
GET /api/plex-watchlist any account GET /api/plex-watchlist
PUT /api/plex-watchlist any account PUT /api/plex-watchlist {"autoAdd": bool}
POST /api/plex-watchlist/check any account POST /api/plex-watchlist/check: look at the caller's watchlist now.
GET /api/plex-watchlist/items any account GET /api/plex-watchlist/items: what's on the caller's watchlist, with the details Discover shows, so anything can be added by hand.
POST /api/plex-watchlist/pin any account POST /api/plex-watchlist/pin: start connecting the caller's Plex account.
GET /api/plex-watchlist/pin/{pinId} any account GET /api/plex-watchlist/pin/{pinId}: has the person approved it yet?

proxy

Method Path Access What it does
GET /api/proxy admin
PUT /api/proxy admin
POST /api/proxy/test admin connects through the proxy in the form (not saved yet) and makes a TLS handshake with TMDB's server, which proves the proxy carries traffic out.

quality

Method Path Access What it does
GET /api/quality/min-size-check admin says whether the built-in minimum size check is on.
PUT /api/quality/min-size-check admin switches the built-in minimum size check: {"enabled": false} turns it off.
GET /api/quality/size-limits admin
PUT /api/quality/size-limits admin
POST /api/quality/size-limits/reset admin puts every quality back to its default.
GET /api/quality/size-limits/trash/{list} admin is GET /api/quality/size-limits/trash/{list}.

quality-profiles

Method Path Access What it does
GET /api/quality-profiles any account
POST /api/quality-profiles admin
POST /api/quality-profiles/simulate admin answers "Try this profile".
DELETE /api/quality-profiles/{id} admin
PUT /api/quality-profiles/{id} admin

queue

Method Path Access What it does
DELETE /api/queue admin empties the list of completed and failed entries.
GET /api/queue any account
POST /api/queue/bulk admin does one thing (pause, resume, stop, retry, remove from the list, blocklist, or send to the front) to several downloads at once.
GET /api/queue/count any account answers how many downloads are waiting, downloading or importing: the number beside Activity in the menu, which used to need the whole queue answer (names, p...
POST /api/queue/pause-all admin pauses every download that is running or waiting, or only the Usenet or only the torrent ones with ?protocol=.
POST /api/queue/resume-all admin puts every paused download back in the download line (or only the Usenet or only the torrent ones with ?protocol=).
DELETE /api/queue/{id} admin removes a finished, failed, stopped, paused or parked entry from the list.
POST /api/queue/{id}/blocklist admin marks a release as bad and tries another: it blocklists the failed release, removes the entry and starts a fresh search for the same movie or show.
POST /api/queue/{id}/front admin sends a waiting download to the front of the line.
POST /api/queue/{id}/pause admin pauses one download.
POST /api/queue/{id}/resolve-conflict admin settles a download that is waiting because a file already exists (the "ask me" setting): a person decides, per item, whether the new file replaces the one al...
POST /api/queue/{id}/resume admin starts a paused download again.
POST /api/queue/{id}/retry any account grabs the same release again after it failed or was stopped.
POST /api/queue/{id}/stop admin cancels a running or paused download, and with deleteFiles deletes its partly downloaded files from the downloads folder.
GET /api/queue/{id}/torrent admin
PUT /api/queue/{id}/torrent admin
PUT /api/queue/{id}/torrent/files admin

rename

Method Path Access What it does
GET /api/rename admin
POST /api/rename admin renames the chosen files, working out the new name again so it matches the preview.

requests

Method Path Access What it does
GET /api/requests any account GET /api/requests: an administrator sees every request, anyone else their own.
POST /api/requests/removal any account POST /api/requests/removal {"kind": "movie"|"tv", "itemId": 12, "reason": "..."}: a member asks for a title in the library to be removed.
GET /api/requests/settings admin GET /api/requests/settings
PUT /api/requests/settings admin PUT /api/requests/settings: any of the options, and quotas {"": n}.
GET /api/requests/status any account GET /api/requests/status: what the request pages need to know about the caller: requests left, whether 4K can be asked for, whether reports are on.
DELETE /api/requests/{id} any account DELETE /api/requests/{id}: someone takes back their own waiting request; an administrator can remove any.
POST /api/requests/{id}/approve admin POST /api/requests/{id}/approve: add the title as the person asked.
POST /api/requests/{id}/decline admin POST /api/requests/{id}/decline {"note": "..."}

scores

Method Path Access What it does
GET /api/scores/{kind}/{tmdbId} any account answers a title page: GET /api/scores/{kind}/{tmdbId}?imdb=tt...

scripts

Method Path Access What it does
GET /api/scripts admin GET /api/scripts: the scripts folder, what is in it and the choice.
PUT /api/scripts admin PUT /api/scripts {"script": "notify.sh", "timeoutSec": 300}; an empty script switches it off.
POST /api/scripts/test admin POST /api/scripts/test runs the chosen script once, with MEDIARIUM_EVENT set to "test" and a made-up movie, and says how it went.
Method Path Access What it does
GET /api/search any account is the unified search endpoint: one result list across every indexer, clearly tagged by source.
GET /api/search/delay admin
PUT /api/search/delay admin
POST /api/search/grab any account downloads a release straight from the search results, with no need to add the title to the library first.
GET /api/search/waiting any account lists the releases that are being held back by the delay profile right now.

series

Method Path Access What it does
GET /api/series any account
POST /api/series any account adds a show and its complete episode list (every real season, specials left out) to the library.
DELETE /api/series/{id} admin removes a show from the library.
GET /api/series/{id} any account
POST /api/series/{id}/change-folder admin reads the episode files in the folder a person picked and attaches them to the show's episodes.
GET /api/series/{id}/copies any account GET /api/series/{id}/copies
POST /api/series/{id}/copies admin POST /api/series/{id}/copies {"profileId": 4} adds a second copy of a show, with the same episodes monitored, and starts looking for them.
GET /api/series/{id}/disk-usage admin
PUT /api/series/{id}/episode-order any account PUT /api/series/{id}/episode-order {"order": "tmdb" | "tvdb"} Which list the show's regular seasons follow (#184).
GET /api/series/{id}/events any account lists a show's own activity log (all its episodes), newest first (at most 200 events).
GET /api/series/{id}/files any account lists the files in a show's folder on disk, season folders included; episode files carry their episode id.
PUT /api/series/{id}/folder any account is the same for a show.
POST /api/series/{id}/grab any account grabs a release for a series — a single episode, a multi-episode release, or a whole-season pack, decided by the release's own title.
POST /api/series/{id}/monitor-mode any account applies the add-time choice of which episodes to monitor (all, only the ones that have not aired yet, none) to a show that is already in the library.
PUT /api/series/{id}/monitored any account
PUT /api/series/{id}/no-upgrade admin
GET /api/series/{id}/numbering any account answers GET /api/series/{id}/numbering: the ids and links, and what the numbering services say about the show.
GET /api/series/{id}/numbering/custom any account GET /api/series/{id}/numbering/custom
PUT /api/series/{id}/numbering/custom any account PUT /api/series/{id}/numbering/custom {"rules": [...], "names": [...]} replaces the show's own numbering; an empty body clears it.
POST /api/series/{id}/numbering/refresh any account answers POST /api/series/{id}/numbering/refresh: "Refresh mapping".
PUT /api/series/{id}/profile admin
POST /api/series/{id}/refresh any account re-fetches a show's episode list from TMDB — new seasons appear and air dates get announced or moved over a show's life.
POST /api/series/{id}/rescan admin looks at every downloaded file of a show again.
GET /api/series/{id}/search any account is the interactive search for one season or one episode of a library show: queries every indexer, then keeps only releases that are actually for this show an...
POST /api/series/{id}/search-complete any account is the "Search for the complete series" button of a show: it looks for season packs of the seasons with gaps and, failing that, for a pack of the whole series.
POST /api/series/{id}/search-now any account searches for everything wanted in a series (or one season, or one episode) right now, even if unmonitored.
PUT /api/series/{id}/season-pack admin saves a show's own choice about season packs.
DELETE /api/series/{id}/seasons/{season}/files admin deletes the files of every downloaded episode of a season.
PUT /api/series/{id}/seasons/{season}/monitored any account
PUT /api/series/{id}/sources admin
PUT /api/series/{id}/tags any account
PUT /api/series/{id}/type any account PUT /api/series/{id}/type {"type": "standard" | "anime" | "daily"}

settings

Method Path Access What it does
GET /api/settings admin never echoes the TMDB key back (credentials never logged/exposed in plaintext beyond what's needed); HasTMDBAPIKey tells the UI whether one is already config...
PUT /api/settings admin applies a partial update — only non-empty fields are written, so the frontend can PUT just the field(s) a given wizard step/settings form changed.
GET /api/settings/anime admin answers the anime library's folder, file names and default quality profile.
PUT /api/settings/anime admin saves the anime library's folder, file names and default quality profile.
GET /api/settings/file-permissions admin is GET /api/settings/file-permissions.
PUT /api/settings/file-permissions admin is PUT /api/settings/file-permissions.
GET /api/settings/filesystem-check admin
GET /api/settings/folder-check admin inspects one folder for the setup screens: does it exist, can Mediarium write to it, how much room is left and — in Docker — was it actually mapped in fr...
POST /api/settings/folder-create admin makes a missing library folder (administrators), only where creatableParent allows.
GET /api/settings/google-books admin reports whether a Google Books API key is saved.
PUT /api/settings/google-books admin checks a Google Books API key and saves it encrypted.
GET /api/settings/hardcover admin GET /api/settings/hardcover
PUT /api/settings/hardcover admin PUT /api/settings/hardcover {"token": "..."}: checks the token with Hardcover and saves it (encrypted).
POST /api/settings/library-marker admin POST /api/settings/library-marker: make the .mediarium-root file in a library folder the administrator says is the right one.
GET /api/settings/metadata-files admin
PUT /api/settings/metadata-files admin
GET /api/settings/naming-preview admin shows a naming preset or custom format applied to a fixed sample release (kind=movie, the default, or kind=tv), so the page can display the exact file name w...
GET /api/settings/naming-tokens admin lists the tokens a custom format can use and the ready-made formats to start from, for the builder in Settings.
GET /api/settings/omdb admin
PUT /api/settings/omdb admin saves a key after checking it with OMDb, or removes it.
GET /api/settings/prowlarr admin says whether a Prowlarr is linked and what the last sync did.
PUT /api/settings/prowlarr admin saves the link to a running Prowlarr (its address and API key, checked first) and the switch that keeps it in step; it syncs at once.
POST /api/settings/prowlarr/sync admin reads the linked Prowlarr now.
DELETE /api/settings/simkl admin DELETE /api/settings/simkl: forget the connected account.
GET /api/settings/simkl admin GET /api/settings/simkl
POST /api/settings/simkl/pin admin POST /api/settings/simkl/pin: start connecting an account.
GET /api/settings/simkl/pin/{code} admin GET /api/settings/simkl/pin/{code}: has the code been entered yet?
POST /api/settings/simkl/test admin POST /api/settings/simkl/test: ask Simkl who the connected account is.
GET /api/settings/soulseek admin
PUT /api/settings/soulseek admin saves slskd's address, key and folder after checking that slskd answers with the key and that the folder is there; remove takes it all away.
POST /api/settings/test-service admin checks a key for an outside service without saving it, so the setup wizard and Settings can say whether it works before the person moves on.
GET /api/settings/thetvdb admin says whether a TheTVDB key is saved and whether shows are filled in from it.
PUT /api/settings/thetvdb admin saves a TheTVDB key (checked with TheTVDB first, kept encrypted) and the switch for filling in shows from it.

stats

Method Path Access What it does
GET /api/stats/history any account
GET /api/stats/indexers admin gives each indexer's searches, failures, releases found and grabs over the last 30 days.
GET /api/stats/library any account
POST /api/stats/reset admin answers POST /api/stats/reset: the download totals on the Statistics page and the dashboard start again from zero.
GET /api/stats/usenet-months admin gives each Usenet server's traffic month by month, newest month first, for the last months months (default 12, at most 24), so a yearly plan can be judged ...

subtitles

Method Path Access What it does
GET /api/subtitles/addons admin
POST /api/subtitles/addons admin
DELETE /api/subtitles/addons/{id} admin
POST /api/subtitles/addons/{id}/test admin
DELETE /api/subtitles/dismiss admin undoes a dismissal.
POST /api/subtitles/dismiss admin marks titles as not needing subtitles.
POST /api/subtitles/get any account fetches subtitles now for the named titles (or every title missing one, with all=true), with the same rules as the automatic sweep except that it also tries ...
GET /api/subtitles/quota admin reports today's OpenSubtitles download allowance and how much is waiting to be fetched.
POST /api/subtitles/sweep admin looks for missing subtitles now, without waiting out the pause after a recent failure.
POST /api/subtitles/timing any account POST /api/subtitles/timing
GET /api/subtitles/wanted any account lists downloaded items that lack a subtitle in one of the configured languages, leaving out titles marked "no subtitles wanted" unless ?includeDismissed=1 is...

system

Method Path Access What it does
GET /api/system/backup admin streams a backup zip (app.db snapshot, secret.key, manifest).
GET /api/system/backups admin
POST /api/system/backups admin makes a backup in the folder straight away.
GET /api/system/backups/cloud admin GET /api/system/backups/cloud
PUT /api/system/backups/cloud admin PUT /api/system/backups/cloud saves the settings.
GET /api/system/backups/cloud/list admin GET /api/system/backups/cloud/list lists the copies in the storage.
POST /api/system/backups/cloud/test admin POST /api/system/backups/cloud/test tries the details sent (not yet saved): it uploads a tiny file, finds it in the list and deletes it.
POST /api/system/backups/cloud/upload admin POST /api/system/backups/cloud/upload copies the newest saved backup to the cloud now, making one first when the newest is over an hour old.
GET /api/system/backups/{name} admin sends one saved backup.
GET /api/system/cleanup admin lists what clean-up would remove from the downloads working folder right now (never the library), with the space it frees, when it last ran and whether it ru...
POST /api/system/cleanup admin runs the clean-up now and reports what it removed and how much history it pruned.
GET /api/system/config-file admin
POST /api/system/config-file/apply admin POST /api/system/config-file/apply?replace=1&hash=...: the file is the body.
POST /api/system/config-file/check admin POST /api/system/config-file/check?replace=1: the file is the body.
GET /api/system/config-file/start admin
PUT /api/system/config-file/start admin PUT /api/system/config-file/start {"enabled": true}.
GET /api/system/diagnostics admin returns what a person needs to send with a support request: version and platform, how the database is doing, the setup warnings and the recent log.
GET /api/system/downloader-api admin says whether the SABnzbd and qBittorrent look-alike addresses are on.
PUT /api/system/downloader-api admin switches both addresses on or off.
GET /api/system/info admin returns facts the backup page shows.
GET /api/system/mcp admin
PUT /api/system/mcp admin switches the MCP address on or off.
GET /api/system/mcp/apps admin
DELETE /api/system/mcp/apps/{id} admin
POST /api/system/mcp/clients admin makes a client by hand, for programs that ask for a client ID and secret (Home Assistant's application credentials).
DELETE /api/system/mcp/clients/{id} admin
GET /api/system/options admin reports the switches for checking for updates, installing them, pushed updates and restarting when stuck.
PUT /api/system/options admin changes the switches named in the body and leaves the rest.
GET /api/system/problems admin lists the problems that match the filters, with the counts for the cards at the top of the page.
PUT /api/system/problems/debug admin switches detailed logging on or off.
GET /api/system/problems/export admin sends the problems that match the filters as a plain text file, newest first, to attach to a support request.
PUT /api/system/problems/notify admin switches the notification for new errors on or off.
POST /api/system/problems/read admin marks problems as read: the ones listed, or with "all" every problem that matches the filters in the query string (all of them when there are none).
POST /api/system/restart admin restarts Mediarium.
POST /api/system/restore admin takes a backup zip (form field "file", at most 1 GB), or a cloud copy locked with a passphrase (form field "passphrase"), checks it strictly, stages it in <c...
POST /api/system/shutdown admin stops Mediarium for good.
GET /api/system/stats admin reports how busy the server is (CPU, memory, load, uptime, and Mediarium's own CPU as app.cpuPercent), the free space for each folder Mediarium uses, and the...
DELETE /api/system/update admin removes the installed update, so the next start uses the program inside the container image.
GET /api/system/update admin reports the update state (administrators only).
POST /api/system/update admin takes the raw program file as the request body, and its SHA-256 in the X-Update-SHA256 header, checks both, and restarts into it.
POST /api/system/update/check admin asks GitHub right now (the Check now button) and returns the result.
GET /api/system/update/install admin reports how "Update now" is going.
POST /api/system/update/install admin starts "Update now".
GET /api/system/update/latest admin returns what is known about the newest release.
GET /api/system/update/rollback admin
POST /api/system/update/rollback admin puts a copy back (on the next start, like a restore: the database in use now is moved aside, not deleted) and, when asked, the previous program, then restarts.

tags

Method Path Access What it does
GET /api/tags any account

tmdb

Method Path Access What it does
GET /api/tmdb/movies/{tmdbId} any account gives everything the movie page shows from a TMDB id alone, so it works for titles whether or not they are in the library yet; library membership is looked u...
GET /api/tmdb/movies/{tmdbId}/similar any account lists movies like a given one from its TMDB id alone.
GET /api/tmdb/people/{personId} any account gives a person's page in one answer: who they are and every movie and show they are credited on, most popular first.
GET /api/tmdb/search any account is a plain TMDB title search for either kind, used by the import review to fix a wrong or missing automatic match.
GET /api/tmdb/tv/{tmdbId} any account gives everything the TV page shows from a TMDB id alone, plus library membership if the show has been added.

trash

Method Path Access What it does
DELETE /api/trash admin
GET /api/trash admin
DELETE /api/trash/{kind}/{id} admin
POST /api/trash/{kind}/{id}/restore admin

trash-guides

Method Path Access What it does
GET /api/trash-guides/{app} admin lists the TRaSH custom formats and quality profiles for one app.
POST /api/trash-guides/{app}/formats admin imports chosen TRaSH custom formats (again, to update them).
POST /api/trash-guides/{app}/profiles admin makes a Mediarium quality profile from a TRaSH one: its qualities and cutoff, its custom formats with TRaSH's scores, and its minimum and upgrade-until scores.

tv

Method Path Access What it does
GET /api/tv/search any account searches for shows by title, to find something to add.

usage

Method Path Access What it does
GET /api/usage admin reports, per third-party service, how much Mediarium used it in the last 24 hours and whether it refused because a limit was reached.

usage-stats

Method Path Access What it does
GET /api/usage-stats admin
PUT /api/usage-stats admin
POST /api/usage-stats/reset-id admin

usenet-client

Method Path Access What it does
GET /api/usenet-client admin GET /api/usenet-client: the settings, without the API key and password.
PUT /api/usenet-client admin PUT /api/usenet-client: save the downloader.
GET /api/usenet-client/jobs admin is GET /api/usenet-client/jobs?scope=mine|all: the jobs in the Usenet downloader, only Mediarium's own or everything in it.
POST /api/usenet-client/jobs/{id}/{action} admin is POST /api/usenet-client/jobs/{id}/{action} with action pause, resume, remove (keep the files) or remove-files.
POST /api/usenet-client/test admin POST /api/usenet-client/test: reach the downloader, sign in and make sure the categories exist.

usenet-servers

Method Path Access What it does
GET /api/usenet-servers admin
POST /api/usenet-servers admin
POST /api/usenet-servers/test admin tests the server as typed into the form.
DELETE /api/usenet-servers/{id} admin
PUT /api/usenet-servers/{id} admin edits a server.
POST /api/usenet-servers/{id}/probe admin opens connections to a saved server one after another, up to the number set for it, to find how many the provider lets this login have at once.
POST /api/usenet-servers/{id}/test admin tests a saved server with its stored login.

users

Method Path Access What it does
GET /api/users admin lists every account with its role and last sign-in.
POST /api/users admin adds an account for someone else, for example a family member, with the role the administrator picks.
DELETE /api/users/{id} admin removes an account with its sessions and API keys.
PUT /api/users/{id} admin changes another account's name, email or role, or sets a new password for it (which signs that account out everywhere).
DELETE /api/users/{id}/two-step admin DELETE /api/users/{id}/two-step: an administrator switches it off for someone who lost their phone and their recovery codes.

version

Method Path Access What it does
GET /api/version public reports the running build's version (version-pinned Docker tags, changelog per release).

vpn

Method Path Access What it does
GET /api/vpn/configs admin
POST /api/vpn/configs admin saves a WireGuard config that was pasted in.
DELETE /api/vpn/configs/{id} admin
POST /api/vpn/configs/{id}/activate admin brings the tunnel up for this config.
POST /api/vpn/deactivate admin
GET /api/vpn/egress-ip admin makes a real request through the active tunnel, so a person can check for themselves that traffic leaves through the VPN provider and is not leaking.
GET /api/vpn/status admin surfaces connection state for the UI, so VPN status is shown clearly in the UI, not just in logs.
POST /api/vpn/test admin makes a small real request through the active tunnel and answers whether it worked, with the time of the latest handshake or, when it failed, a plain reason.

wanted

Method Path Access What it does
GET /api/wanted any account
GET /api/wanted/review admin answers GET /api/wanted/review?days=365: what is still missing that came out more than days ago, the oldest first, without the titles kept until later.
POST /api/wanted/review/keep admin answers POST /api/wanted/review/keep: the titles leave the review for a year (they stay wanted and monitored).

watched

Method Path Access What it does
GET /api/watched any account GET /api/watched: what's been watched, by movie and by show, for the library pages.
GET /api/watched/cleanup/preview admin GET /api/watched/cleanup/preview: what the saved rules (or the rules sent as ?rules=JSON) would remove now.
POST /api/watched/cleanup/run admin POST /api/watched/cleanup/run: apply the saved rules once, now.
GET /api/watched/settings admin GET /api/watched/settings
PUT /api/watched/settings admin PUT /api/watched/settings {"sync": true, "cleanup": {...}}
POST /api/watched/sync admin POST /api/watched/sync: read what's been watched now.

610 routes.

Suggest a change to this page on GitHub

Buy a coffee

Enjoying Mediarium?

It is free and made in spare time. A coffee helps keep it running.

Support on Ko-fi

No account needed. Opens Ko-fi in a new tab. Nothing loads from Ko-fi until you click.