User guide

Create an API token

Let other software, such as Power BI or your own scripts, read or write this company’s books through the REST API.

Who can do this Owner, Accountant

A token belongs to you and to this company. It can do only what its scopes allow, and never more than your role allows.

  1. Open Settings, then API tokens. Under New API token, enter a Name for what will use it, set Expires after (days) (up to 365; 90 by default), and tick the Scopes.
    The New API token form with Name, Expires after and Scopes
  2. Select Create token. Copy the token straight away with Copy token: it will not be shown again.
  3. To stop it working, select Revoke on it under Your tokens.
ScopeAllows
Read accounting dataReading accounts, contacts, documents and journals
Create and change documentsWriting documents
Read reportsReading reports
Read the audit logReading the audit log
I lost the token.

It is stored only in a form that cannot be read back. Revoke it and create a new one.

Can a Viewer create a token?

No. Owners and Accountants can.

What happens when it expires?

Requests with it are refused. Create a new token and update the software that uses it.