BerriAI/litellm · error · ProxyException
You are not authorized to check this organization's keys
Error message
You are not authorized to check this organization's keys
What it means
Error "You are not authorized to check this organization's keys" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/key_management_endpoints.py:5303
type=ProxyErrorTypes.bad_request_error,
param="user_id",
code=status.HTTP_403_FORBIDDEN,
)
if team_id:
if team_id not in complete_user_info.teams:
raise ProxyException(
message="You are not authorized to check this team's keys",
type=ProxyErrorTypes.bad_request_error,
param="team_id",
code=status.HTTP_403_FORBIDDEN,
)
if organization_id:
if complete_user_info.organization_memberships is None or organization_id not in [
membership.organization_id for membership in complete_user_info.organization_memberships
]:
raise ProxyException(
message="You are not authorized to check this organization's keys",
type=ProxyErrorTypes.bad_request_error,
param="organization_id",
code=status.HTTP_403_FORBIDDEN,
)
if key_hash:
try:
key_info: Final[LiteLLM_VerificationToken] = await VerificationTokenRepository(
prisma_client
).table.find_unique(
where={"token": key_hash},
)
except Exception:
raise ProxyException(
message="Key Hash not found.",
type=ProxyErrorTypes.bad_request_error,
param="key_hash",View on GitHub (pinned to 77b7c6c40c)
Solutions
- Query only organizations you administer, or authenticate with a proxy admin key.
- Ask an org admin or proxy admin to check the organization's keys.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/key_management_endpoints.py:5303 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/47059c2390a88951.
Report an issue: GitHub.