No results
3
Plex
Codex edited this page 2026-05-22 13:51:48 -07:00
Plex
Dashboard Status
This module is live. The dashboard reads Plex libraries, active sessions, recent additions, and per-library item counts.
Primary API surfaces:
/library/sections
/status/sessions
/library/recentlyAdded
/library/sections/{key}/all
Admin Fields
Plex URLPlex Token
Recommended Values
Plex URL: http://plex.example.com:32400
Plex Token: saved-by-sign-in-or-copied-token
Use the URL the dashboard backend can reach. If Plex is on the same Docker network, this might be http://plex:32400. If Plex is on the LAN, use a LAN hostname or IP.
Sign In With Plex
The admin settings page includes a Sign in with Plex button.
- Enter the Plex URL first.
- Click
Sign in with Plex. - Approve the shown Plex code in the opened Plex window.
- Return to the dashboard admin page.
- Click the confirm button.
The dashboard uses the Plex PIN flow and stores the returned token server-side. The saved token is not sent back to the browser after it is stored.
Manual Token Setup
- Open Plex Web and sign in as the Plex server owner or a user with access to the server.
- Open a movie, episode, or library item.
- Open the item menu.
- Choose
Get Info. - Click
View XML. - Copy the value of
X-Plex-Tokenfrom the XML URL.
Alternative server-owner method:
- Locate Plex
Preferences.xmlon the Plex server. - Find the
PlexOnlineTokenvalue. - Use that as the dashboard token.
Test From The Docker Host
curl -fsSL 'http://plex.example.com:32400/library/sections?X-Plex-Token=YOUR_TOKEN'
curl -fsSL 'http://plex.example.com:32400/status/sessions?X-Plex-Token=YOUR_TOKEN'
A successful library response contains a MediaContainer with library Directory entries.
Common Problems
401 Unauthorized: token is invalid or belongs to a user without access to this server.- Empty libraries: token works but the user does not have access to the expected libraries.
- Active streams lagging: verify
/status/sessionsreturns current sessions from the dashboard host. ENOTFOUNDor connection refused: the dashboard cannot reach the Plex URL.- HTTPS reverse proxy issues: test the exact URL saved in the dashboard admin page.
Sources
- Plex Media Server developer docs: https://developer.plex.tv/pms/
- Plex Media Server URL commands: https://support.plex.tv/articles/201638786-plex-media-server-url-commands/