mesa.whoami() calls the API once, caches the result, and also populates the client’s default organization.
Required scope: read
Options
This method does not take options.Response
OrgIdentity
Organization associated with the authenticated key.
str | None
Current API key or key ID, or null when unavailable.
str | None
Current API key name. Private-key clients return null.
list[str]
Effective scopes granted to the credential.
OrgIdentity
str
Organization ID.
str
Organization slug.
str
Organization display name.
Errors
RaisesAuthenticationError for invalid credentials and other ApiError subclasses for non-2xx responses.
