API
Everything the web app does, it does through Plekstender’s own HTTP API, under /api. The full reference, with every endpoint, its parameters and what it returns, is generated from the app’s OpenAPI description:
Your own Plekstender serves the same description at /api/openapi.json, and an interactive Swagger page at /api/docs. The reference here follows the latest release.
Using it
Section titled “Using it”- Signing in: with Plex, in the browser. The API uses the session cookie that sets (
SameSite=Lax); there are no API keys. - Changing things (POST, PUT, PATCH, DELETE) needs the header
X-Plekstender: 1, and a same-originOrigin. Browsers can’t add a custom header to a cross-site request without asking first (which Plekstender never allows), so this blocks cross-site request forgery. - Paths per server: most of the library’s endpoints are under
/api/servers/{server_id}/…, whereserver_idis your connection to a Plex server (GET /api/serverslists them). - Public links:
/api/s/{token}and what’s under it are the only endpoints that work without signing in. - Rate limits: a few endpoints that cost the server or a service something (previews, searches, imports) are limited per person; over the limit they answer
429.