• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access Jellyfin API problem

     
    • 0 Vote(s) - 0 Average

    Jellyfin API problem

    polishgrompl
    Offline

    Junior Member

    Posts: 3
    Threads: 2
    Joined: 2024 Sep
    Reputation: 0
    Country:Poland
    #1
    2024-12-05, 09:38 PM (This post was last modified: 2024-12-05, 09:39 PM by polishgrompl. Edited 1 time in total.)
    I have a problem with accessing the jellyfin api. I generated the key and I tried command: curl -X GET "http://[IP ADDRESS]/Users/83f0854e86474a2d8e028f69687e6846/PlayingItem"  -H "Authorization: Bearer [KEY]". But it gave me 401 error - unauthorized. I tried also with  curl -X GET "http://[IP ADDRESS]/Users/Public"  -H "Authorization: Bearer [KEY]" and it worked fine. So it seems like privileges/rights problem.
    I tried to search API Privileges or smth, but can't find it. I'm using Jellyfin 10.10.3 and nginx reverse proxy. What should I do now?
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2024-12-05, 11:41 PM
    Jellyfin doesn’t use Bearer auth. The /Users/Public endpoint worked for you because it doesn’t require auth.

    https://gist.github.com/nielsvanvelzen/e...1ffaf12a6f
    polishgrompl
    Offline

    Junior Member

    Posts: 3
    Threads: 2
    Joined: 2024 Sep
    Reputation: 0
    Country:Poland
    #3
    2024-12-06, 11:40 AM (This post was last modified: 2024-12-06, 11:41 AM by polishgrompl. Edited 1 time in total.)
    (2024-12-05, 11:41 PM)crobibero Wrote:
    Jellyfin doesn’t use Bearer auth. The /Users/Public endpoint worked for you because it doesn’t require auth.

    https://gist.github.com/nielsvanvelzen/e...1ffaf12a6f



    Thanks for a reply. I figured out by myself what is wrong and you are right. I'm new to jellyfin API and was using ChatGPT for help with commands. It misled me. I changed the command to:

    curl -X GET "https://[IP]/Users/83f0854e86474a2d8e028f69687e6846" -H "X-Emby-Authorization: MediaBrowser Client=\"Test\", Device=\"curl\", DeviceId=\"1234\", Version=\"1.0.0\", Token=\"[TOKEN ID]\""

    And it's working fine rn.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode