Account

Reference for client.account in the Future AGI Python and TypeScript SDKs: account.whoami.

client.account on fi.Client (Python) and client.account on Client from @future-agi/sdk (TypeScript). The models these methods return are on Account response models; how arguments, pagination, errors and strict mode work is in the overview.

Methods

MethodDescription
account.whoamiReturn the authenticated user, organization, and workspace context.

client.account

account.whoami

Return the authenticated user, organization, and workspace context.

GET /accounts/user-info/

MCP tool: whoami

result = client.account.whoami()
const result = await client.account.whoami();
Signature
client.account.whoami(
    *,
    extra_query: dict[str, Any] | None = None,
    options: RequestOptions | None = None,
) -> models.UserInfoResponse
client.account.whoami(options?: RequestOptions): Promise<models.UserInfoResponse>

Parameters

This method takes no parameters beyond the per-call options.

Returns

UserInfoResponse.

Was this page helpful?

Questions & Discussion