API Tokens

Create, revoke and delete tokens that external systems use to call the StockWise API.

API tokens are "Long-lived bearer tokens for external API consumers (e.g. the BrainBox integration). A token is scoped to this organization and to the specific endpoints its scopes allow."

To open the screen, go to Configuration › API Tokens.

API Tokens screen listing tokens with Revoke and Delete actions

Columns

ColumnDescription
NameThe token name.
ScopesWhat the token can access, for example Inventory Read.
Created byWho created the token.
Last usedWhen the token was last used.
ExpiresThe expiry, or Never.
StatusFor example active.
ActionsRevoke and Delete.

Create a token

Open the dialog

Select + Create Token. The Create API Token dialog opens.

Create API Token dialog with Name, Scopes and Expires in days

Name the token

Enter a Name, for example "BrainBox production".

Choose the scopes

Select one or more scopes:

  • Hardware Stock In
  • Hardware Stock Out
  • Print Spec Sheet
  • Stock Out
  • Inventory Read

Set an expiry (optional)

Enter a number in Expires in days (optional). "Leave blank for a token that never expires."

Create

Select Create, or Cancel to close without creating a token.

Copy the secret right away

The secret is shown once at creation — store it securely.

Revoke or delete a token

Use Revoke or Delete in the token's row.

On this page