Internal User management

User Info V2

Lightweight endpoint to get user info. Returns only the user object — no keys, no teams objects.

This is the v2 replacement for /user/info, designed to avoid the "god endpoint" problem where the old endpoint loaded all keys and teams into memory.

Access control:

  • Proxy admins can query any user
  • Team admins can query users within their teams
  • Internal users can only query themselves (omit user_id or pass own)
  • Returns 404 for non-existent users or unauthorized access

Example request:

curl -X GET 'http://localhost:4000/v2/user/info?user_id=user123' \
--header 'Authorization: Bearer sk-1234'
get/v2/user/info

Request

  • Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.sea-lion.ai/v2/user/info
  • Auth: one of:
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key
    • API key in header x-litellm-api-key

Query parameters

user_idstring nullable

User ID in the request parameters

Response

Successful Response

user_idstring required
user_emailstring nullable
user_aliasstring nullable
user_rolestring nullable
spendnumber
max_budgetnumber nullable
modelsstring[]
budget_durationstring nullable
budget_reset_atstring date-time nullable
metadataobject nullable
created_atstring date-time nullable
updated_atstring date-time nullable
sso_user_idstring nullable
teamsstring[]

Changes

No recorded changes to this operation across all 78 revisions of this API.