# Multiple Plex Tokens

**URL:** <https://forums.plex.tv/t/multiple-plex-tokens/632146>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [September 10, 2020, 8:44am UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146 "2020-09-10T08:44:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timmehtimtims](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/timmehtimtims/32/113821_2.png) [@Timmehtimtims](https://forums.plex.tv/u/Timmehtimtims)\
**Post date:** [September 10, 2020, 8:44am UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/1 "2020-09-10T08:44:01Z")

</div>

Server Version#:  
Player Version#:

I have multiple plex tokens associated with different libraries and this is causing issues with Plex API.

Does anyone know how to ensure that tokens are consistent across all libraries?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [September 10, 2020, 8:53am UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/2 "2020-09-10T08:53:18Z")

</div>

huh?

When interacting with the API, you should always use the X-Plex-Token assigned to your admin account. [https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/)

There are other tokens, yes. But I don’t see a reason to use the token of other users or the device token of one particular client.

---

<div class="post-metadata">

**Author:** ![Timmehtimtims](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/timmehtimtims/32/113821_2.png) [@Timmehtimtims](https://forums.plex.tv/u/Timmehtimtims)\
**Post date:** [September 10, 2020, 12:14pm UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/3 "2020-09-10T12:14:20Z")

</div>

If I go into any XML and scroll to the end (as the link you rockers suggests), I get one of 3 plex tokens.

I’m connecting to plex via [https://pypi.org/project/PlexAPI/](https://pypi.org/project/PlexAPI/) as part of a wider .py script, using baseURL and token, however the programme is failing to connect properly. And I assume that having multiple tokens within an account is likely to be the cause?  
How can I consolidate so that only one token exists?

---

<div class="post-metadata">

**Author:** ![Timmehtimtims](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/timmehtimtims/32/113821_2.png) [@Timmehtimtims](https://forums.plex.tv/u/Timmehtimtims)\
**Post date:** [September 10, 2020, 12:15pm UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/4 "2020-09-10T12:15:09Z")

</div>

The other option is to connect via [https://pypi.org/project/PlexAPI/](https://pypi.org/project/PlexAPI/) using the standard username/password authorisation… and see if that works.

---

<div class="post-metadata">

**Author:** ![Timmehtimtims](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/timmehtimtims/32/113821_2.png) [@Timmehtimtims](https://forums.plex.tv/u/Timmehtimtims)\
**Post date:** [September 10, 2020, 12:24pm UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/5 "2020-09-10T12:24:12Z")

</div>

Have just tried singing out of all devices and now I can’t find my plex server at the IP:PORT and my domain (via reverse proxy) is giving me a 502 error 😕

I just keep getting logged into web app and the server doesn’t exist…

---

<div class="post-metadata">

**Author:** ![Timmehtimtims](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/timmehtimtims/32/113821_2.png) [@Timmehtimtims](https://forums.plex.tv/u/Timmehtimtims)\
**Post date:** [September 10, 2020, 12:33pm UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/6 "2020-09-10T12:33:12Z")

</div>

Just for your info - I’m running in docker on Linux. I recently restored from a backup which went fine, but somethings were not working properly.  
I feel like this is getting me to the heart of some of the issues that I’ve been having since restoring but now that I can’t access the server at all (even though it is running) I’ve hit a brick wall.

---

<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 9, 2020, 12:33pm UTC](https://forums.plex.tv/t/multiple-plex-tokens/632146/7 "2020-12-09T12:33:23Z")

</div>

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