Repository navigation
Description
Page / Location
https://docs.seerr.dev/api/seerr-api/#authentication
Docs Area
API / integrations
What’s wrong / missing?
The official Seerr API documentation currently describes API key authentication using the X-Api-Key header, but does not document the optional X-API-User header or how the authenticated user is determined.
According to the authentication middleware, Seerr defaults to authenticating API key requests as user ID 1 (the Owner account), regardless of which administrator generated the API key.
However, the middleware also explicitly implements the X-API-User header, allowing API requests to be performed on behalf of another user by specifying their internal Seerr user ID.
Use case
My Seerr instance is publicly accessible, and I intentionally separate my everyday user account from my dedicated administrator account as a security measure, following the principle of least privilege.
My configuration is as follows:
| Account | User ID | Owner | ADMIN permission |
|---|---|---|---|
| Everyday account | 1 | Yes | No |
| Dedicated administrator | 5 | No | Yes |
This confirms that the header works and that API requests are evaluated against the selected user's permissions.
Clarification regarding intended usage
I would also appreciate clarification from the Seerr development team regarding the intended use of this functionality:
- Is
X-API-Userconsidered an officially supported part of the Seerr API that third-party integrations can rely upon? - Is authenticating API requests as an alternative administrator account a supported use case?
- Are there any API operations that specifically require the Owner account (user ID 1), rather than an account with the ADMIN permission?
- Is separating the Owner account from a dedicated administrator account a supported configuration?
Documenting this functionality would help third-party developers implement Seerr integrations correctly, avoid unnecessary assumptions about account permissions, and accommodate different user security configurations. See: https://github.com/connorgallopo/Tracearr/issues/1496
AI Disclosure
Used AI to find hidden header. Tested manually and verified result. AI drafted issue - manually edited to remove redundant AI slop.
Suggested change
I would suggest updating the API authentication documentation to cover:
- The global nature of the Seerr API key.
- The default authentication identity (user ID 1), irrespective of which administrator generates the API key.
- The optional
X-API-Userheader, its purpose, accepted values and expected behavior. - How permissions are evaluated against the selected user.
- Security considerations, particularly that the global API key can act on behalf of other users, including administrators.
- Example API requests demonstrating authentication with and without the additional header.
Search Existing Issues
- Yes, I have searched existing issues.
AI Policy
- I have read the AI policy and this issue follows it.
Code of Conduct
- I agree to follow Seerr's Code of Conduct.
Activity
fallenbagel commentedon Nov 27, 2026
Yeah, I agree there's a docs gap here, since neither the
X-API-Userheader nor the API key acting as user 1 by default is documented anywhere, and we'll add both to the API docs. However, that won't fix the problem you're having though, see below.To answer your questions:
X-API-Useris intentional. It lets an integration holding the API key act on behalf of a specific user, mainly so bots can make requests as the user who asked for them. Permissions are checked against whichever user the header resolves to.seerr/server/middleware/auth.ts
Lines 13 to 22 in 9399fe5
Treat the API key as full access to every account on the instance, which is why the docs say not to share it: https://docs.seerr.dev/using-seerr/settings/general#api-key
The owner is user ID 1, and owner checks go by that ID, not the admin permission. Granting admin, modifying other admins and modifying the owner account are all owner-only, so splitting the owner and admin roles across two accounts is not a supported setup.
User 1 always has admin. There is no way in the UI or the API to change its permissions to anything else, so if your profile page URL shows ID 1 and it has no admin, the only way that can happen is if the database was edited by hand. If it shows a different ID, the account you use day to day isn't user 1. If your account lost admin after a Jellyfin/Emby user ID change, see:
https://docs.seerr.dev/troubleshooting#account-does-not-have-admin-privileges
For help sorting out your account setup, ask in our Discord instead of here, since that's where we handle support: https://discord.gg/seerr
On the AI side, issue reports are contributions to the project, and the AI policy applies to them just as it does to code contributions. Using AI as an aid while you investigate is fine, but the report itself has to be yours, reflecting your own understanding and written in your own words, not drafted by an AI. I'll keep this issue open to track the documentation gap, but please follow the AI assistance guidelines when filing future reports. We take AI-drafted issues seriously, and they are usually closed and locked.
https://github.com/seerr-team/seerr/blob/develop/CONTRIBUTING.md#ai-assistance-notice
alexkahler commentedon Nov 27, 2026
Hi @fallenbagel,
Thank you so much for the in-depth answer and for addressing the documentation gap. I've been banging my head against the wall over this exact issue in another repo, and the experience was, well, let's just say, less than helpful. Your detailed explanation is very much appreciated.
Your explanation of
X-API-Useralso clarifies that, while my account setup is unsupported, authenticating as a separate administrator allows an integration to retrieve all users' requests, make requests on behalf of other users, and perform administrative operations, with the exception of Owner-specific operations.The scenario you described regarding my Owner account losing its administrative privileges seems to be what happened. I can't quite remember how, as I originally set up my instance back when the project was still called Jellyseerr.
I'll look into the guide you linked and see if I can restore my account configuration to a supported setup.
Thank you again for taking the time to explain all of this and for all the work you put into this project. Seerr is amazing!