Get Active Account
Returns the details and settings of your active account — the account your current API key or token is scoped to. Every request you make operates inside one active account; resources you create, list, and bill against all belong to it. Use /user/accounts to see every account you belong to and /user/switch-account to change which one is active.
The response also tells you your own role and ownership in this account, so a client can decide which management controls to show.
Response (200 OK)
An account object with the following fields:
account_uuid you pass to /user/switch-account.uuid of the account owner. The owner holds the plan, payment method, and full permissions.team). Drives the account's entitlements and limits. Omitted when the account has no plan. See /account/billing.active, trialing, past_due). Omitted when the account has no paid subscription.true for the account that was created automatically when you registered. Each user has exactly one default account.true when you are the owner of this account."Owner" for the owner, else the name of the role you were assigned. Omitted when your role can't be read.true here — this is the account your token is scoped to (in /user/accounts it marks the active one).true when the account has a valid card on file. Some features require it — the same value as /account/verification-status.none, pending, verified or rejected.Deprecated: until the sunset this response also carries the legacy integer id and *_id fields. Don't use them; read uuid and the *_uuid fields.
Suspension and unpaid invoices
Two more objects sit next to account. They are also on /account/entitlements, which every member can read (there without hosted_invoice_url).
{suspended, kind, since}. kind is unpaid (an invoice is unpaid), usage (over the plan's limits), admin or abuse (set by ngris), or other; omitted when the account isn't suspended. since is when it was suspended (null when it isn't). While suspended the account can't be used: every request answers 403 with code account_suspended, except the caller's own user and settings, the accounts list and switching, this route and entitlements, and billing. See When an account is suspended.null when nothing is owed. Otherwise an invoice is unpaid and will suspend the account: since (when ngris first saw it unpaid), suspend_at (when the account will be suspended unless it is paid; null once it is suspended), and billing_access (whether you can see the invoice). Only when billing_access is true: invoice_count, invoice_number (the oldest unpaid invoice), amount + currency (the total still owed in the currency's smallest unit; omitted when the invoices are in more than one currency), amount_display (e.g. "$29.00") and hosted_invoice_url (the oldest unpaid invoice's payment page). See Unpaid invoice → suspension.