Base URL
All API endpoints are prefixed with/api.
Authentication
All endpoints require an authenticated user session. Requests without valid authentication will return a401 Unauthorized response.
Profile/Organization Selection
Most endpoints require an active organization (profile) to be selected. Requests without an active profile will return a400 Bad Request response:
Response Format
All API responses use JSON format with appropriate HTTP status codes:200 OK- Request succeeded201 Created- Resource created successfully204 No Content- Request succeeded with no response body400 Bad Request- Invalid request parameters401 Unauthorized- Authentication required404 Not Found- Resource not found500 Internal Server Error- Server error503 Service Unavailable- Service temporarily unavailable
API Sections
The Plank API is organized into the following sections:Media
Manage your media library, including adding torrents, tracking download progress, and retrieving media information.- Add media from magnet links
- List library items
- Track download progress
- Stream video content
- Manage playback position
Browse
Discover trending and popular content from TMDB, search for torrents, and resolve magnet links.- Browse trending/popular movies and TV shows
- Get detailed media information
- Resolve torrents for movies and TV seasons
- Fetch TV season information
Subtitles
Search, download, and manage subtitles for your media.- Auto-discover local subtitles
- Search OpenSubtitles
- Download subtitle files
- Get available subtitle tracks