latestOpenAPI 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