GET
/v2/userGet authenticated user information
Retrieves profile information for the authenticated user. Use this operation to read account details and authentication settings, including the user's role, account type, and MFA status.
200Returns the authenticated user's profile, including account type, deletable status, global server role, numeric user ID, MFA status, super-token requirement, and username; optional fields may include avatar, domain, email awaiting verification, name, and third-party authentication type.
accountTypestringrequired
avatarobjectoptional
deletablebooleanrequired
domainstringoptional
emailAwaitingVerificationstringoptional
globalServerRolestringrequired
idintegerrequired
mfaEnabledbooleanrequired
namestringoptional
needsSuperJwtTokenbooleanrequired
thirdPartyAuthTypestringoptional
usernamestringrequired
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to retrieve the information.
codestringrequired
paramsarray<object>optional
404Returned when the requested resource is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid. A 401 is returned when the request has no valid Authorization header, and a 403 is returned when the authenticated user is not permitted to retrieve the information. A 404 is returned when the requested resource is not found.