auth

Sign in using a Plex token

Takes an authToken (Plex token) to log the user in. Generates a session cookie for use in further requests. If the user does not exist, and there are no other users, then a user will be created with full admin privileges. If a user logs in with access to the main Plex server, they will also have an account created, but without any permissions.

post/auth/plex

Request

  • Base URL: http://localhost:5055/api/v1
  • URL: http://localhost:5055/api/v1/auth/plex
  • Auth: none required

Request body

authTokenstring required

Response

OK

idinteger required
emailstring required
usernamestring
plexUsernamestring
plexTokenstring
jellyfinAuthTokenstring
userTypeinteger
permissionsnumber
avatarstring
createdAtstring required
updatedAtstring required
requestCountnumber

Example response

{
  "id": 1,
  "email": "hey@itsme.com",
  "userType": 1,
  "createdAt": "2020-09-02T05:02:23.000Z",
  "updatedAt": "2020-09-02T05:02:23.000Z",
  "requestCount": 5
}

Changes

No recorded changes to this operation across all 21 revisions of this API.