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

logged_inboolean

True if valid session exists

usernamestring nullable

Username of authenticated user, null if not logged in

is_adminboolean

True if user has admin privileges

toolkit_idstring nullable

Associated toolkit ID for this user, null if admin

trusted_subnetboolean

True if request originated from trusted subnet (127.0.0.0/8 or 10.0.0.0/8)

Example response

{
  "logged_in": true,
  "username": "admin",
  "is_admin": true,
  "toolkit_id": "default",
  "trusted_subnet": true
}

Changes