Question on https://clients.plex.tv/api/v2/resources and JWT authentication

clambin
Sat, 13 Dec 2025 00:18:47 +0000
Dev/API Corner

Hi!

I maintain a Go client for the Plex API and I’m in the process of implementing JWT authentication.

One of the things I’m trying to do is look up the registered PMS servers to get the token for the PMS server. Previously, I was using /devices.xml, but I think that’s part of the legacy endpoints? So am looking at /api/v2/resources.

This one works fine when I call it with a legacy token in X-Plex-Token and returns the correct (legacy) token for the server.

However, when I call it with a JWT token in X-Plex-Token, I get back a JWT token for the PMS server? But my up-to-date PMS server rejects that token: any authenticated call returns 401 - Unauthorized.

Am I missing something?

3 posts - 2 participants