Manage long lived tokens for REST API usage

Content Software for File User Guide

Part Number

When working with the REST API, local users may use a long-lived token (a token that doesn't require a refresh every 5 minutes).

As a local user, you can generate a long-lived token using the GUI or the CLI:

weka user generate-token [--access-token-timeout timeout]
  1. From the signed-in user menu, select API token.
  2. In the Manage API Token dialog, select Generate token and set the expiration time. Then, select Generate.

    If you want to revoke theaccessall existing login tokens of the local user and refresh tokens,use the CLI command:them, select Revoke Tokens.

    weka user revoke-tokens
  3. Copy the generated token and paste it to the REST API authorization dialog.