OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

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

Query parameters

user_idstring nullable

User ID in the request parameters

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[]