API Token
A key with which a tool reads and writes the data of one tenant, limited by scopes and by whether it may publish.
An administrator creates a token in the console, or a tool with the scope for settings does so through the API, with a name, a set of scopes and optionally an expiry date; without one the token never expires. The scopes are reading, writing or deleting end users, writing events, writing content, publishing content, changing settings and reading analytics. Publishing needs both its scope and an explicit permission on the token. The token is shown once and stored only as a SHA-256 hash; Waypoint records when it was last used, and revoking it ends it at once. Invantive holds superuser tokens of its own for the tenants and the party register, which belong to no tenant and are accepted only from listed addresses (table Session.CurrentTokens).