Choose what you allow. Your choice applies on every tracken.ee address and you can change it any time with “Cookie settings” in the footer.

Remember your cookie choice, language and theme. Without them the site doesn't work the way you chose.

A cookie with your choice (6 months); language and theme in browser storage.


The services below learn that you visited this site, whether you came from their ad and whether you then created a Tracken account. That shows us which ads work, and these companies may show you Tracken ads later. They may link the data to your account with them. For Meta, Tracken ID's server reports the new account and also sends a hash of your e-mail address, your IP address and browser details.

ServiceCookiesKept for up to
Meta (Facebook, Instagram)_fbp, _fbc90 days

Tracken's own visit counter uses no cookies, stores no IP addresses and shares nothing with anyone. Privacy policy

Skip to content
Beta
BetaThe Tracken Accounts API is in beta: it may still change before v1, and every change is announced in the changelog.

Principal

Response

Who the current credential is (getCurrentUser): a CLI's whoami, and how an agent learns its organization and scopes before acting. Public API stage 5 normalised the web app's user answer to it; the web app's own fields stay beside the public ones, x-internal.

Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.

Attributes

6
typestringrequired

api_key: an organization's own machine credential (Settings → API access). installation: a connected Tracken app. user: a signed-in person (the web app, the CLI after tracken login, an MCP client). New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) api_key, installation, user

organization_idstring (uuid) · nullablerequired

The organization the request is scoped to: a machine credential's own; for a person, the X-Organization-ID they sent when it names an organization they can open. Null for a person who sent none.

scopesarray of stringrequired

Scopes the token holds, in the vocabulary of the public API's oauth2 scheme. A person's effective rights are these scopes intersected with their role; empty for the web app's own sign-in, which names no scopes and is not narrowed (its role alone decides).

organizationsarray of OrganizationMembershiprequired

Organizations this person can open (directly or through a firm mandate), each with their role and the permissions this token may use there. Empty for a machine credential, which belongs to exactly one organization (organization_id).

4 attributes of each item
idstring (uuid)required

Organization unique identifier

namestringrequired

Organization name

rolestringrequired

The caller's role in this organization: admin, accountant, bookkeeper or viewer.

permissionsarray of Permissionrequired

Effective permission strings (server-computed): the role's, plus the owner privileges when the caller owns the organization. For a token narrowed by scopes (the CLI, an MCP client), the role's cut down to what those scopes admit, as the API enforces.

credentialPrincipalCredential · nullable

The machine credential in use; null for a person.

6 attributes of credential
client_idstringrequired

The OAuth client id the token was issued to.

installation_idstring · nullablerequired

The app installation, for a connected Tracken app; null for an API credential.

namestring · nullablerequired

The name an administrator gave the API credential; null for an app installation, or a credential this organization no longer lists.

authenticationstring · nullablerequired

How the API credential proves itself: secret (a client secret) or public_key (a signed assertion, private_key_jwt); null when unknown. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) secret, public_key

expires_atstring (date-time) · nullablerequired

When the API credential stops working; null for none.

idle_daysinteger · nullablerequired

Disabled automatically after this many days unused; null for no idle limit.

userPrincipalUser · nullable

The signed-in person; null for a machine credential.

3 attributes of user
idstring (uuid)required

The person's user id.

emailstring (email)required

The person's email.

rolestring · nullablerequired

Their role in the organization named by organization_id; null when there is none. New values may be added: treat a value you do not know as valid, not as an error.

Known values (open: expect new ones) admin, accountant, bookkeeper, viewer

Used by