Connection + auth options.
OptionalbaseUrl?: string | nullOptionalpassword?: stringOptionalserver?: PlexServerOptionaltimeout?: numberOptionaltoken?: stringOptionalusername?: stringOptionalverificationCode?: stringTwo-factor authentication code for password sign-in.
Optionalauthenticationauth token for user by plex
OptionalcertificateUnknown
OptionalemailYour current Plex email address
OptionalentitlementsList of devices your allowed to use with this account
OptionalguestUnknown
OptionalhomeUnknown
OptionalhomeUnknown
OptionalidYour Plex account ID
OptionallocaleYour Plex locale
OptionalmailingOptionalmailingYour current mailing list status.
OptionalmaxUnknown
OptionalpasswordOptionalqueueEmail address to add items to your Watch Later queue.
OptionalrestrictedUnknown
OptionalscrobbleDescription
OptionalserverOptionalsubscriptionTrue if your subsctiption is active
OptionalsubscriptionList of features allowed on your subscription
OptionalsubscriptionName of subscription plan
OptionalsubscriptionString representation of subscriptionActive
OptionalthumbURL of your account thumbnail
OptionaltitleUnknown. - Looks like an alias for username
OptionaltokenOptionalusernameOptionaluuidUnknown
StatickeyAccept a pending invite received by this account.
Add one or more movies or shows to this account's watchlist.
Add an existing Plex user to this Plex Home.
Optionalsharing: InviteFriendOptionsAdd one webhook while preserving the account's existing URLs.
Cancel a pending invite sent by this account.
pass token from claimToken
Returns a str, a new "claim-token", which you can use to register your new Plex Server instance to your account.
Sign in with the username and password when no token was provided, then load the account details.
Create a managed Plex Home user and assign their shared libraries.
Find one of the account's devices by name (case-insensitive) or client identifier.
Returns a list of all MyPlexDevice objects connected to the server.
Owner history across owned servers; maxResults applies to each server.
Invite a Plex user and share selected libraries with them.
Return whether an item is marked as played in Plex Discover.
Link a pending client PIN to this Plex account.
Mark an item as played in Plex Discover.
Mark an item as unplayed in Plex Discover.
Return whether a movie or show is currently on this account's watchlist.
Change the account's playback and library-statistics privacy choices.
Find a pending invite by username, email, friendly name, or account id.
Return pending invites sent from or received by this account.
Keep the account token active.
Send an authenticated request to plex.tv or another Plex service. JSON responses are
parsed, XML responses are converted to the same shape, and responseType: 'text' returns the body.
Send an authenticated request to plex.tv or another Plex service. JSON responses are
parsed, XML responses are converted to the same shape, and responseType: 'text' returns the body.
Remove a user from this account's friends.
Remove one or more movies or shows from this account's watchlist.
Remove a managed user from this Plex Home.
Remove a managed Plex Home user's PIN.
Remove the signed-in account's Plex Home PIN.
Remove one webhook while preserving the account's remaining URLs.
Set or change a managed Plex Home user's PIN.
Set or change the signed-in account's Plex Home PIN.
Enable or disable account-wide watch-state and ratings sync.
Replace all webhook URLs configured for this Plex account.
Return the server libraries available to account-sharing APIs.
Invalidate this account's authentication token.
Linked Sonos speakers available to this account.
List streaming providers offering this discover or watchlist item.
Switch authentication to a managed Plex Home user.
Update a user's shared libraries and account-level sharing settings.
Find an account user by title, username, email, or account id.
Return users connected to this Plex account, including managed home users.
Return Plex Discover user state for a movie or show.
Browse Plex's on-demand video hubs.
Return this account's watch-state and ratings sync status.
Return movies and shows in this account's Plex Discover watchlist.
Return webhook URLs configured for this Plex account.
StaticgetCreate an OAuth PIN and return its Plex authentication URL.
StaticwebWait for a web login and return the connected Plex account.
MyPlex account and profile information. This object represents the data found Account on the myplex.tv servers at the url https://plex.tv/users/account. You may create this object directly by passing in your username & password (or token). There is also a convenience method provided at PlexServer.myPlexAccount which will create and return this object.