Hey there,
I know how to acquire an api key to access the api of my plex server. The best way is doing this and then accessing https://plex.tv/pms/servers.xml?X-Plex-Token=[temp_token] to acquire the “permanent” token.
Meaning that that link will supply a token that will expire (they literally say it: “Finding a temporary token is pretty simple”), but the token shown at that endpoint will never expire. So I’d advise to use that permanent token.
Now the question:
How can I acquire the permanent token if I don’t have any server? There are multiple plex.tv api endpoints (so not the api of a plex server, but of the plex.tv database) that I’d like to access with a permanent token but that account doesn’t have access to any server. So I can’t get a server api token that I can use to access the plex.tv api (which is, btw, a bit strange that I can access the plex.tv api with not an plex.tv api key, but a plex server api token).
To make the question simple:
I want to acquire a permanent plex.tv token for an account that doesn’t have access to a server. I have the email and password of that account ofcourse.
I should also note that I want it via cli. I have python-PlexAPI installed and setup, so I could use that if you have a solution that uses that. The perfect solution would be to supply an email and password (aka an plex.tv account), and just get the permanent api key as an answer.