Get account details

View as Markdown

Returns the calling user’s profile (email, name, avatar) along with every organization the user belongs to. Use this to resolve the user’s active org list before switching context, or to render user info in a management UI.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Response

Account details retrieved successfully.
userIdstringOptional
Unique user ID.
emailstringOptionalformat: "email"
firstNamestringOptional
lastNamestringOptional
phonestring or nullOptional
picturestringOptional
URL of the user's avatar image.
hasOnboardedbooleanOptional
Whether the user has completed initial onboarding.
organizationslist of objectsOptional

Organizations the user is a member of. roleId is 0 for owner, 1 for member (and higher values for finer-grained roles).

Errors

401
Unauthorized Error