Every route of the server: who may call it and what it validates. TestRouteTableMatchesTheCode keeps this table and the code
together. SECURITY-REVIEW.md describes the model behind it.
Nothing else listens for HTTP: the HTTPS port serves this same handler. A module's own routes (/api/modules/<id>/...) are checked as their integration.json says: who may call each, its limits, whether it plays and whether it asks for the password again. Every module the server runs is of module API 5 and has one; a version of another API isn't taken, so no module answers a route its integration.json doesn't list. WittyPlay's settings for the whole server, for example, are its own administrators' route (/api/modules/wittyplay/gaming/settings): PUT /api/settings keeps only the server's own settings and drops any other name.
Every /api/... route is also served as /api/v1/.... HEAD is served wherever GET is.
- Requests from outside the home network are refused until the owner turns remote access on, and then need HTTPS or a VPN.
- Requests that arrive over a peer-to-peer connection (P2P.md) reach this same handler. They always count as coming from outside the home network, whatever address the connection has, and are let in only while peer-to-peer connections are on.
- Requests with a body are limited to 32 MB and 2 minutes, except the routes that set their own limit. A route that takes a body from someone not signed in is limited to 16 KB and 15 seconds, and JSON to 1 MB unless the table says otherwise.
- State-changing requests signed in by cookie are refused when they come from another origin.
/api/responses carry a script-free content policy unless the table says otherwise.- For an account with limits, every signed-in route is first checked against what the account may do (
classifyininternal/server/parental.go): a route that is part of a feature turned off for it (games, recording, share links, comments, downloads) answers 403, an account kept to the home network isn't signed in anywhere else, and a route that plays something answers 403 when the account's screen time or hours are over.TestEveryRouteIsClassedfails on a route nobody classed.
| Word | Meaning |
|---|---|
| Public | No sign-in |
| Signed-in | Any account: administrator, adult, Kids or Guest |
| Adult | An administrator or an adult account |
| Tuner channels | An account the owner lets use tuner channels |
| Signed-in with game PC access | An account the owner lets use game PCs |
| Admin | An administrator |
| ticket | Also accepts a stream token (?st=) made for that item, for reading only |
| address token | Also accepts a token in the address (?token=), for GET and HEAD |
| limits | The account's limits are applied: libraries, age rating (for each kind of media), genres, tags, collections, allowed and blocked titles. A title outside them answers "not found" |
| own | Looked up together with the signed-in account's ID. Another account's answers "not found" |
| Nothing | The route takes no input to check |
| Method + route | Who may call it | What it validates |
|---|---|---|
GET /api/status |
Public | Reports setup state, branding and the caller's own account if signed in. Version left out for signed-out callers from the internet. A page of this server's own signed in by a header gets the sign-in cookie, so its media addresses carry no token; nothing is sent to another origin |
POST /api/setup |
Public, until the first account exists | Refused once an account exists. 16 KB body. From outside the home network: setup code, with an attempt limit. Name and password rules |
GET /api/setup/state |
Public | Nothing: whether first run is over, its steps and where it is |
PUT /api/setup/state |
Public, until first run is over | Refused once it is over (409). Before the first account: the setup code, as for POST /api/setup. After: an administrator. 4 KB body; step and done are known step names |
POST /api/setup/complete |
Admin | Marks first run over; apps may connect |
POST /api/setup/module-steps/skip |
Admin | Puts off a module's setup step ({module, step}): the "Dismiss" of "Finish setting up" on Home (command setup.skip) |
GET /api/sdui/preview |
Public | Experience, theme, platform and form factor are checked against what the server has. Generated demo data only: no library, no account. Rate limited per address |
POST /api/login |
Public | 16 KB body. Attempts counted per name and per address. Password, and a code with two-factor sign-in. Password-free profiles only at home with the profile screen on |
POST /api/logout |
Public | Ends the sessions of the tokens the request carries |
GET /api/profiles |
Public | Lists profiles only when the profile screen is on and the caller is at home, or the owner allows it from away |
GET /api/themes |
Public | Installed themes and the current one |
GET /api/themes/{id}/download |
Public | Theme id resolved by the theme manager |
GET /api/themes/{id}/{file...} |
Public | Theme id and file name checked by the theme manager. Inert content policy |
GET /api/themes/{id}/tokens.json |
Public | Theme id resolved by the theme manager |
GET /api/health |
Public | Nothing: answers ok, and this run's random instance id, so that a second start on the same data folder knows the server answering is the one using it. The id is made fresh at every start and says nothing about the server. On the server's own computer it also names a newer version, for the tray menu |
GET /api/capabilities |
Public | Describes the server to apps. Version left out for signed-out callers from the internet |
POST /api/identity |
Public | Nonce format. Answers with a signature over it |
POST /api/pair/start |
Public | Server is set up. Limits on open codes per address and for the server |
POST /api/pair/poll |
Public | 64-character device secret. Polling rate. An approved sign-in on this server's own page also gets the cookie, as GET /api/status |
POST /api/pair/redeem |
Public | Six digits. Wrong-code limits per address and for the server. Code used once |
POST /api/connect/hello |
Public | A well-formed lookup key and nonce. The login limiter per address. Answers only for a code this server made, with a proof bound to its identity key; nothing for any other |
POST /api/connect/answer |
Public | A challenge this server handed out, answered once within a minute. Three wrong proofs end the code. The login limiter per address. The code's maker still signed in. Code used once, and its link with it |
POST /api/auth/pair |
Public | Server is set up. The same limits on open sessions as /api/pair/start. The TOTP secret never leaves memory. Session lasts 5 minutes |
GET /api/auth/pair/{session} |
Public | Session ID and the 64-character device secret in a header, compared as a hash in constant time. Polling rate. The sign-in is handed out once, while the approver's session stands. On this server's own page also as the cookie, as GET /api/status |
GET /api/auth/pair/{session}/pin |
Public | Session ID and the 64-character device secret in a header. Only while the session is waiting |
GET /api/me |
Signed-in | The caller's own account |
GET /api/me/ui |
Signed-in | own |
PUT /api/me/ui |
Signed-in | own. A JSON object of at most 16 KB |
GET /api/me/notifications |
Signed-in | own. Limit of 100 a page |
GET /api/me/notifications/count |
Signed-in | own |
POST /api/me/notifications/read |
Signed-in | own. At most 200 ids, 16 KB |
DELETE /api/me/notifications |
Signed-in | own |
DELETE /api/me/notifications/{id} |
Signed-in | own. A number |
GET /api/me/notifications/choices |
Signed-in | own. The administrators' kinds only for an administrator |
PUT /api/me/notifications/choices |
Signed-in | own. Known kinds; the administrators' kinds refused to anyone else |
GET /api/me/streaming |
Signed-in | own |
PUT /api/me/streaming |
Signed-in | own. Choices read as quality choices; the profile's limits still apply |
GET /api/home |
Signed-in | own progress. limits |
GET /api/libraries |
Signed-in | limits. Folder paths for admins only |
POST /api/libraries |
Admin | Name, known type, full paths to existing folders. Module for the type is installed; for a games library, a module that scans games is installed and on, and the console is auto or one it names |
PUT /api/libraries/{id} |
Admin | As creating. Refused for a library owned by a game PC |
DELETE /api/libraries/{id} |
Admin | Numeric id |
POST /api/libraries/{id}/scan |
Admin | Library exists; body {mode} read up to 4 KB, only changes or full (400 otherwise) |
PUT /api/libraries/{id}/nfo |
Admin | Library exists |
PUT /api/libraries/{id}/read-only |
Admin | Library exists |
POST /api/libraries/{id}/purge-metadata |
Admin | Library exists and isn't read-only; deletes only .nfo and .metadata.json files inside its folders |
GET /api/libraries/{id}/scan |
Signed-in | Library is within the account's allowed libraries. File names for admins only |
POST /api/libraries/{id}/forget-metadata |
Admin | Library exists and isn't being scanned. Removes only files the server recorded writing, and NFOs with its marker, inside the library's folders, through the folder (never through a link out of it); a person's .nfo.bak goes back. Every item keeps its ID; history, locks and people's edits stay. Logged and shown in Activity |
POST /api/libraries/forget-metadata |
Admin | As for one library, for every library, none being scanned. Also drops downloaded logos and where-to-watch answers |
GET /api/genres |
Signed-in | limits |
GET /api/items |
Signed-in | limits, in the query. Paths for admins only |
GET /api/logos/status |
Signed-in | Whether downloads are agreed to, and the source. Counts for admins only |
PUT /api/logos/consent |
Admin | Body says yes or no |
POST /api/logos/lookup |
Signed-in | Up to 200 names. Only an admin's request can add a name or ask a source |
GET /api/logos |
Admin | Kind known. Bounded page |
GET /api/logos/credits |
Signed-in | limits, on studios and networks: those of titles and channels the account may see |
GET /api/artwork/credits |
Signed-in | limits, in the query: pictures of titles the account may see |
GET /api/logos/preview |
Admin | Downloads agreed to. An address on the source's own host. Internet-only client, pictures only |
GET /api/logos/{id}/image |
Signed-in | Numeric id. One of three variants, from the server's own files. Pictures only |
GET /api/logos/{id}/candidates |
Admin | Logo exists. Downloads agreed to |
PUT /api/logos/{id} |
Admin | Logo exists. Downloads agreed to, for a picture the source offers, fetched again by the server. Known status |
PUT /api/logos/{id}/upload |
Admin | Logo exists. Picture of at most 8 MB, drawn again as new PNGs |
GET /api/brands |
Signed-in | limits, in the query. Kind is studio or network |
GET /api/browse |
Signed-in | limits, in the query. Library within the account's allowed libraries. Filter values passed as data |
GET /api/browse/facets |
Signed-in | limits, in the query. Library within the account's allowed libraries |
GET /api/browse/shelves |
Signed-in | limits, in the query. Library within the account's allowed libraries. Hidden categories for admins only |
PUT /api/browse/categories |
Admin | Library exists. Fields |
GET /api/views |
Signed-in | own |
POST /api/views |
Signed-in | own. 100 per account. Name size, known filters only, library within the account's allowed libraries |
PUT /api/views/{id} |
Signed-in | own. Name size, known filters only, library within the account's allowed libraries |
DELETE /api/views/{id} |
Signed-in | own |
GET /api/views/{id}/titles |
Signed-in | own, then limits, in the query |
GET /api/listings/status |
Signed-in | Whether listings are on, the region and the credit. Counts and progress for admins only |
PUT /api/listings/settings |
Admin | Two-letter region. Every statement accepted before turning on |
POST /api/listings/refresh |
Admin | Nothing further |
GET /api/meta/removed |
Admin | Nothing further |
POST /api/meta/removed/restore |
Admin | Title was removed |
POST /api/meta/undo |
Admin | Batch exists and can still be undone |
GET /api/meta/history |
Admin | Nothing further |
POST /api/meta/bulk |
Admin | 1 to 500 titles. Field values as for one title. A picture is a web address or a file in a library |
GET /api/meta/show/{id}/episodes |
Admin | Numeric id |
PUT /api/meta/show/{id}/episodes |
Admin | Numeric id. Numbering checked |
GET /api/meta/{target}/{id} |
Admin | Item or show. Title exists |
PUT /api/meta/{target}/{id} |
Admin | Title exists. Field values checked. A picture is a web address or a file in a library |
DELETE /api/meta/{target}/{id} |
Admin | Title exists |
POST /api/meta/{target}/{id}/revert |
Admin | Title exists. Field names |
POST /api/meta/{target}/{id}/search |
Admin | Title exists. Query length |
POST /api/meta/{target}/{id}/preview |
Admin | Title exists. Source and id |
POST /api/meta/{target}/{id}/match |
Admin | Title exists. Source and id |
DELETE /api/meta/{target}/{id}/match |
Admin | Title exists |
POST /api/meta/{target}/{id}/refresh |
Admin | Title exists |
POST /api/meta/{target}/{id}/suggest |
Admin | Title exists |
POST /api/meta/{target}/{id}/leave |
Admin | Title exists |
GET /api/meta/{target}/{id}/artwork |
Admin | Title exists. Known kind of artwork |
PUT /api/meta/{target}/{id}/art/{kind} |
Admin | Title exists and has that artwork. JPEG, PNG, WebP or GIF of at most 20 MB and 25 megapixels, decoded and written again from its pixels (nothing else in the file is kept). Stored under a name the server makes. ?stage=1 stores it without applying it |
POST /api/meta/{target}/{id}/frame |
Admin | Title exists and is an item with video. An encrypted disc is refused, nothing is decrypted. Stored under a name the server makes; errors don't name the file |
POST /api/meta/{target}/{id}/titleposter |
Admin | Title exists. Words at most 120 and 60 letters, drawn by the server with its own fonts. Over a frame only from the image cache, by a name with no path in it. Stored under a name the server makes |
GET /api/meta/{target}/{id}/art/{kind} |
Signed-in | limits. Banner or logo. Pictures only |
POST /api/meta/{target}/{id}/link |
Admin | Not a show. Attached to one film or show that exists, not to itself. Known kind of link |
DELETE /api/meta/{target}/{id}/link |
Admin | Title exists |
POST /api/meta/{target}/{id}/move |
Admin | Title exists. Library checked |
GET /api/meta/{target}/{id}/listings |
Signed-in | limits |
GET /api/meta/{target}/{id}/attached |
Signed-in | limits, on the title and each extra and version. Paths for admins only |
GET /api/match/queue |
Admin | Nothing further |
POST /api/match/accept |
Admin | 1 to 100 titles |
POST /api/match/suggest-all |
Admin | Library |
GET /api/match/suggest-all |
Admin | Nothing further |
DELETE /api/match/suggest-all |
Admin | Nothing further |
GET /api/match/rules |
Admin | Nothing further |
PUT /api/match/rules |
Admin | Library exists. Each pattern is of a fixed set of words, up to 300 characters |
POST /api/match/rules/try |
Admin | Number of rules. Each pattern as above. Nothing saved |
GET /api/items/{id} |
Signed-in | limits. own progress. Paths for admins only |
PUT /api/items/{id} |
Admin | Item exists. Field values for disc settings |
GET /api/items/{id}/poster |
Signed-in; ticket; address token | limits. Pictures only, from the cache, the internet or inside a library |
GET /api/items/{id}/artwork |
Admin | Item exists |
GET /api/items/{id}/recommend |
Signed-in | limits, on the item and on what is suggested |
GET /api/items/{id}/credits |
Signed-in | limits, on the item; an episode's season guests only from episodes it may see |
GET /api/shows/{id}/credits |
Signed-in | limits, on the show and on each episode a season's guests come from |
GET /api/people |
Signed-in | limits: only people credited on a title the account may see, counting only those titles |
GET /api/people/{id} |
Signed-in | limits: 404 unless credited on a title the account may see; the filmography names only those |
GET /api/people/{id}/photo |
Signed-in; ticket; address token | limits, as the person. Pictures only, from the cache, the internet or inside a library |
GET /api/search |
Signed-in | limits: only libraries the account may open are searched, and each card is read through the account's limits (ratings, blocked titles); people only with a title it may see |
GET /api/search/recent |
Signed-in | own: the account's own recent searches |
DELETE /api/search/recent |
Signed-in | own: forgets the account's own recent searches |
GET /api/items/{id}/disc/thumb/{ttn}/{n} |
Signed-in; ticket; address token | limits. Item is a disc and not scrambled. Title and chapter exist |
GET /api/items/{id}/scene/{sec} |
Signed-in; ticket; address token | limits. Video file. Time within its length |
GET /api/artwork/preview |
Admin; address token | Web address, cache name, or a picture inside a library |
GET /api/prefs |
Signed-in | Nothing: server-wide playback defaults |
POST /api/themes/mine |
Signed-in | own theme only. Profiles may import only when the administrator allows it (403). Same ZIP rules as POST /api/themes, plus variables only; at most five each; never over another's id (409) |
POST /api/themes |
Admin | ZIP of at most 26 MB, checked by the theme manager |
DELETE /api/themes/{id} |
Admin | Theme exists and may be removed |
GET /api/shows |
Signed-in | limits, in the query. Paths for admins only |
GET /api/shows/genres |
Signed-in | limits |
GET /api/shows/networks |
Signed-in | limits |
GET /api/shows/{id} |
Signed-in | limits, on the show and its episodes. Paths for admins only |
PUT /api/shows/{id} |
Admin | Show exists |
PUT /api/shows/{id}/view |
Admin | View is cards, list or empty |
GET /api/shows/{id}/artwork |
Admin | Show exists |
GET /api/shows/{id}/art/{kind} |
Signed-in; address token | limits. Pictures only |
GET /api/items/{id}/backdrop |
Signed-in; ticket; address token | limits. Pictures only |
POST /api/items/{id}/progress |
Signed-in | limits. own. show-: the show within limits, each episode the profile may see |
DELETE /api/items/{id}/progress |
Signed-in | own. show-: the show within limits, each episode the profile may see |
POST /api/pair/info |
Adult | Code, with a limit on wrong codes |
GET /api/auth/pair/{session}/info |
Adult | Session is waiting. A wrong QR check is refused. Limit on wrong codes. Never says the PIN or the device's secret |
POST /api/auth/pair/{session}/approve |
Adult | The PIN shown now or the one before it, used once. Five wrong PINs end the session. Limit on wrong codes. The device signs in as the caller or a profile the caller manages; as an administrator only with that administrator's password again |
POST /api/auth/pair/{session}/deny |
Adult | Session is waiting. Limit on wrong codes |
POST /api/pair/approve |
Adult | Code, with a limit on wrong codes. The device signs in as the caller or a profile the caller manages; as an administrator only with that administrator's password again |
POST /api/pair/deny |
Adult | Code, with a limit on wrong codes |
POST /api/pair/invite |
Adult | Target is the caller or a profile the caller manages; an administrator only with their password again. One open code per person, limit on open codes |
GET /api/playback/profiles |
Signed-in | Nothing: the built-in client profiles |
GET /api/playback/speedtest |
Signed-in | Nothing: random bytes, 64 KB to 4 MB, sent within the limits for viewers away from home, as any stream is |
POST /api/items/{id}/playback |
Signed-in | limits. Known profile, start time, track numbers, sizes |
POST /api/items/{id}/stream-token |
Signed-in | limits. Needs a real sign-in |
GET /api/items/{id}/subtitles/{file} |
Signed-in; ticket | limits. Item is a video. Name is 'n.vtt' and a text track |
GET /api/items/{id}/play |
Signed-in | limits. Item is a video inside a library |
GET /api/items/{id}/file |
Signed-in; ticket; address token | limits. Video or book. Plain file inside a library once links are followed. Type from a fixed list. Limit for viewers away from home |
GET /api/items/{id}/stream |
Signed-in; ticket; address token | limits. Audio item. Plain file inside a library, or a feed address through the internet-only client. Limit for viewers away from home |
GET /api/cd/{id} |
Signed-in; ticket | limits. Disc image inside a library |
GET /api/cd/{id}/audio |
Signed-in; ticket | limits. Disc image inside a library. Format, tracks, start. Limit for viewers away from home |
GET /api/cd/{id}/graphics |
Signed-in; ticket | limits. Disc image inside a library. Sector range |
GET /api/cd-covers/{release} |
Admin | Release id looked up by the scanner |
GET /api/items/{id}/book |
Signed-in | limits. Book, plain file inside a library |
GET /api/items/{id}/page/{n} |
Signed-in; address token | limits. Book inside a library. Page exists. Restrictive content policy |
GET /api/items/{id}/epub/{file...} |
Signed-in; address token | limits. EPUB inside a library. Name cleaned and looked up in the archive. Restrictive content policy |
GET /api/items/{id}/annotations |
Signed-in | limits. Book inside a library. own |
POST /api/items/{id}/annotations |
Signed-in | limits. Book inside a library. Kind, colour, sizes, per-book count |
PUT /api/annotations/{aid} |
Signed-in | own. Colour and note only |
DELETE /api/annotations/{aid} |
Signed-in | own |
GET /api/items/{id}/search |
Signed-in | limits. Book inside a library |
GET /api/dictionary |
Signed-in | One word of up to 40 characters. Internet-only client |
GET /api/music/albums |
Signed-in | limits, in the query |
GET /api/music/artists |
Signed-in | limits, in the query |
GET /api/music/tracks |
Signed-in | limits, in the query. Paths for admins only |
GET /api/music/home |
Signed-in | limits, in the query. own plays. Paths for admins only |
GET /api/music/songs |
Signed-in | limits, in the query. own plays. Search of up to 200 characters, at most 5000 songs. Paths for admins only |
GET /api/music/likes |
Signed-in | own. limits, in the query |
GET /api/music/radio/{id} |
Signed-in | limits, on the song and what is suggested. 2 to 200 songs. Paths for admins only |
GET /api/music/loudness/{id} |
Signed-in | limits. An audio item inside a library. Values held to a range |
GET /api/music/extras/{id} |
Signed-in | limits. An audio item inside a library. PDFs and text files, plain files only, 50 at most |
GET /api/music/extras/{id}/file |
Signed-in | limits. Name is one the listing gave. Opened inside a library, plain files only. Text up to 512 KB, as JSON. A PDF is sent as a PDF for the browser's own viewer, without the script-free policy, within the limit for viewers away from home |
GET /api/music/artist |
Signed-in | limits, in the query. Name of up to 300 characters. Online biography only when the owner turned it on, its credit a Wikipedia address |
GET /api/music/artist-photo |
Signed-in | limits: an artist with a song the account may see. Name of up to 300 characters. Opened inside a library. Pictures only |
GET /api/music/lyrics/{id} |
Signed-in | limits. An audio item, or a music video, which shares its song's when the account may see the song. own timing. Asks online only when the owner turned it on |
PUT /api/music/lyrics/{id}/offset |
Signed-in | limits. An audio item or a music video. own. Up to two minutes either way of where it starts |
POST /api/music/lyrics/{id}/search |
Admin | limits. An audio item, or a music video, which shares its song's when the account may see the song. Online lyrics turned on. Query length |
PUT /api/music/lyrics/{id} |
Admin | limits. An audio item, or a music video, which shares its song's when the account may see the song. At most 256 KB, or a search result from a source that is turned on. Nothing is written beside the music |
DELETE /api/music/lyrics/{id} |
Admin | limits. An audio item, or a music video, which shares its song's when the account may see the song |
DELETE /api/music/lyrics-cache |
Admin | Nothing further |
GET /api/music/links/{id} |
Signed-in | limits. A song or a music video. Only links whose two ends the account may see. Suggestions for admins only |
GET /api/music/videos |
Signed-in | limits. Music video libraries only. A tied song shown only when the account may see it. Query length |
GET /api/music/links/{id}/candidates |
Admin | limits. A song or a music video. Query length. At most 50 |
GET /api/music/links |
Admin | limits. At most 500 |
PUT /api/music/links |
Admin | limits. Both ends seen by the admin: a song of a music library and a video of a music video library. Offset up to ten minutes |
DELETE /api/music/links |
Admin | limits. Both ends seen by the admin: a song of a music library and a video of a music video library |
POST /api/music/links/match |
Admin | One round at a time |
GET /api/podcasts |
Signed-in | Library within the account's allowed libraries. Feed addresses for admins only |
GET /api/podcasts/search |
Admin | Query length |
POST /api/podcasts |
Admin | A podcasts library. Feed address checked by the scanner |
PUT /api/podcasts/{id} |
Admin | Podcast exists. Count held to 0 to 50 |
POST /api/podcasts/{id}/refresh |
Admin | Podcast exists |
DELETE /api/podcasts/{id} |
Admin | Podcast exists |
POST /api/items/{id}/download |
Admin | Audio item |
POST /api/items/{id}/dvd |
Signed-in | limits. Item is a disc. Opens a session with a random id |
GET /api/dvd/{sid} |
Signed-in | Session exists. An account with limits is checked against what it plays |
POST /api/dvd/{sid}/action |
Signed-in | Session exists. An account with limits is checked against what it plays |
DELETE /api/dvd/{sid} |
Signed-in | Session id. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/menu/{serial}/overlay.png |
Signed-in; ticket; address token | Session exists, and for a ticket is of the ticket's item. Menu picture exists. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/menu/{serial}/highlight/{n} |
Signed-in; ticket; address token | Session exists, and for a ticket is of the ticket's item. Picture exists. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/menu/{serial}/effect/{n} |
Signed-in; address token | Session exists. Picture exists. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/sound/{n} |
Signed-in | Session exists. Sound exists. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/bdj |
Signed-in | Blu-ray session exists. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/bdj/frame/{n} |
Signed-in | Blu-ray session exists. An account with limits is checked against what it plays |
GET /api/bdj/status |
Admin | Nothing further |
GET /api/dvd/{sid}/still/{name} |
Signed-in; ticket; address token | Session exists, and for a ticket is of the ticket's item. Still is one the session made. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/subs |
Signed-in; address token | Session exists. Time window of at most 600 seconds. An account with limits is checked against what it plays |
GET /api/dvd/{sid}/sub/{name} |
Signed-in; ticket; address token | Session exists, and for a ticket is of the ticket's item. Picture exists. An account with limits is checked against what it plays |
GET /api/hls/{id}/master.m3u8 |
Signed-in; ticket; address token | Stream exists, and for a ticket is of the ticket's item. An account with limits is checked against what it plays |
GET /api/hls/{id}/subs/{file} |
Signed-in; ticket; address token | Stream exists, and for a ticket is of the ticket's item. Name is 'n.m3u8' or 'n.vtt' and the track exists. An account with limits is checked against what it plays |
GET /api/hls/{id}/playlist.m3u8 |
Signed-in; ticket; address token | Stream exists, and for a ticket is of the ticket's item. An account with limits is checked against what it plays |
GET /api/hls/{id}/seg/{n} |
Signed-in; ticket; address token | Stream exists, and for a ticket is of the ticket's item. Segment number. An account with limits is checked against what it plays |
GET /api/hls/{id}/work |
Signed-in | Stream exists. An account with limits is checked against what it plays |
PUT /api/hls/{id}/rate |
Signed-in | Stream exists. An account with limits is checked against what it plays |
DELETE /api/hls/{id} |
Signed-in | Removes the caller as a viewer. The stream stops when no viewer is left. An account with limits is checked against what it plays |
GET /api/settings |
Admin | Secrets masked |
PUT /api/settings |
Admin | Known keys. Numbers, lists and FFmpeg options checked for each setting |
GET /api/about |
Signed-in | Nothing: version and engines |
GET /api/licenses |
Signed-in | Nothing |
GET /api/licenses/{id} |
Signed-in | Numeric id |
GET /api/legal |
Public | Nothing |
GET /api/legal/notices |
Public | Nothing |
POST /api/legal/acknowledge |
Admin | Nothing further |
GET /api/branding/logo |
Public | Nothing |
PUT /api/branding/logo |
Admin | PNG or JPEG of at most 2 MB, 16 to 4096 pixels a side |
DELETE /api/branding/logo |
Admin | Nothing further |
GET /api/system |
Admin | Nothing further |
GET /api/users |
Signed-in | Lists only accounts the caller may manage: all for an admin, Kids profiles for an adult without limits while the owner allows that |
POST /api/users |
Signed-in | Caller may manage that kind of profile. Administrator flag for admins only. Name and password rules |
DELETE /api/users/{id} |
Signed-in | Caller may manage that account, and it isn't their own |
PUT /api/users/{id}/access |
Signed-in | Caller may manage that account. Not their own, not an administrator's |
GET /api/users/{id}/stream-limits |
Admin | The account exists |
PUT /api/users/{id}/stream-limits |
Admin | The account exists. Numbers in range (0 = none), anything else dropped |
PUT /api/users/{id}/password |
Signed-in | Own password for adults, with the current one and an attempt limit. Another account's if the caller may manage it. Length rules |
DELETE /api/users/{id}/2fa |
Admin | Not their own, not another administrator's |
GET /api/profiles/household |
Signed-in | Names, kinds and pictures of every profile, where the sign-in screen shows profiles, or anywhere for an adult's account. No limits and no passwords |
POST /api/profiles/switch |
Signed-in | 16 KB body. The other profile's password or PIN, and code, with the attempt limits of signing in. A profile with no password only at home with the profile screen on. Ends the session it came from |
GET /api/me/limits |
Signed-in | own. Names no titles |
PUT /api/me/limits |
Signed-in | own; Kids and Guest profiles only. 16 KB body. The parents' PIN, or the name and password of an account that manages the caller, each with an attempt limit. Only time rules and age limits |
GET /api/me/screen-time |
Signed-in | own |
POST /api/me/screen-time/extra |
Signed-in | own. 16 KB body. The parents' PIN, or the name and password of an account that manages the caller, each with an attempt limit. 1 to 240 minutes |
POST /api/users/{id}/screen-time/extra |
Signed-in | Caller may manage that account. Not their own, not an administrator's. 1 to 240 minutes |
GET /api/users/{id}/activity |
Signed-in | Caller may manage that account. Not their own, not an administrator's. 1 to 90 days |
DELETE /api/users/{id}/activity |
Signed-in | Caller may manage that account. Not their own, not an administrator's |
GET /api/parental/ratings |
Signed-in | Nothing: fixed lists |
GET /api/parental/pin |
Admin | Nothing further. Says only whether a PIN is set |
PUT /api/parental/pin |
Admin | The caller's own password, and code with two-factor sign-in, with an attempt limit. PIN of 4 to 12 digits, kept only scrambled |
GET /api/fs |
Admin | Folder listing through the file browser |
POST /api/fs/pick |
Admin | Only from a browser on the server's own machine |
POST /api/metadata/test |
Admin | Provider and key |
GET /api/agents |
Admin | Header values masked |
PUT /api/agents |
Admin | At most 20. Each agent validated. Unique ids |
POST /api/agents/test |
Admin | Agent validated. Title present |
GET /api/logs |
Admin | Nothing further |
PUT /api/logs |
Admin | Known levels and categories |
GET /api/logs/files/{name} |
Admin; address token | Name is a log file's name |
POST /api/logs/open |
Admin | Only from a browser on the server's own machine |
POST /api/logs/client |
Signed-in | Body limit. Event count. Rate per account. Only when the owner accepts client logs |
GET /api/logs/entries |
Admin | Filters |
GET /api/logs/summary |
Admin | Nothing further |
GET /api/logs/crashes |
Admin | Nothing further |
GET /api/logs/crashes/{id} |
Admin | Report id |
POST /api/logs/crashes/{id}/seen |
Admin | Report id |
DELETE /api/logs/crashes/{id} |
Admin | Report id |
GET /api/logs/crashes/{id}/{part} |
Admin | Report id, and the part from a fixed list |
POST /api/logs/save |
Admin | A note of at most 500 characters |
GET /api/logs/bundle |
Admin | Days, redaction |
GET /api/logs/bundle/preview |
Admin | Days, redaction |
GET /api/data-location |
Admin | Nothing further |
POST /api/data-location |
Admin | Only a folder set by setup, Settings or nobody moves. Full path; another computer's folder needs the server's own screen or -allow-network-paths; refuses a folder that isn't empty, overlaps the data or program folder, or has no room. Moves at the next start |
POST /api/data-location/check |
Admin | The same checks, changing nothing |
DELETE /api/data-location/request |
Admin | Nothing further |
POST /api/data-location/old/delete |
Admin | Own password, and a code with two-factor sign-in. Deletes only what the move copied out of the old folder |
GET /api/data-location/progress |
Admin | Nothing further. While a move runs, the port answers only this, with two numbers |
GET /api/reset |
Admin | Nothing further |
POST /api/reset |
Admin | Types RESET. Own password, and a code with two-factor sign-in. Folder layout checked |
POST /api/reset/restore |
Admin | Own password, and a code with two-factor sign-in. Copy name |
DELETE /api/reset/request |
Admin | Nothing further |
POST /api/reset/copies/delete |
Admin | Own password, and a code with two-factor sign-in. Copy name |
GET /api/update |
Admin | Build can update itself |
POST /api/update/check |
Admin | Build can update itself. Answers younger than a minute are reused |
POST /api/update/apply |
Admin | Signed release, checked by the updater |
POST /api/update/installer |
Admin | Signed release; the installer is checked against its signed checksum before it is kept |
GET /api/update/installer |
Admin | Only an installer that was downloaded and checked |
GET /api/modulestore |
Admin | Nothing further |
POST /api/modulestore/check |
Admin | Answers younger than a minute are reused for this project's catalogue |
GET /api/modulestore/item/{store}/{id} |
Admin | Known store and module |
POST /api/modulestore/install |
Admin | Known module. Signed version. Says what else comes with it until confirmed. A version made for an older server only with confirmOlder |
POST /api/modulestore/update-all |
Admin | One run at a time. Signed versions |
GET /api/modulestore/run |
Admin | Nothing further |
POST /api/modulestore/run/undo |
Admin | Own password, and a code with two-factor sign-in |
DELETE /api/modulestore/run |
Admin | Nothing further |
GET /api/modulestore/modules/{id}/log |
Admin | Known module. Records are redacted when written |
GET /api/modulestore/media/{store}/{sha} |
Admin | A picture a catalogue lists, checked against its hash, PNG or JPEG. At most 64 MB kept for one store, and what it stops listing goes. No token in the address |
POST /api/modulestore/stores/preview |
Admin | Public addresses only. The body can allow the local network, with own password and a code with two-factor sign-in, as what comes back says what's listening. Size limits. Keeps nothing |
POST /api/modulestore/stores |
Admin | Warning agreed to. Own password, and a code with two-factor sign-in. Signature checked against the key pinned |
DELETE /api/modulestore/stores/{id} |
Admin | Known store. What uses it goes back to the official version |
PUT /api/modulestore/stores/{id}/enabled |
Admin | Known store. Body says on or off |
POST /api/modulestore/stores/{id}/check |
Admin | Known store. Its pinned key has to match |
POST /api/modulestore/stores/{id}/fork/{module} |
Admin | Known store and module. Confirmation, with own password and a code with two-factor sign-in. The key the admin was shown. Refused for WittyTuner, where the machine's owner keeps forks out, and where this system can't box one in |
GET /api/modules |
Admin | Nothing further |
POST /api/modules/check |
Admin | Answers younger than a minute are reused |
POST /api/modules/{id}/install |
Admin | Known module. Signed version. Confirmation for a version with a warning, with own password and a code with two-factor sign-in for one older than what is in use. A version made for an older server only with confirmOlder |
POST /api/module-uploads |
Admin | A multipart release archive of at most 512 MiB, a checksum list of 1 MiB, a signature of 4 KiB and a key of 256 bytes. Unpacked under the size limit with no paths out of its folder, checked, and held for 30 minutes for the administrator who sent it. Nothing runs |
POST /api/module-uploads/{token}/install |
Admin | Own password and a code with two-factor sign-in. The upload is this administrator's and still held. The go-ahead names exactly the overrides needed, the module's name typed at severity 3 and above, and only permissions it asks for, for someone else's code, never with WMS_NO_MODULE_FORKS. Audited |
DELETE /api/module-uploads/{token} |
Admin | The upload is this administrator's |
DELETE /api/modules/{id}/pending |
Admin | Known module with a download held |
DELETE /api/modules/{id}/override |
Admin | Own password and a code with two-factor sign-in. Known module with an override. Audited |
GET /api/modules/audit |
Admin | Nothing: what was done to modules, at most 1000 rows |
POST /api/modules/{id}/rollback |
Admin | Known module. Own password, and a code with two-factor sign-in, once confirmed |
GET /api/modules/{id}/versions |
Admin | Known module |
POST /api/modules/{id}/pin |
Admin | Known module |
DELETE /api/modules/{id}/pin |
Admin | Known module |
PUT /api/modules/{id}/autoupdate |
Admin | Known module. Body says on or off |
POST /api/modules/{id}/latest |
Admin | Known module |
PUT /api/modules/{id}/source |
Admin | Known module. Repository and key. Confirmation, with own password and a code with two-factor sign-in |
DELETE /api/modules/{id}/source |
Admin | Known module |
POST /api/modules/{id}/add |
Admin | Known module. A version made for an older server only with confirmOlder |
GET /api/modules/{id}/secrets |
Admin | Known module. Names only, never values |
PUT /api/modules/{id}/secrets/{name} |
Admin | Known module. Name of letters, digits, -, _ and ., up to 64. The value is never answered or logged; the audit log says it was set or removed |
POST /api/modules/{id}/remove |
Admin | Known module. No library needs it |
POST /api/modules/{id}/enable |
Admin | Known module |
POST /api/modules/{id}/disable |
Admin | Known module. No library needs it |
PUT /api/modules/installed |
Admin | Known modules. No library needs what is left out. A version made for an older server only for modules named in confirmOlder |
GET /api/modules/libraries |
Signed-in | Nothing: which kinds of library exist |
PUT /api/modules/libraries/{type}/label |
Admin | Known type. Label rules |
GET /api/modules/web |
Signed-in | Nothing: the bundles in use |
GET /api/modules/{id}/icon |
Signed-in | Known module. Only what the signed catalogue names, kept on this server |
GET /api/modules/{id}/notices |
Signed-in | Known module. Only the notices file of the version in use |
GET /api/module-store/{id}/{key} |
Signed-in | own. Known module. A key of letters and digits |
PUT /api/module-store/{id}/{key} |
Signed-in | own. Known module. A key of letters and digits. JSON of at most 64 KB, and 32 keys for a module |
GET /api/module-images/{module}/{name} |
Signed-in | A name of letters and digits with one extension, inside that module's own picture folder; only pictures a module kept through the host API |
GET /api/modules/{id}/web/{version}/{path...} |
Signed-in; address token | Version in use. Name in the bundle's signed list, of a listed file type, hash checked when served |
POST /api/modules/{id}/failed |
Signed-in | Known module. 4 KB body. Rate per account. Counts against a version only from an admin, once an hour per sign-in |
GET /api/reach/{nonce} |
Public | Nonce of a running outside test |
GET /api/remote |
Admin | Nothing further |
GET /api/remote/status |
Signed-in, or this computer | no account only from the server's own computer, directly (the tray). What is wrong in a fault, which can name files, only for an admin |
PUT /api/remote |
Admin | Method, outside address, network lists, limits, ports, HTTPS mode and its fields. Turning on unencrypted connections from away also needs acceptPlainAway and the admin's own password (and code) |
POST /api/remote/test |
Admin | Address is one the server offered |
POST /api/remote/selfcheck |
Admin | Outside address is set |
POST /api/remote/router |
Admin | Nothing further |
POST /api/remote/obtain |
Admin | HTTPS is on, in certificate-request mode |
DELETE /api/remote/lockouts |
Admin | Nothing further |
DELETE /api/remote/plain-sessions |
Admin | Nothing further |
GET /api/p2p |
Signed-in | Nothing further. The server's connection ID only for signed-in accounts. device says whether that device is the caller's own |
GET /api/p2p/devices |
Signed-in | own. Everyone's with 'all=1', for an admin |
POST /api/p2p/devices |
Signed-in | A session token, not a stream token. A well-formed Ed25519 device ID that isn't the server's own. A key listed for another account is refused. At most 32 per account, 512 in all |
DELETE /api/p2p/devices/{id} |
Signed-in | own. Any account's for an admin. Someone else's answers as if there were none |
GET /api/connect |
Signed-in | Says only whether devices can connect from away, and whether the caller may turn that on |
POST /api/connect/offer |
Adult | Target is the caller or a profile the caller manages. An administrator's own password (and code) again to sign a device in as an administrator. Limit on tries per account and on open codes; three open per person, the oldest ended by a fourth. The link only for a profile allowed away from home, with peer-to-peer connections on |
GET /api/connect/offer |
Signed-in | own: whether the caller's own code is open, or was ended by a restart. Nothing about anyone else's |
DELETE /api/connect/offer |
Signed-in | own |
POST /api/p2p/invite |
Adult | Target is the caller or a profile the caller manages. An administrator's own password (and code) again to sign a device in as an administrator. Peer-to-peer connections are on. Limit on open invites |
POST /api/p2p/join |
Adult | Target is the caller or a profile the caller manages. An administrator's own password (and code) again to sign a device in as an administrator. Peer-to-peer connections and their address book are on. A well-formed code. Limit on codes waiting |
GET /api/p2p/settings |
Admin | Nothing further |
PUT /api/p2p/settings |
Admin | Port, layers, relay limit, own relays (each a multiaddr ending in a valid ID). Turning it on, or letting unlisted devices in, also needs accept |
GET /api/p2p/status |
Admin | Nothing further |
POST /api/p2p/test |
Admin | Peer-to-peer connections are on. One test at a time |
POST /api/p2p/relay-check |
Admin | One at a time (shares the connection test's lock); contacts only the address given, from a throwaway key |
POST /api/p2p/check |
Admin | Reads the node's own status; contacts nobody. Addresses are said by kind and port, never in full |
GET /api/p2p/attempts |
Admin | In memory only, never sent anywhere; at most 12 tries for each of 100 devices; a relayed device ID is only trusted once the server accepted it |
POST /api/p2p/rotate |
Admin | The admin's own password (and code), with an attempt limit |
GET /api/sessions |
Signed-in | own. Everyone's with 'all=1', for an admin |
DELETE /api/sessions |
Signed-in | own, except the current one |
DELETE /api/sessions/{id} |
Signed-in | own. Any account's for an admin. Not a Kids or Guest profile kept on its device by the parents' PIN |
GET /api/me/2fa |
Signed-in | own |
POST /api/me/2fa/setup |
Signed-in | Own password, with an attempt limit |
POST /api/me/2fa/confirm |
Signed-in | Code, with an attempt limit |
POST /api/me/2fa/disable |
Signed-in | Own password and code, with an attempt limit |
GET /api/photos/months |
Signed-in | A photos library the account may open. limits. Album visible to the account |
GET /api/photos/list |
Signed-in | A photos library the account may open. limits. Album visible to the account |
GET /api/photos/folders |
Signed-in | A photos library the account may open. limits |
GET /api/photos/map |
Signed-in | A photos library the account may open. limits. Box of four numbers |
GET /api/photos/ai |
Signed-in | Nothing: reserved |
GET /api/photos/{id} |
Signed-in | limits |
GET /api/items/{id}/image |
Signed-in; address token | limits. Photo or video. Type from a fixed list |
GET /api/items/{id}/original |
Signed-in | limits. Photo or video. Type from a fixed list. Sent as a download |
GET /api/items/{id}/motion |
Signed-in | limits. Clip's path is inside a library |
POST /api/libraries/{id}/upload |
Adult | Uploads turned on. A photos or shorts library the account may open. Name cleaned, listed extension, first bytes checked, never replaces a file. Size per request from settings |
GET /api/creators |
Signed-in | A creator library the account may open. limits |
GET /api/creators/{id} |
Signed-in | Creator has a video the account may see |
PUT /api/creators/{id} |
Admin | Field sizes. Name present |
GET /api/creators/{id}/art/{kind} |
Signed-in | Creator has a video the account may see. Pictures only |
PUT /api/creators/{id}/subscribe |
Signed-in, not Guest | Creator has a video the account may see |
GET /api/videos |
Signed-in | A creator library the account may open. limits. No paths in the answer |
GET /api/videos/feed |
Signed-in | A creator library the account may open. limits |
GET /api/videos/tags |
Signed-in | A creator library the account may open. limits |
GET /api/videos/{id} |
Signed-in | limits |
PUT /api/videos/{id} |
Admin | Item exists. Field sizes, date, web address |
GET /api/videos/{id}/related |
Signed-in | limits |
PUT /api/items/{id}/reaction |
Signed-in, not Guest | limits. Value is 1, 0 or -1 |
POST /api/items/{id}/view |
Signed-in | limits. own |
GET /api/items/{id}/comments |
Signed-in | limits |
POST /api/items/{id}/comments |
Adult | limits. Text cleaned, up to 2000 characters. A reply answers a comment on the same item |
PUT /api/comments/{cid} |
Signed-in | Comment's writer, who may still see the item, or an admin. Text rules |
DELETE /api/comments/{cid} |
Signed-in | Comment's writer, who may still see the item, or an admin |
GET /api/collections |
Signed-in | Own and shared. limits on counts and covers |
POST /api/collections |
Adult | Name and description sizes. Rule fields |
POST /api/collections/preview |
Signed-in | Rule fields. limits |
GET /api/collections/holding |
Signed-in | own |
POST /api/collections/watch-later/items |
Signed-in, not Guest | limits on each title. 1 to 2000 |
DELETE /api/collections/watch-later/items |
Signed-in, not Guest | Own list only. 1 to 2000 |
GET /api/collections/{id} |
Signed-in | Own or shared, or an admin. limits on what it holds. Paths for admins only |
PUT /api/collections/{id} |
Signed-in | Collection's owner or an admin. Sizes. Rule fields |
DELETE /api/collections/{id} |
Signed-in | Collection's owner or an admin. Not a system list |
POST /api/collections/{id}/items |
Signed-in | Collection's owner or an admin. Not a smart list. limits on each title. 1 to 2000 |
DELETE /api/collections/{id}/items |
Signed-in | Collection's owner or an admin. 1 to 2000 |
GET /api/radio |
Signed-in | A radio library the account may open. limits. Stream addresses for admins only |
POST /api/radio |
Admin | A radio library. Station fields |
POST /api/radio/import |
Admin | A radio library. Playlist parsed |
POST /api/radio/check |
Admin | A radio library |
GET /api/radio/directory/search |
Admin | Directory turned on |
GET /api/radio/directory/browse |
Admin | Directory turned on |
POST /api/radio/directory/add |
Admin | Directory turned on. A radio library |
GET /api/radio/{id} |
Signed-in | limits. A station. Stream address for admins only |
DELETE /api/radio/{id} |
Admin | Numeric id |
GET /api/radio/{id}/now |
Signed-in | limits. A station |
POST /api/radio/{id}/check |
Admin | A station |
POST /api/radio/{id}/lookup |
Admin | Directory turned on. A station |
GET /api/radio/{id}/stream |
Signed-in; ticket; address token | limits. A station with a valid address. Limits on streams at once. Type checked. Internet-only client |
GET /api/radio/{id}/hls |
Signed-in; ticket; address token | limits. A station. Address sealed by this server for this station. Type checked. Internet-only client |
GET /api/me/review |
Signed-in | own. Year from 2000 to 3000 |
DELETE /api/me/history |
Signed-in | own |
GET /api/me/recommended |
Signed-in | own record. limits. Count up to 50 |
GET /api/shares |
Signed-in | own. Everyone's with 'all=1', for an admin |
POST /api/shares |
Adult | Links turned on. Item: limits, photo or video. Photos: 1 to 2000, each a photo or video visible to the caller, a title. Days from 0 to 3650 |
DELETE /api/shares/{id} |
Signed-in | Link's maker or an admin |
GET /api/share/{token} |
Public, with the link's secret | Links turned on. Secret's hash, end date. The maker's limits |
GET /api/share/{token}/image/{id} |
Public, with the link's secret | As above. Item is what the link names. Always re-encoded |
GET /api/share/{token}/original/{id} |
Public, with the link's secret | As above. Item is what the link names. Link allows download |
GET /api/share/{token}/play/{id} |
Public, with the link's secret | As above. Item is what the link names, and a video |
GET /api/share/{token}/file/{id} |
Public, with the link's secret | As above. Item is what the link names, a browser-safe video with no location |
GET /api/share/{token}/hls/{id}/playlist.m3u8 |
Public, with the link's secret | As above. Item is what the link names, and a video |
GET /api/share/{token}/hls/{id}/seg/{n} |
Public, with the link's secret | As above. Item is what the link names, and a video. Segment number |
GET /api/guide |
Signed-in | Channels the account may watch. Time range, hours, paging |
GET /api/tv/{key}/tune |
Signed-in | Channel key. Channel visible to the account, enabled, and not encrypted. For a library channel, limits on what is on now |
GET /api/tv/{key}/live/playlist.m3u8 |
Signed-in | Channel key. Channel checked again on each request |
GET /api/tv/{key}/live/work |
Signed-in | Channel key. Channel checked again on each request |
GET /api/tv/{key}/live/seg/{name} |
Signed-in | Channel key. Channel checked again on each request. Name is a segment the stream made |
POST /api/tv/{key}/leave |
Signed-in | Channel key. Viewer name of up to 40 characters |
GET /api/tv/settings |
Admin | Nothing further |
PUT /api/tv/settings |
Admin | Known keys. Value checked for each |
PUT /api/libraries/{id}/main |
Admin | A commercials library |
GET /api/channels |
Signed-in | Channels visible to the account. Definitions for admins only |
POST /api/channels |
Admin | Definition validated |
POST /api/channels/preview |
Admin | Definition validated. Day from 0 to 14 |
GET /api/channels/suggestions |
Admin | Nothing further |
GET /api/channels/options |
Admin | Nothing further |
POST /api/channels/from-network |
Admin | Network name of up to 200 characters. Definition validated |
POST /api/channels/clone/upload |
Admin | Body up to 200 MB, stored under a random name in the data folder, removed after a week |
POST /api/channels/clone/stations |
Admin | Guide links fetched only from the internet (no local addresses), up to 200 MB; {key} filled from the masked guideKey setting, never stored in the channel; a {key} link must be https://, may not put the key in the host or user name, goes only to the host the key was first used with (reset when the key is entered again; the host isn't a setting the API reads or writes), follows no redirect to another host, and its errors never show the key. TVmaze country two capital letters |
POST /api/channels/clone/import |
Admin | As stations. Body up to 4 MB, at most 1500 slots, 1 to 7 days |
POST /api/channels/clone/candidates |
Admin | Nothing further |
POST /api/channels/networks/refresh |
Admin | Nothing further |
GET /api/channels/networks/refresh |
Admin | Nothing further |
GET /api/channels/{id} |
Admin | Channel exists |
PUT /api/channels/{id} |
Admin | Channel exists. Definition validated |
DELETE /api/channels/{id} |
Admin | Channel exists |
POST /api/channels/{id}/rebuild |
Admin | Channel exists |
POST /api/channels/{id}/reset |
Admin | Channel exists; startOver is a boolean. Changes only that channel's schedule and every account's reminders for it |
GET /api/channels/{id}/history |
Admin | Numeric id |
POST /api/channels/{id}/restore |
Admin | Channel and history entry exist |
GET /api/channels/{id}/logo |
Signed-in | Numeric id |
PUT /api/channels/{id}/logo |
Admin | Channel exists. PNG or JPEG of at most 2 MB, 16 to 4096 pixels a side |
DELETE /api/channels/{id}/logo |
Admin | Numeric id |
GET /api/tv/{key}/logo |
Signed-in | Channel key. Account may watch tuner channels, channel enabled. Web address only, internet-only client, pictures only |
GET /api/recordings |
Tuner channels | own, and every account's for an administrator |
POST /api/recordings |
Tuner channels | canRecord: a tuner channel, turned on, visible, clear and not marked not to be recorded; never a library channel. 50 waiting per account, none for an administrator |
DELETE /api/recordings/{id} |
Tuner channels | own, and every account's for an administrator |
GET /api/recording-rules |
Tuner channels | own, and every account's for an administrator |
POST /api/recording-rules |
Tuner channels | canRecord: a tuner channel, turned on, visible, clear and not marked not to be recorded; never a library channel. 20 per account, none for an administrator |
PUT /api/recording-rules/{id} |
Tuner channels | own, and every account's for an administrator. Padding up to an hour before and three after; keep 0 to 1000 |
DELETE /api/recording-rules/{id} |
Tuner channels | own, and every account's for an administrator |
GET /api/diagnose/targets |
Admin | Nothing further |
GET /api/diagnose/browse |
Admin | Path resolved inside the allowed places |
POST /api/diagnose/disc |
Admin | Path resolved inside the allowed places |
POST /api/diagnose/storage |
Admin | Targets from the server's own list |
GET /api/diagnose/jobs |
Admin | Nothing further |
GET /api/diagnose/jobs/{id} |
Admin | Job exists |
DELETE /api/diagnose/jobs/{id} |
Admin | Job exists |
GET /api/diagnose/jobs/{id}/report |
Admin | Job exists. Format, redaction |
GET /api/guide/search |
Signed-in | Channels the account may watch, and limits on what they show. 2 to 100 letters, up to two weeks ahead. A few searches at a time |
GET /api/time |
Signed-in | Nothing: the server's clock |
GET /api/tv/favourites |
Signed-in | own |
PUT /api/tv/favourites/{key} |
Signed-in | own. A channel the account may watch. A limit per account |
DELETE /api/tv/favourites/{key} |
Signed-in | own. A channel the account may watch |
GET /api/tv-sets |
Signed-in | own, and sets an administrator shared. Counts only channels the account may watch |
POST /api/tv-sets |
Signed-in | own. Channels the account may watch. Name of 1 to 40 characters, unique. 50 sets and 5000 channels per set. Sharing needs an administrator |
PUT /api/tv-sets/order |
Signed-in | own order, of sets the account sees |
GET /api/tv-sets/{id} |
Signed-in | own, or shared |
PUT /api/tv-sets/{id} |
Signed-in | own; a shared set, an administrator. New channels must be ones the account may watch. Sharing needs an administrator |
POST /api/tv-sets/{id}/channels |
Signed-in | own; a shared set, an administrator. Added channels must be ones the account may watch |
DELETE /api/tv-sets/{id} |
Signed-in | own; a shared set, an administrator |
GET /api/tv/{key}/programme |
Signed-in | Channel key. Channel visible to the account and enabled; for a library channel, limits on what is on then. Credits, trailers and schedule only from what the profile may see |
GET /api/tv/{key}/startover |
Signed-in | Library channel: visible to the profile, start over on (tvStartOver), what was on then visible. Tuner channel: as GET /api/tv/{key}/catchup. The stream is named by the account, the player and its quality, so it is the viewer's alone |
GET /api/tv/{key}/timeline |
Signed-in | Library channel visible to the profile. Reads the schedule only |
GET /api/tv/{key}/shift/{viewer}/playlist.m3u8 |
Signed-in | Library channel visible to the profile; the stream of this account and player only. A stream token for that channel |
GET /api/tv/{key}/shift/{viewer}/seg/{name} |
Signed-in | As the playlist. Only segment names FFmpeg wrote |
GET /api/tv/{key}/catchup |
Signed-in | Tuner channel key. Tuner channels allowed for the profile; channel visible, enabled and not encrypted; a start within the source's archive |
GET /api/tv/{key}/catchup/{start}/playlist.m3u8 |
Signed-in | As GET /api/tv/{key}/catchup. A stream token for that channel |
GET /api/tv/{key}/catchup/{start}/seg/{name} |
Signed-in | As GET /api/tv/{key}/catchup. Only segment names FFmpeg wrote |
GET /api/tv/reminders |
Signed-in | own |
POST /api/tv/reminders |
Signed-in | own. A channel the account may watch. Title of up to 300 characters, a time ahead. A limit per account |
DELETE /api/tv/reminders/{id} |
Signed-in | own |
GET /api/channels/bumpers |
Admin | Nothing further |
GET /api/channels/videos |
Admin | Ids must be numbers; at most 100 libraries and 2000 ids; search cut to 200 characters; a page holds at most 200 |
POST /api/channels/bumpers |
Admin | A video that exists |
POST /api/channels/bumpers/upload |
Admin | Name cleaned, video extension, first bytes checked, never replaces a file. At most 2 GB and 30 minutes. Keeps room free on the disk. Read as a video before it is kept |
DELETE /api/channels/bumpers/item/{id} |
Admin | Bumper exists. A file is deleted only in the bumpers folder |
GET /api/channels/discs |
Admin | Nothing further |
POST /api/channels/clip-preview |
Admin | A disc that exists. Title exists. Encrypted discs are refused |
GET /api/backup |
An admin, or before any account exists this machine or the setup code | Backups kept, what's going on, and a restore waiting. Before any account exists: no folder, schedule or settings |
GET /api/backup/estimate |
Admin | Nothing further |
POST /api/backup/create |
Admin | Known parts, and what each needs. A password of at least 8 characters, if given. One job at a time. The file stays on the server until a download asks for the password |
POST /api/backup/cancel |
An admin, or before any account exists this machine or the setup code | Nothing: stops the job going |
PUT /api/backup/schedule |
Admin | Frequency, hour, weekday, keep of 1 to 365, known parts. A password of at least 8 characters, kept only as a key made from it. Keeping fewer than before takes the account's password, and code with two-factor sign-in |
PUT /api/backup/folder |
Admin | Takes the account's password, and code with two-factor sign-in. An absolute path to a folder that already exists, not a drive's top, not in or holding the data, program, cache, log or library folders. A marker file is written; no backup is made there while it's missing. Never restored from a backup |
DELETE /api/backup/files/{name} |
Admin | Name has the form of one of this folder's backups, and is a plain file there. The account's password, and code with two-factor sign-in, with an attempt limit |
POST /api/backup/files/{name}/link |
Admin | The account's password, and code with two-factor sign-in, with an attempt limit. Name as for deleting. A ticket for that one file, for 10 minutes |
GET /api/backup/download |
Public, with a ticket | The ticket (?st=) names one file and lasts 10 minutes. It isn't a sign-in, and opens nothing else |
POST /api/backup/restore/upload |
An admin, or before any account exists this machine or the setup code | No size limit of its own: stops at the drive's free space, less 2 GB. Name made here. Before any account exists: at most 3 waiting. Nothing is opened |
POST /api/backup/restore/inspect |
An admin, or before any account exists this machine or the setup code | Name as for deleting. One job at a time. Every name, link, size, ratio and hash, and each folder's kind of file. A database is read as values into a clean one, and its rows made harmless. Nothing is changed |
POST /api/backup/restore/start |
An admin, or before any account exists this machine or the setup code | Typed RESTORE. Password and code, unless no account exists. An archive that's been checked, and known parts. It's read again as it's unpacked. The swap is made at the next start |
DELETE /api/backup/restore/request |
An admin, or before any account exists this machine or the setup code | Nothing: takes back what's waiting for the next start |
POST /api/backup/undo |
Admin | Password, and code with two-factor sign-in. Safety copy name by form, holding its own list. What it moves stays inside the data folders |
GET /api/libtranscode/options |
Admin | Nothing further |
GET /api/libtranscode/settings |
Admin | Nothing further |
PUT /api/libtranscode/settings |
Admin | Numbers within their ranges |
GET /api/libtranscode/libraries |
Admin | Nothing further |
PUT /api/libtranscode/libraries/{id} |
Admin | A library that holds video. Every choice in a recipe is from a list or a range, and languages are checked by form. Known output. Starting to replace originals takes the account's password, and code with two-factor sign-in |
GET /api/libtranscode/libraries/{id}/items |
Admin | A library that holds video. At most 100 answered |
POST /api/libtranscode/libraries/{id}/preview |
Admin | A library that holds video. Item in that library. Recipe as for saving |
POST /api/libtranscode/libraries/{id}/sample |
Admin | As a preview. Writes only to the cache |
POST /api/libtranscode/libraries/{id}/runs |
Admin | A library that holds video. At most 10,000 items. A real run does only what's saved. FFmpeg opens files as a list of media formats, local only |
GET /api/libtranscode/runs |
Admin | Library number |
GET /api/libtranscode/runs/{id} |
Admin | Numeric id |
GET /api/libtranscode/runs/{id}/files |
Admin | Numeric id. Limit of at most 200. Offset |
GET /api/libtranscode/leftovers |
Admin | Library number |
POST /api/libtranscode/files/{id}/undo |
Admin | A file of a run. Paths from the run's own record, which no backup holds. Refused while it's playing |
POST /api/libtranscode/files/{id}/use-copy |
Admin | A file of a run. Paths from the run's own record, which no backup holds |
DELETE /api/libtranscode/files/{id}/leftover |
Admin | A file of a run. Only a kept original or a converted copy, by the form of its name, from the run's own record |
GET /api/libtranscode/tdarr |
Admin | Nothing further. The key is never answered |
PUT /api/libtranscode/tdarr |
Admin | Web address with no login in it. Lengths. A new address needs its key again, and own password and a code with two-factor sign-in |
POST /api/libtranscode/tdarr/test |
Admin | Web address with no login, not the cloud metadata address. No redirects. Time and size limits. The saved key goes only to the saved address. Any other address asks for own password and a code with two-factor sign-in |
POST /api/libtranscode/tdarr/send |
Admin | At most 10,000 items. Library mapped. Saved address only |
GET /api/metadata-folder |
Admin | Nothing: the folder's place is fixed |
POST /api/metadata-folder/export |
Admin | Library number. One job at a time. The folder's place is fixed. No link is followed |
GET /api/metadata-folder/preview |
Admin | Nothing: the folder's place is fixed. Files are limited in size, and read through their own checks. Nothing is written |
POST /api/metadata-folder/apply |
Admin | As a preview. Pictures must be pictures, addresses must be web addresses, and text can't hold markup. One batch that can be undone |
GET /api/system/metrics |
Signed-in | What this account gets, by the owner's setting. Nothing about the machine unless that's the whole view |
GET /api/system/metrics/now |
Signed-in | By the owner's setting. Only an administrator sees the machine and other people. Known sections |
GET /api/system/metrics/stream |
Signed-in | As for one reading. Limits on open streams, per account and overall. The account is looked at again as it runs |
GET /api/system/metrics/history |
Signed-in | Administrators only, said in the handler. Known range, known series |
GET /api/system/metrics/report |
Signed-in | By the owner's setting. Libraries the account may open, and its own record. The rest for administrators |
GET /api/system/metrics/drives |
Admin | Nothing further |
GET /api/health/library |
Admin | Known sections, a limit of 500 rows. Reads only the database and the last NFO check. Shows file paths, as the rest of Settings does to an administrator |
POST /api/health/library/check |
Admin | One check at a time, with a time and file limit. Reads only files beside titles, in library folders that are there, and only up to the size an NFO may be. Changes nothing |
DELETE /api/health/library/check |
Admin | Nothing further |
POST /api/health/library/fix |
Admin | Known actions. Versions: films in one library, as the item editor allows. Forget: only a title marked gone whose file is still gone and whose library folder is there and not empty, logged with who did it. Probe: a video file of a title that's there, with a time limit. Set aside: a key of at most 2048 characters, at most 5000 kept. No media file is changed |
GET /api/repair |
Admin | Nothing further |
POST /api/repair/check |
Admin | Known checks. One job at a time. Nothing is changed |
POST /api/repair/fix |
Admin | Keys from the last check, and fixes that can be made. Password and code for anything but what can't lose anything. Paths come only from the check |
POST /api/repair/remap |
Admin | Path lengths. A full path to a folder that exists, outside the data folder, on this machine unless it's allowed or asked for at the server. Most of the library's files must be there. Password and code to apply it. No file moves |
POST /api/repair/restart |
Admin | A fix is waiting for it |
GET /api/network |
Admin | Nothing further. Shows file paths, as the rest of Settings does to an administrator |
POST /api/network/check |
Admin | A port number only. Listens on it for a moment and closes it again |
PUT /api/network |
Admin | A port number only, checked as above. Refused while -listen, WMS_LISTEN, wms.json or Docker set the port. Writes only the settings.ini that config.SettingsSaveFile chooses, never a path from the request, and is logged with who did it |
POST /api/network/restart |
Admin | Nothing further. Logged with who asked |
GET /api/notifications/channels |
Admin | Their own channels and the mail server. The SMTP password and webhook secret are never sent back, only whether one is set |
PUT /api/notifications/channels |
Admin | Email addresses parsed, no line breaks in any header value. Webhook only http/https, no name or password in the address, 500 characters. SMTP needs STARTTLS or TLS (1.2 at least) unless the mail server is this machine; a password is never sent in the clear. Logged with who changed it |
POST /api/notifications/channels/test |
Admin | Their own saved channels only, never an address from the request. 15 s for a webhook, which isn't followed to another address; 30 s for email |
GET /api/system/tasks |
Signed-in | By the owner's setting. Tasks of libraries the account may open, or its own. No file names, errors or other people for anyone but an administrator |
GET /api/system/tasks/stream |
Signed-in | As for the list. Limits on open streams, per account and overall. The account is looked at again as it runs |
GET /api/system/tasks/history |
Signed-in | As for the list. Limit, type, state, library |
DELETE /api/system/tasks/history |
Admin | Nothing further |
DELETE /api/system/tasks/history/{id} |
Admin | Task id |
POST /api/system/tasks/{id}/pause |
Admin | Task exists, and can be paused |
POST /api/system/tasks/{id}/resume |
Admin | Task exists, and can be resumed |
POST /api/system/tasks/{id}/cancel |
Admin | Task exists, and can be cancelled |
POST /api/system/tasks/{id}/retry |
Admin | Task exists, and its kind can be started again |
POST /api/themes/custom |
Admin | Name, known colours as colour values and nothing else, radius in range. Becomes a theme through the theme manager's own check |
GET /api/sdui/catalog |
Signed-in | Nothing of anyone's: the schema's own description, the same for every account |
GET /api/sdui/navigation |
Signed-in | limits. Device parameters by form. Libraries the account may not open and entries whose conditions it fails are left out; Settings always present. A preview token only for the administrator it was made for |
GET /api/sdui/navigation/personal |
Signed-in | own arrangement only |
PUT /api/sdui/navigation/personal |
Signed-in | own arrangement only. The profile's editLayout switch and the server's personalisation switch (403). 8 KB, strict JSON, IDs by form |
DELETE /api/sdui/navigation/personal |
Signed-in | own arrangement only. The same switches as saving |
GET /api/sdui/pages/{page} |
Signed-in | Page name by form. Device parameters by form: platform, form factor, device class, catalogue revision, components, views, viewport, locale, capabilities. Filled only with what the account may see: every data source is read through its limits, whatever the page names, and a library, title or collection asked for by number that it may not open is not found. Rows and cards cut to the device's budget. Its own arrangement only. A preview token only for the administrator it was made for (403). What the profile is kept from (games, Live TV, recording, watch parties, playing on other devices) is taken out of the page's conditions, data sources and buttons, after anything the client said, and its own arrangement can't bring it back. With screen time over: no playback feature, nothing offers to play, and the document says so |
GET /api/sdui/pages/{page}/diff |
Signed-in | As the page. since: an ETag of at most 200 characters, compared only with the account's own earlier renders |
GET /api/sdui/pages/{page}/sections/{section}/items |
Signed-in | As the page. Section ID at most 128 characters and must be a section of that page for this account; cursor 0 to 100000; season a number. Filled only with what the account may see: every data source is read through its limits, whatever the page names |
GET /api/sdui/pages/{page}/personal |
Signed-in | own arrangement only. Page exists |
PUT /api/sdui/pages/{page}/personal |
Signed-in | own arrangement only. Page exists. The profile's editLayout switch and the server's personalisation switch (403). 8 KB, strict JSON, IDs by form, at most 64 pages a profile |
DELETE /api/sdui/pages/{page}/personal |
Signed-in | own arrangement only. Page exists. The same switches as saving |
GET /api/sdui/topshelf |
Signed-in | limits. The account's own continue-watching and what is new in libraries it may open, at most 4 rows of 10. Device class by form. No games with games turned off for the profile |
GET /api/sdui/tv-summary/{id} |
Signed-in | limits. Counts of what the account may see; administrators' screens (modules, backup, transcoding, network, every channel) only for an admin. Home-network addresses only on the home network |
GET /api/sdui/experiences |
Signed-in | the same for everyone. The experiences the server ships and the themes installed; what a person may choose is GET /api/sdui/experience |
GET /api/sdui/placements |
Signed-in | own choice only. The shell's regions and where they are on this device |
PUT /api/sdui/placements |
Signed-in | own choice only, for this device. The profile's editLayout switch and the server's personalisation switch (403). Known regions and positions only; the menu and You can't be hidden (400) |
DELETE /api/sdui/placements |
Signed-in | own choice only. The same switches as saving |
GET /api/sdui/experience |
Signed-in | own choice only. The layout in force on this device, the profile's own choice and what it may choose from |
PUT /api/sdui/experience |
Signed-in | own choice only, for this device (device by form, else the form factor). The profile's editLayout switch and the server's personalisation switch (403). Only a layout the server allows (403). 1 KB, strict JSON, at most 32 devices a profile |
DELETE /api/sdui/experience |
Signed-in | own choice only. The same switches as saving |
GET /api/sdui/modules/settings |
Signed-in | the modules in use that the profile isn't kept from, with a settings page it may see; nothing else |
GET /api/sdui/slots/{slot} |
Signed-in | a slot the catalogue names; the modules in use that the profile isn't kept from, their pages in that slot it may see; an administrators' slot lists nothing for anyone else |
GET /api/sdui/modules/{module}/images/{name} |
Signed-in | the module is in use and the profile isn't kept from it (404). Name by form. Only pictures, as sniffed, with nosniff and a sandboxing CSP |
GET /api/sdui/modules/{module}/settings |
Signed-in | the module is in use and the profile isn't kept from it (404). Admin pages and values only for administrators; secrets never sent |
PUT /api/sdui/modules/{module}/settings/personal |
Signed-in | own values only; profile rows only; each value checked against its row. 64 KB, strict JSON |
GET /api/sdui/config |
Admin | Nothing |
PUT /api/sdui/config |
Admin | If-Match must be the current ETag (412 otherwise, 428 when missing), or target=draft. 16 MB body, strict JSON: no unknown fields. Every page and the navigation through the SDUI validator: known components and sources only, routes on this server only, pictures from this server only; theme overrides name known colour tokens and colour values only |
GET /api/sdui/config/history |
Admin | Nothing |
GET /api/sdui/config/diff |
Admin | from and to: a kept revision's number, current or draft |
POST /api/sdui/config/rollback/{rev} |
Admin | Revision number; must be a kept revision, which is validated again. If-Match, when sent, must be the current ETag |
GET /api/sdui/config/pages |
Admin | target by form |
GET /api/sdui/config/pages/{page} |
Admin | Page exists. target by form |
PUT /api/sdui/config/pages/{page} |
Admin | If-Match as for the configuration, or target=draft. 256 KB, strict JSON, the page's ID is the one in the address, and the page through the SDUI validator |
DELETE /api/sdui/config/pages/{page} |
Admin | If-Match as for the configuration, or target=draft. The page is the configuration's, or a built-in or module page (which is left as it ships); 404 otherwise |
GET /api/sdui/config/navigation |
Admin | target by form |
PUT /api/sdui/config/navigation |
Admin | If-Match as for the configuration, or target=draft. 256 KB, strict JSON. Every entry names a page that exists, a library, a native screen from the fixed list or a route on this server; Settings can't be hidden or given a condition |
DELETE /api/sdui/config/navigation |
Admin | If-Match as for the configuration, or target=draft |
POST /api/sdui/validate |
Admin | 16 MB body. target by form. Saves nothing |
GET /api/sdui/presets |
Admin | Nothing |
GET /api/sdui/config/experience |
Admin | Nothing |
PUT /api/sdui/config/experience |
Admin | Strict JSON, 16 KB; every layout and form factor checked; a default must be allowed. If-Match as for the configuration, or target=draft |
GET /api/sdui/modules |
Admin | Nothing |
PUT /api/sdui/modules/{module}/settings |
Admin | The module is in use. Server rows only; every value checked against its row. 64 KB, strict JSON |
POST /api/sdui/presets/{id}/apply |
Admin | Preset exists and is a page. If-Match as for the configuration, or target=draft |
GET /api/sdui/draft |
Admin | Nothing |
PUT /api/sdui/draft |
Admin | If-Match, when sent, must be the draft's ETag (the configuration's when there is no draft). Validated as the configuration is |
DELETE /api/sdui/draft |
Admin | Nothing further. Ends every preview |
POST /api/sdui/draft/publish |
Admin | A draft exists. If-Match, when sent, must be the draft's ETag. prefer: draft or published. Merged onto what is published (409 on conflicting items) and validated again. Ends every preview |
POST /api/sdui/draft/preview |
Admin | A draft exists. The token is random, for this administrator alone, for two hours, at most 16 at once, kept in memory |
GET /api/sdui/export |
Admin | Page exists when one is named. target by form |
POST /api/sdui/import |
Admin | 16 MB body. The file says it is a wittymedia-ui export. Into the draft unless target=published, which needs If-Match. Validated as the configuration is; dryRun changes nothing |
GET /api/theme |
Signed-in | own theme choice. Colours only |
GET /api/theme/personal |
Signed-in | own colours only |
PUT /api/theme/personal |
Signed-in | own colours only. 32 KB, strict JSON. Known colour tokens, colour values only, at most 64 a set, at most 16 module scopes by form. Refused when any text would fall below WCAG AA on the theme the profile sees |
DELETE /api/theme/personal |
Signed-in | own colours only |
PUT /api/theme/global |
Admin | Theme exists. Known colour tokens, colour values only, at most 64. If-Match, when sent, must be the current ETag of ui_config.json |
GET /api/theme/modules/{module} |
Admin | Module id by form |
PUT /api/theme/modules/{module} |
Admin | Module id by form. Known colour tokens, colour values only, at most 64. If-Match, when sent, must be the current ETag of ui_config.json |
DELETE /api/theme/modules/{module} |
Admin | Module id by form. If-Match, when sent, must be the current ETag of ui_config.json |
GET /api/media-types |
Signed-in | Nothing: known formats and whether this server can play them. Which FFmpeg it runs for admins only |
PUT /api/users/{id}/profile |
Signed-in | Caller may manage that account, or it's their own. Which name shows is anyone's own choice. Username: an adult's own, or a manager's. Profile name and picture: their own unless their limits turn that off, or a manager's. Picture is one of a fixed list. Username has no invisible characters and differs from every other, ignoring case. Display name cleaned and cut to 60 characters |
GET /api/media/{id}/canvas |
Signed-in | limits. Song, video or disc. An upload in the server's own folder, or a file beside the media that is inside a library once links are followed, or a plain file in the metadata folder named for the item; at most 64 MB and 60 seconds |
GET /api/items/{id}/canvas |
Signed-in | limits. As GET /api/media/{id}/canvas |
GET /api/media/{id}/canvas/file |
Signed-in; ticket; address token | limits. As the canvas: only a file the listing would name. Type from its name, MP4 or WebM only. Inert content policy. Limit for viewers away from home |
PUT /api/media/{id}/canvas |
Admin | Song, video or disc. At most 30 MB, MP4 or WebM by its first bytes. Written whole into the server's images folder under a name made from the item's number and a hash of its path, never beside the media; links on the way refused |
DELETE /api/media/{id}/canvas |
Admin | Removes only an upload, a plain file in the server's own folder |
POST /api/media/{id}/canvas/generate |
Admin | Song, video or disc. Cut from its own video, or from fromId, a video the administrator can see that is a file inside a library. Start and length by form, 2 to 15 seconds, inside the video. Queues one FFmpeg job at low priority, 16 waiting at most; written into the server's images folder, never beside the media, at most 30 MB |
PUT /api/media/{id}/canvas/source |
Admin | Song, video or disc. A clip of at most 512 MB, MP4/MOV or WebM by its first bytes, written into the server's images folder only until the canvas is cut from it (one FFmpeg job, as generate), then deleted |
PUT /api/media/{id}/canvas/loop |
Admin | The item has a canvas. Start and end in milliseconds, at least half a second apart, inside the canvas; kept beside the upload with the canvas's ETag, and ignored once the canvas changes |
DELETE /api/media/{id}/canvas/loop |
Admin | Removes only the loop file in the server's own folder |
GET /api/media/{id}/stems |
Signed-in | limits. A song. Uploads in the server's own folder, and files beside the song inside a library once links are followed, plain files only, 5000 entries a folder at most |
GET /api/media/{id}/stems/{stem} |
Signed-in; ticket; address token | limits. Stem is one of a fixed list of names, never used as a path. Only a file the listing would name, or for full the song itself opened through the library. Type from its name. Inert content policy. Limit for viewers away from home |
PUT /api/media/{id}/stems/{stem} |
Admin | A song. Stem is one of a fixed list of names. At most 200 MB, audio by its first bytes (an MP4 for multitrack). Written whole into the server's images folder, never beside the media; links on the way refused |
DELETE /api/media/{id}/stems/{stem} |
Admin | Stem is one of a fixed list of names. Removes only an upload, a plain file in the server's own folder |
POST /api/media/{id}/stems/approximate |
Signed-in | limits. Administrators only unless karaokeAuto is auto; 40 an hour per account. A song that is a file inside a library. Queues one FFmpeg job at low priority, 16 waiting at most on the whole server, one per song; the result is kept in the server's own folder |
POST /api/media/{id}/stems/separate |
Admin | A song that is a file inside a library. Runs only the program named in the server's own configuration (never one named in a request or a setting), without a shell, the song's path as one argument, at low priority, 45 minutes at most. Keeps only plain audio files, by their first bytes, named for a fixed list of parts, at most 200 MB each |
GET /api/media/{id}/karaoke |
Signed-in | limits. A song. Lists only stems the stems listing would, and the song itself; starts nothing |
POST /api/media/{id}/karaoke/prepare |
Signed-in | limits. A song that is a file inside a library. Follows the owner's switch (anyone, administrators only, never). Queues at most one FFmpeg job and one run of the separator found on or named on the machine (never one named in a request or a setting) per song, 16 waiting at most on the whole server; so many an hour per account; no separator on a tiny machine or a busy small one. Results kept in the server's own folder under a size cap |
GET /api/karaoke/status |
Admin | What separator the machine has (its name and version, never its path), the switch, and how much is kept. look=1 looks again |
GET /api/karaoke/separator |
Admin | Whether Demucs can be installed and is; its version and size, never a path |
POST /api/karaoke/separator/install |
Admin | Never by itself. One at a time. Downloads only from fixed addresses in the code (GitHub for uv, checked against a SHA-256 the server carries; uv's own checked Python; pinned package versions from PyPI and download.pytorch.org; on 64-bit Windows two PyPI wheels, ONNX Runtime's DirectML build and onnx, each checked against a SHA-256 the server carries; Demucs's model from its makers, converted to ONNX on the machine and never fetched converted), into the data folder's separator/ only, which backups leave out. Refused on tiny machines. A failure removes the folder |
DELETE /api/karaoke/separator |
Admin | Deletes only the data folder's separator/ (the path is fixed, never from the request) |
GET /api/media/{id}/markers |
Signed-in | limits. Sidecars (.skip.json, .edl) beside the media, inside a library, at most 256 KB, at most 200 ranges; ranges that don't make sense are dropped. Also what comparing the season's episodes found |
PUT /api/media/{id}/markers |
Admin | JSON of at most 64 KB. Every range starts at 0 or later and ends after it starts, at most 200 breaks. Kept apart from what scans read, which never replace it |
POST /api/shows/{id}/detect-intros |
Admin | A show. Season by form. One run at a time on the server; at most 60 episodes a season, 10 minutes of each one's sound, FFmpeg at low priority. Writes only detected markers, never ones a person set |
GET /api/wittyinfo/{target}/{id} |
Admin | An item (film or episode) or a show the account may see; a season by query. Reads a .wittyinfo beside the media only inside a library, 64 MB at most, through the format's strict reader (docs/formats/wittyinfo.md): member names checked, no links, unpacked sizes and ratios capped, pictures checked by decoding, nothing fetched or run. Probes the video's chapters |
PUT /api/wittyinfo/{target}/{id} |
Admin | JSON of at most 1 MB, checked whole by the format's reader; refused with every problem listed. Written beside the media only when saveMetadata and saveWittyinfo are on, in one step, inside a library, only to .wittyinfo; else kept in the database |
DELETE /api/wittyinfo/{target}/{id} |
Admin | Forgets the database copy. file=1 moves the file beside the media to .wittyinfo.bak, only when writing there is allowed |
GET /api/wittyinfo/{target}/{id}/export |
Admin | The file in use, written again by the format's writer; served as an attachment, never shown |
POST /api/wittyinfo/{target}/{id}/import |
Admin | Body of at most 64 MB, checked whole by the format's reader; its scope must match the target. Saved as PUT is |
POST /api/wittyinfo/{target}/{id}/use-anyway |
Admin | A yes or no kept for the target |
PUT /api/wittyinfo/{target}/{id}/images/{role} |
Admin | Body of at most 16 MB that is a JPEG, PNG or WebP by its first bytes and decodes as one, 8192 pixels across at most; role from a fixed list. add is only compared with "1"; first must name a picture the role already has (refused otherwise), never a path; at most 32 pictures a role. Saved as PUT is |
DELETE /api/wittyinfo/{target}/{id}/images/{role} |
Admin | name is only compared with the role's own picture names; nothing outside the archive is touched. Saved as PUT is |
PUT /api/wittyinfo/{target}/{id}/subtitles/{name} |
Admin | A video only. A name of letters, digits, dots and dashes ending .srt, .vtt, .ass or .ssa; body of at most 2 MB that is UTF-8 text; a language that is a language tag. Saved as PUT is |
DELETE /api/wittyinfo/{target}/{id}/subtitles/{name} |
Admin | Saved as PUT is |
GET /api/wittyinfo/{target}/{id}/files/{name...} |
Signed-in; address token | limits. An item or show the account may see. Only members under images/ with a picture extension, already checked when the file was read; sent with its own image type, nosniff and a CSP that allows nothing |
GET /api/wittyinfo/convert/counts |
Admin | Library ids as numbers, 1000 at most. Looks only at file names beside titles inside libraries, for 20 seconds at most |
POST /api/wittyinfo/convert |
Admin | JSON with a fixed direction. One run at a time, as a task that can be stopped. Reads only files beside titles inside libraries, through the same size limits as a scan, and the .wittyinfo reader's checks; writes only inside libraries that aren't read-only, .wittyinfo files only when saveMetadata and saveWittyinfo are on (else into the database), NFO files and pictures only when saveMetadata is on. Renames to .bak only files it converted from, inside a library |
GET /api/wittyinfo/convert/report |
Admin | A task id. Answers only counts kept in memory for the last 20 conversions: no paths, names or errors |
GET /api/media/{id}/where-to-watch |
Signed-in | limits. Versions the account may see only. Region two letters. Sends only a TMDB id and region to TMDB, with the owner's key; answers kept as long as listings |
GET /api/discover/where-to-watch |
Signed-in | limits, for whether it's in the library. TMDB id digits only, type movie or tv, region two letters |
GET /api/remote-control |
Signed-in | Nothing: the protocol's versions and limits. own setting for controlling other accounts' devices Whether this profile may steer devices at all (parental controls) |
GET /api/remote-control/devices |
Signed-in | By the owner's switch. own devices, and other accounts' only where an administrator has allowed this account that. What a device plays is shown only where limits allow the caller to see it. Not for a profile with playing on other devices turned off |
POST /api/remote-control/devices |
Signed-in | By the owner's switch. A real sign-in, not a stream token. 8 KB body. Name cut to 60 characters, kind and capabilities kept only where known. Limits on devices, per account and overall. An id is taken back only by the sign-in that had it |
DELETE /api/remote-control/devices/{id} |
Signed-in | own, and only from the sign-in that announced it |
GET /api/remote-control/devices/{id}/channel |
Signed-in | own, and only from the sign-in that announced it. Limits on open streams, per account and overall. The sign-in is looked at again as it runs. Ended at once when the sign-in ends |
POST /api/remote-control/devices/{id}/state |
Signed-in | own, and only from the sign-in that announced it. 32 KB body. Rate limit. Numbers made finite and in range, strings cut, lists bounded |
POST /api/remote-control/devices/{id}/ack |
Signed-in | own, and only from the sign-in that announced it. A command that is waiting for this device |
POST /api/remote-control/devices/{id}/commands |
Signed-in | By the owner's switch. own device, or another account's where an administrator has allowed this account that. 8 KB body. Known command, values in range. Rate limit per account. Only what the device said it can do. To play: limits of the caller and limits of the device's own account, for every item named. To cast: both devices ones the caller may control. Not for a profile with playing on other devices turned off. Nothing is started when screen time is over for the caller or for the device's own account, whoever the caller is |
GET /api/remote-control/events |
Signed-in | As for the list of devices. Limits on open streams, per account and overall. The account is looked at again as it runs. Not for a profile with playing on other devices turned off. Ended at once when the sign-in ends or the profile loses that; sent again at once when limits or who may control whom change |
GET /api/remote-control/accounts |
Admin | Nothing further |
PUT /api/remote-control/accounts/{id} |
Admin | Account exists. Logged with who changed it |
GET /api/syncplay |
Signed-in | Nothing: the rules clients keep in step by. own rooms and invitations, never what a room is playing. Whether this profile may start or join one (parental controls); no rooms listed for one that may not |
POST /api/syncplay/rooms |
Signed-in | By the owner's switch and who may start one. A real sign-in, not a stream token. 8 KB body. limits, for every item in the queue. 1 to 200 items. Limits on rooms, per account and overall. Not for a profile with watch parties turned off, nor when its screen time is over |
POST /api/syncplay/join |
Signed-in | By the owner's switch. A real sign-in. A six-letter code, with wrong tries counted per account; or a room id, only for an account invited or already seated. limits on what is playing: an account that may not see it is refused and told nothing about it. Limit on members. Not for a profile with watch parties turned off, nor when its screen time is over |
GET /api/syncplay/rooms/{id} |
Signed-in | own seat in the room. limits on every title shown. Not for a profile with watch parties turned off. Nothing of what is playing for a member whose screen time is over |
PUT /api/syncplay/rooms/{id} |
Signed-in | own seat, and it is the host's. Policy is host or everyone. Name cut to 60 characters |
DELETE /api/syncplay/rooms/{id} |
Signed-in | own seat, and it is the host's; or an administrator |
GET /api/syncplay/rooms/{id}/events |
Signed-in | own seat in the room. limits on every title shown. Limits on open streams, per account and overall. The sign-in is looked at again as it runs. Not for a profile with watch parties turned off. Ended at once, and the seat given up, when the sign-in ends or the profile loses watch parties. limits asked again when they change |
POST /api/syncplay/rooms/{id}/leave |
Signed-in | own seat in the room |
POST /api/syncplay/rooms/{id}/host |
Signed-in | own seat, and it is the host's. The other member exists |
POST /api/syncplay/rooms/{id}/kick |
Signed-in | own seat, and it is the host's. The other member exists and isn't the host |
POST /api/syncplay/rooms/{id}/invite |
Signed-in | own seat, and it is the host's. 1 to 64 accounts that exist. Limit on invitations. An invitation gives no access to anything |
POST /api/syncplay/rooms/{id}/command |
Signed-in | own seat in the room. The host, or anyone where the room allows it; never a member who may not see what is playing. Known command, finite values in range. A new queue: limits of the caller for every item. Rate limit per seat. Never a member whose screen time is over. Not for a profile with watch parties turned off |
POST /api/syncplay/rooms/{id}/report |
Signed-in | own seat in the room. State is ready or buffering. Rate limit per seat |
POST /api/syncplay/rooms/{id}/ping |
Signed-in | own seat in the room. Rate limit per seat |
/ (any method, everything else) |
Public | Files of the web app, or its page. An unknown /api/ address answers 404 |
WittyMediaServer documentation