Authorizations
The token which identifies the user accessing the PMS. This can be either:
- A traditional access token obtained from plex.tv
- A JWT token obtained through the JWT authentication flow
JWT tokens provide better security with:
- Short-lived tokens (7 days expiration)
- Public-key cryptography (ED25519)
- Better clock synchronization
- Individual device revocation capability
Headers
Indicates the client accepts the indicated media types
application/json, application/xml Unique per client.
The name of the client product
"Plex for Roku"
The version of the client application
"2.4.1"
The platform of the client
"Roku"
The version of the platform
"4.3 build 1057"
A relatively friendly name for the client device
"Roku 3"
A potentially less friendly identifier for the device model
"4200X"
The device vendor
"Roku"
A friendly name for the client
"Living Room TV"
The marketplace on which the client application is distributed
"googlePlay"
Unique per client playback session. Used if a client can playback multiple items at a time (such as a browser with multiple tabs)
Query Parameters
The details key for the item.
The rating key attribute for the item.
The current state of the media.
stopped, buffering, playing, paused If playing media from a play queue, the play queue's ID.
The current time offset of playback in ms.
The total duration of the item in ms.
When state is stopped, a flag indicating whether or not the client is going to continue playing anothe item.
0, 1 Used when a sync client comes online and is syncing media timelines, holds the time at which the playback state was last updated.
Also used by sync clients, used to indicate that a timeline is being synced from being offline, as opposed to being "live".
0, 1 Time in seconds till first frame is displayed. Sent only on the first playing timeline request.
Time in seconds spent buffering since last request.
Bandwidth in kbps as estimated by the client.
Amount of time in seconds buffered by client. Omit if computed by bufferedSize below.
Size in kilobytes of data buffered by client. Omit if computed by bufferedTime above
Response
OK
MediaContainer is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the parentTitle attribute may appear on the MediaContainer rather than being repeated on each track.