Read the signed-in account
Pull the same account record a dashboard page load reads, with one call and no fields.
get_account_info is the same call the dashboard makes on every page load: no parameters beyond
your credential, one account record back, covering plan, usage, storage and billing state in a
single round trip. Reach for it whenever your own backend needs to know who it is talking to, or
what plan and quota that account is currently on.
Method
Get Account Info
Returns the account data for the requesting user, optionally enforcing usage limits.
Walkthrough
Call it with nothing but your key
get_account_info declares no fields of its own. The account it answers for is whichever one
your credential authenticates, an account-scoped or project-scoped API key in the body, or a
signed-in visitor's xu-gtp-token header if you are calling this from a browser session instead.
The response
data is the account document, trimmed to what a client should read. The fields below are the
real keys get_account_data builds the response from, not a sample of a larger unknown shape:
account_infois the profile: email is the field you will key most integrations on.is_boardedis an explicit boolean (never missing), the same flag the dashboard reads to decide whether to show onboarding.drive_usage.quota_bytes/quota_unlimitedis the same ceiling the storage bar draws from;quota_unlimited: truemeans read no meaning intoquota_bytesfor that account.billing_statuscarries every hold/suspension/termination flag as one object. Everything in it isnull(or0) on a healthy account, so a truthy value anywhere in there is the whole signal you need to stop and show a billing message instead of proceeding.
Errors
See Errors for the codes shared by every method.