# How to get PMS-auth token

**URL:** <https://forums.plex.tv/t/how-to-get-pms-auth-token/14164>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [January 13, 2012, 4:43pm UTC](https://forums.plex.tv/t/how-to-get-pms-auth-token/14164 "2012-01-13T16:43:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mekkarmikke89](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mekkarmikke89](https://forums.plex.tv/u/mekkarmikke89)\
**Post date:** [January 13, 2012, 4:43pm UTC](https://forums.plex.tv/t/how-to-get-pms-auth-token/14164/1 "2012-01-13T16:43:57Z")

</div>

Hi everyone!  
  
I am developing a an application plex which needs to communicate with my PMS remotely. The information about  
  
the remote servers are retrieved by signing in to MyPlex using POST and basic web authentication. The post is  
  
sent to “[https://my.plexapp.com/users/sign\_in.xml](https://my.plexapp.com/users/sign_in.xml)”. After that i get an authentication token in the response which  
  
I use to get “[https://my.plexapp.com/pms/servers.xml?X-Plex-Token=xxxxxxxxxxxxxx](https://my.plexapp.com/pms/servers.xml?X-Plex-Token=xxxxxxxxxxxxxx)”. I now have the servers  
  
that i want to connect to remotely.  
  
Unfortunately the token retrieved when signing in to MyPlex does not work when trying to connect to the remote servers.  
  
I have found out that each of my servers have their own authentication token, which has to be used if I want to have access  
  
to them remotely.  
  
  
  
These authentication tokens can be found on the servers in a file called “Preferences.xml” in an entry called “PlexOnlineToken”.  
  
The tokens can also be found on MyPlex. If you sign in to MyPlex using a webbrowser, navigate to the servers page and click  
  
on one of the available servers you will see a link named “Plex Media Manager”. If you check the URL the link points to you will  
  
find the authentication token necessary to connect to the server remotely.  
  
  
  
My question is how i can get these authentication tokens for each server without having to scrape the MyPlex web page.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:37pm UTC](https://forums.plex.tv/t/how-to-get-pms-auth-token/14164/2 "2019-12-20T21:37:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
