getWhoami method
Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
Sign the provided TGetWhoamiBody with the client's stamp function and submit the request (POST /public/v1/query/whoami).
See also: stampGetWhoami.
Implementation
Future<TGetWhoamiResponse> getWhoami({
required TGetWhoamiBody input,
}) async {
return await request<TGetWhoamiBody, TGetWhoamiResponse>(
"/public/v1/query/whoami",
input,
(json) => TGetWhoamiResponse.fromJson(json));
}