API reference

The main Shortlist REST endpoints: sign-in, users, rows, runs, requests, events, reports, the support checks and their responses.

The interactive API docs are off by default. Set SHORTLIST_ENABLE_DOCS=1 to expose /api/docs and /api/openapi.json. The OpenAPI document lists every route. This page covers the main ones.

Assistant connections use the separately authenticated MCP endpoint. See the MCP assistant reference for its tool contracts and permissions, and Connect an assistant for OAuth and local credentials.

Sign-in and setup

POST /api/auth/pin
GET  /api/auth/pin/{id}
GET  /api/auth/session
POST /api/auth/logout
POST /api/setup/probe
POST /api/setup/link
GET  /api/setup/servers
GET/PUT /api/setup/state

Sign-in is owner-only.

/servers is the Plex server picker. It lists shared servers alongside owned ones, and the wizard shows shared ones but won’t let you select one. /link checks with plex.tv that machine_id is a server the caller’s account owns (403 otherwise). The body’s owner_account_id is only the caller vouching for themselves, so the plex.tv check is what stops a friend with a share from linking your PMS.

Users

GET    /api/users
PATCH  /api/users/{id} {enabled?, manage_sharing?, request_tag?, requested_by_tag?, seerr_user_id?, prefs?}
DELETE /api/users/{id}
POST   /api/users/sync
POST   /api/users/set-enabled {enabled}

manage_sharing (default true) is separate from enabled. enabled decides whether someone gets a row. manage_sharing decides whether Shortlist may edit that account’s Plex share filters. When it is false, Shortlist adds no label!=shortlist_* exclusions for that account and removes the ones it added. Every other account still excludes that person’s row label. Changing it rewrites the filters immediately. enabled=false still writes the account’s filters unless manage_sharing is also false, and then nothing is written. The exclusion for a restricted shared row is not removed, and later changes to that row’s audience don’t reach an account that is left alone. Switching management back on resyncs it. See Leaving someone’s Plex sharing alone.

GET /api/users/{id}/rows
PUT /api/users/{id}/rows/{collection_id} {muted?, row_size?, recent_count?, favourite_count?, older_count?}

Per-person, per-row settings. recent_count (1-25) overrides how many recent watches the llm_web source searches for this person on this row. favourite_count and older_count (0-10) override how many long-time favourites and older watches it also draws on. Null clears a field back to the row’s own setting. The GET returns each row’s effective counts and the person’s override values.

GET /api/users/{id}/watched?q=&media_type=movie|show&library=&limit=&offset= -> {items, total, libraries, last_full_sync_at, synced_titles, dislike_threshold, ratings_trusted, rated_count}. It searches this person’s cached watched set, the same set recommendations are filtered against, so it answers “I watched that, why was it recommended?”. Unlike /history it never touches Plex and searches the whole set.

Watching account

POST /api/watching-account/transfer {to_user_id, from_user_id?, dry_run?} -> {planned, applied, unreachable, failed, marks, unmarks, offsets_set, offsets_cleared, removals_preview, verify_mismatched, verify_checked, shows_cleared, target_unreadable, events_copied, titles_cached, snapshot_id, dry_run, source_empty, errors}. It replicates one account’s watch state onto the watching account: the exact episodes, rewatch counts and position in anything part-watched.

POST /api/watching-account/undo {snapshot_id, dry_run?} returns the shape of /transfer. It restores the watching account exactly as the transfer found it, counts and positions included. A second undo of the same snapshot is refused. Undo mirrors too, so it removes anything watched on that account since the copy: dry-run it and read removals_preview. It takes its own snapshot, so an undo is itself undoable.

Privacy status

GET /api/privacy/status -> {read_at, summary, accounts[], rows_on_plex, rows_error, error, enforcement, snapshots_kept}

Rendered at /privacy. It reports what can be verified about row hiding right now for an ordinary shared account, with three live reads:

It claims nothing outside Home, for a parental-profile account (plex.tv refuses the write), or for the owner (no share exists). It never says “all clear” from a check that didn’t run or a read that failed. Every cell is a live read or “not checked”.

snapshots_kept counts the saved pre-Shortlist sharing settings uninstall restores from. It comes from the database, so it is reported even when plex.tv can’t be read.

Verdicts rank: unreadable > rows_unknown > missing > filter_unreadable > not_enforced > unhideable > clean. A missing rule outranks a measured exposure because the next run fixes it, while an exposure needs a change in Plex. filter_unreadable (account state unreadable_filter) is a filter Plex itself fails on, a label with a raw &. It stays until you rename the label.

Rows

GET/POST      /api/collections
PATCH/DELETE  /api/collections/{id}
PATCH         /api/collections/{id} {dry_run: true}
DELETE        /api/collections/{id}?dry_run=true

dry_run previews what an edit would do to Plex. It matters most on PATCH: narrowing a row’s media or libraries deletes its collections in the libraries it no longer covers. The response carries the projected plan plus preview_incomplete, which separates “this edit removes nothing” from “the libraries couldn’t be read, so it is unknown”. POST rejects dry_run with 422.

A top-level field the row body does not declare is refused with 422. Fields inside poster and hub_anchor are not checked this way. PATCH validates the merged row, so a refused combination can’t be reached one field at a time.

Row fields

Selection:

Schedule and seasons:

Read-only in responses:

Placement and artwork:

Behaviour:

GET /api/collections/{id}/effectiveness -> {delivered, watched, finished, first_delivered_at, matured_days, matured, per_library}. matured is null until picks are old enough to judge, so a newer row reads as “too early”. A pick counts as a hit only if watched while the row was still showing it. finished accompanies every watched here, including per library.

Other row endpoints

POST /api/collections {ai_instructions: {mode, text}}
PATCH /api/collections/{id} {ai_instructions: {mode, text}}
POST /api/ai/web-prompt-preview {ai_instructions?, server_text?}
GET  /api/picks/{rating_key}/poster
POST /api/collections/{id}/rename {name_template?, old_template?, dry_run?}
POST /api/collections/{id}/cleanup {dry_run?}
POST /api/collections/{id}/poster/upload
GET/DELETE /api/collections/{id}/poster/image
POST /api/collections/{id}/poster/preview {title, subtitle, style}

Seasons

GET    /api/seasons
GET    /api/seasons/presets
POST   /api/seasons
PUT    /api/seasons/{slug}
DELETE /api/seasons/{slug}
POST   /api/seasons/preview
POST   /api/seasons/next-date
GET    /api/seasons/tmdb-tags?q=&media=movie|show
GET    /api/seasons/plex-collections?q=
GET    /api/seasons/library-search?q=

GET /api/seasons -> [{slug, name, emoji, description, builtin, rule, rule_label, next_dates, next_windows, lead_days, after_days, preset, tags, genre, excluded_genres, collections, picks, used_by}]. Every season in calendar order (owner only).

GET /api/seasons/presets -> [{key, label, category, description, preset, name, emoji, rule, lead_days, after_days, tags, genre, excluded_genres, collections, picks, note}]: the ready-made seasons not yet added. category is holidays, film_days or spotlights. label carries the region (“Thanksgiving (US)”), name does not.

POST /api/seasons takes a season body (name, emoji, rule, lead_days, after_days, tags, genre, excluded_genres, collections, picks, optional preset) and returns 201 with the season. A month rule shows for the whole selected month, and its stored lead_days and after_days are zero. Creating a preset saves the season for the server. Updating a row’s seasons is a separate request.

PUT and DELETE on /api/seasons/{slug}:

POST /api/seasons/preview takes a draft season body, plus the row’s media (movie, show or both, default both) and library_keys (default every library). It returns {next_date, rule_error, total, movies, shows, from_tags, from_genre, from_collections, from_picks, per_tag, per_collection, sample}.

POST /api/seasons/next-date takes a date rule (kind fixed, nth, easter or month; month; day; nth 1-4, or -1 for the last; weekday Monday=0; offset) and returns {next_date, next_windows, rule_error}. Owner only.

The three search endpoints look up TMDB keywords, the PMS’s collections (read only; each with its library’s media_type), and the libraries’ titles. A q under 2 characters returns [] without asking anyone. Each tag carries movies (how many films TMDB tags with it) or, with media=show, shows instead. The other count is null.

AI rows and themes

GET  /api/themes/capabilities
GET  /api/themes/prompts
POST /api/themes/preview {brief?, change?, media: "movie"|"show"|"both", current_theme_id?, collection_id?, guidance?}
POST /api/themes {draft, tokens?, collection_id?, stats?}
PUT  /api/themes/{id}
GET  /api/themes/{id}
POST /api/collections/{id}/ai-pause {paused}
GET  /api/collections/{id}/theme-rotation
PUT  /api/collections/{id}/up-next {user_id, theme_id}
POST /api/collections/{id}/up-next/regenerate {user_id}

System, jobs and libraries

POST /api/system/jobs {kind, payload?, background?} returns the job after an inline drain, or as soon as it is queued when background is set. The Activity → Jobs tab sets it and polls, to avoid a proxy timeout on a slow job.

Runs

GET    /api/runs?limit=&collection=&before_id=
GET    /api/runs/summary
GET    /api/runs/{id}
GET    /api/runs/{id}/users/{user_id}/trace
GET    /api/runs/{id}/rows/{slug}/trace
GET    /api/runs/{id}/log?after_seq=&format=json|text
POST   /api/runs {user_ids?, collection_ids?, dry_run?}
POST   /api/runs/{id}/cancel
DELETE /api/runs

Every run carries a stats object, written when it finishes. The keys most worth reading:

Catalogs

GET /api/catalogs/settings
GET /api/catalogs/templates

settings -> [setting definitions]: every setting Shortlist knows, with its options, numeric range, prerequisites and what changing it affects. templates -> [row template definitions]: the templates Add a row offers, with their creation defaults. Both require the owner browser session. They describe what exists and carry none of your values.

Requests

GET  /api/requests?wanted_by=&wanted_by=
GET  /api/requests/status
POST /api/requests/send {ids, dry_run?}
POST /api/requests/reject {ids}
POST /api/requests/restore {ids}
POST /api/requests/delete {ids}
POST /api/requests/clear {ids}
POST /api/requests/hold-preview {media_type?, genres[], tags[], except_companies[]?, except_min_rating?}
GET  /api/requests/tmdb-companies?q=
GET  /api/requests/row-sources?pattern=

A request candidate carries the Arr’s titleSlug once sent (arr_slug on GET /api/requests), which the Sent log deep-links to. It also carries TMDB’s poster_path (such as "/abc.jpg", or "" when TMDB has no artwork) and overview ("" when TMDB has none or the row predates the field). Both backfill on the next run that re-surfaces the title. A title on an Arr import-exclusion list is flagged excluded and never auto-sent. clear sets a hidden flag on a sent entry and keeps the record that stops a still-downloading title being re-requested.

Manual sends, scheduled acquisition and assistant sends share durable title reservations. A reserved or uncertain title cannot be sent again through a different path or by deleting its inbox entry. Conflicting manual sends return 409. The owner can inspect and release a terminal claim after checking the destination service:

GET  /api/requests/acquisition-claims?limit=100&offset=0 -> {items, next_offset}
POST /api/requests/acquisition-claims/{claim_id}/release {review_token, expected_status: "outcome_unknown"|"succeeded", checked_destination: true} -> {id, status: "released"}

These recovery routes require the owner browser session, and release also requires CSRF. A changed review token or status, or an active claim, returns 409. Releasing a claim sends nothing. See Requests → Acquisition checks needing review in the browser.

Events and notifications

Two notifications:

The audit feed records each skip as schedule.missed (warning) with job (the job id), name (its label on the Activity → Jobs tab, when it has one), scheduled_for (when it was due, UTC) and late_by_s.

These scopes describe what a pass did to Plex. Each can come from a run (carrying its run_id) or from a background job, which carries job (privacy.sync, user.restore, rows.visibility or sync.check) and a null run_id.

Outgoing notifications

Set up in Settings → Connections → Webhook (notify.webhook.url, notify.webhook.auth_header_name, notify.webhook.auth_header_value, notify.webhook.enabled, notify.webhook.events).

Each event in notify.webhook.events POSTs JSON {source, version, id, severity, title, message, event, path, sent_at} to one webhook, plus content and text carrying “title\nmessage” for Discord and Slack.

Settings and connections

GET/PUT /api/settings
POST    /api/settings/test/{plex|tautulli|tmdb|llm|radarr|sonarr|overseerr|mdblist|trakt|exa|searxng|keenable|native_search|notify}
GET     /api/settings/defaults
GET     /api/settings/arr/{radarr|sonarr}/options
GET     /api/settings/overseerr/options
POST    /api/settings/curator/models {provider?, api_key?, ollama_url?}

Reports and the dashboard

GET /api/report?window=7|30|90|all -> {window, since, first_pick, overall, trend[], per_user[], per_row[], recent[], watch_sync, coverage, runs, requests, top_titles}. What got watched, from picks.watched_at. It is windowed (default 30 days), and each headline figure is carried alongside its previous equal period so the UI can show a change.

Shared rows count here too. They write no pick rows: their credits live in shared_row_watches and fold into the same per-(person, title) outcome, so a title on both a personal and a shared row counts once.

Other report endpoints:

Health, tokens and onboarding

Support checks (“Have an issue?”)

Read-only diagnostics behind /issue in the UI. Nothing here writes to Plex, plex.tv or the settings a run reads. The only mutations are the mode’s own switch and the audit rows it leaves.

Every tool needs the owner session and support mode switched on. The mode is off by default and lapses after 24 hours.

GET  /api/support/status -> {enabled, expires_at, seconds_remaining}
POST /api/support/enable
POST /api/support/disable

status is owner only and works while the mode is off. enable switches the checks on for 24h (audited: events scope support.enable). disable switches them off now.

Everything below also requires the mode to be on, and returns 403 when it is not. Each response carries its own fields plus text: a fixed-width block, at most 76 columns, that the UI’s “Copy for support” button puts on the clipboard verbatim. Credentials are stripped before anything reaches it, including from quoted exception messages.

GET  /api/support/health -> {checks[{name, ok, detail}], text}
GET  /api/support/title?q= -> {rows[{user, watched_record, viewed_leaf_count, leaf_count, counts_as_watched, cap_pct, delivered[], problem}], flagged[], text}
GET  /api/support/person/{slug} -> {user_type, watched_movies, watched_shows, libraries[{section_key, library, titles_known, ever_read}], never_read[], text}
GET  /api/support/rows -> {rows[{slug, watched_pct, watched_pct_source, refresh_days, refresh_days_source, idle_hold_days, idle_hold_source, rewatch, unstarted_only}], global_watched_pct, text}
GET  /api/support/row-schedule -> {rows[{slug, refresh_days_source, rebuild_every_days, idle_hold_days, idle_hold_source, last_built_at, days_since_built, due}], text}
GET  /api/support/libraries -> {libraries[{key, title, type, items}], error, text}
GET  /api/support/connection -> {users[{user, has_token, libraries_read[], never_read[]}], problems[], text}
GET  /api/support/read-as?user=&endpoint=&section= -> {status_code, total_size, body, sections[], choices[], text}
GET  /api/support/sharing -> {accounts[{user, shortlist_excludes[], other_conditions[], should_hide[], missing[]}], rows_on_plex[], rows_error, missing_excludes_for[], error, text}
GET  /api/support/surfaces -> {rows[{library, title, label, marked, rating_key, recommended, own_home, shared_home}], owner_label, on_owner_home[], on_owner_shelf[], unlabelled[], error, text}
GET  /api/support/drift -> {ledger_count, plex_count, marked_count, missing_on_plex[], orphans_on_plex[], error, text}
GET  /api/support/pick?user=&title= -> {picks[{row, rank, seed_title, sources, affinity, reason}], text}
GET  /api/support/missing?user=&title= -> {verdict, hits[], run_id, text}
GET  /api/support/funnel?user= -> {stages[{pool, pooled, disposition{}}], delivered, run_id, text}
GET  /api/support/ai?user= -> {provider, model, llm_tokens, by_step{}, error, text}
GET  /api/support/timeline?user= -> {entries[{at_utc, at_local, kind, what}], text}
GET  /api/support/settings-history -> {changes[], last_build_at, change_after_last_build, text}
GET  /api/support/jobs -> {jobs[], counts{}, failed, text}
GET  /api/support/clocks -> {tz, local_now, utc_now, offset_hours, scheduled[], text}
GET  /api/support/database -> {head, tables_present, tables_expected, missing_tables[], indexes, size_mb, text}
GET  /api/support/config -> {settings[{env, key, env_set, secret, value, has_value}], text}
GET  /api/support/errors -> {lines[], total_matched, log_file, text}
GET  /api/support/runs -> {runs[{id, status, trigger, dry_run, started_at, finished_at, stats, people, failed[{user, error}]}], text}
GET  /api/support/bundle.txt
GET  /api/support/report.zip
GET  /api/support/suggestions -> {users[], titles[], libraries[]}

What a report masks

A report masks credentials, IP addresses and this server’s machine id in its body, in every quoted exception and in every log file inside report.zip. A URL keeps only its scheme and port (https://<host>:32400). It filters the shapes Shortlist knows about, so it cannot prove nothing leaks. Log files carry whatever a dependency printed, so read a report before posting it.

Names in a report

The report prints each account’s Plex username and slug, so a maintainer can follow one person through it. The slug is what appears on Plex as shortlist_<slug>. Replace them before posting if you don’t want them public. The report body prints no nicknames or friendly names. The log files bundled in report.zip are not filtered for names: a row template containing {user} renders as the nickname, and the rendered title is logged on every delivery.

Edit this page on GitHub