Returns the profile of the currently authenticated user. Use it to verify a session or API key and check role and account status.
Endpoint
Authentication
Send the session cookie obtained from login, or include Authorization: Bearer <api-key>.
Response
Unique identifier of the user.
Email address if set, otherwise null.
User role, such as "user" or "admin".
Whether the account is currently disabled.