user
Check current session status
Returns current session info and authentication context.
Response varies based on authentication method:
- Human session (JWT cookie): logged_in=true, includes username
- Trusted subnet (no auth): logged_in=false, admin=true (note about logging in for named session)
- Agent key (X-Jentic-API-Key): logged_in=false, agent_key=true, includes toolkit_id
- No auth: logged_in=false, agent_key=false
Useful for UI to determine what features to show and whether to require login. Agents can call this to confirm their key is valid and see which toolkit they belong to.
This endpoint accepts requests with or without authentication (open passthrough).
get/user/me
Response
Successful Response
Example response
{
"logged_in": true,
"username": "admin",
"is_admin": true,
"toolkit_id": "default",
"trusted_subnet": true
}