Skip to main content
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

string
Unique identifier of the user.
string
Username of the account.
string | null
Email address if set, otherwise null.
string
User role, such as "user" or "admin".
boolean
Whether the account is currently disabled.