Skip to main content

Personal Access Tokens

Overview

Personal access tokens are an alternative to using bearer tokens to perform various operations on the entities. To access personal access tokens (PATs) click on Personal Access Token tab on the user profile picture or avatar at the top right.

User Popover

Create a PAT

To create a PAT, click on the + Create PAT button.

Pat Table

This action redirects the user to the PAT creation page, where required details can be provided. The name should be a recognizable label for the token, and the duration sets the period for which the token will remain valid. Additionally, the user can enter an optional description and define scopes, which specify the operations the PAT is allowed to perform. Each PAT can be restricted to specific operations on particular entities, providing fine-grained access control.

Create Pat

The available operations include:

OperationDescription
createCreate a new entity
readRead/view an entity
listList entities
updateUpdate/modify an entity
deleteDelete an entity
shareShare an entity with others
unshareRemove sharing permissions
publishPublish messages to a channel
subscribeSubscribe to messages from a channel

View a PAT

After a PAT is created, the user is redirected to the PAT detail page. Alternatively, the user can view an existing PAT by clicking on the row or the View button in the row actions.

Upon creation, the PAT secret is displayed once, allowing the user to copy it. This secret will not be shown again once the page is reloaded.

Pat Id

Manage scopes

Add a scope

To add a new scope to an existing PAT, the user can click the Add Scope button. This allows the user to define additional permissions for the token.

Add Scope

Delete a scope

The user can delete a specific scope from a PAT by clicking the trash icon in the scopes table. To remove all scopes associated with a PAT, the user can click the Delete All button.

Manage Scopes

Revoke a PAT

To revoke a PAT, click on the Revoke button located in the status row of the PAT detail page.
Once a PAT is revoked, it becomes inactive and can no longer be used to perform any of the scoped operations.

Revoke Pats

Regenerate a PAT

After revocation, the user can regenerate the PAT by clicking the Regenerate button. A dialog will appear, allowing the user to select a new validity duration. This creates a new secret while preserving all other PAT details such as the name, description, and scopes.

Regenerate Pat

Expired tokens can also be regenerated. To do this, the user should navigate to the PATs page and change the status filter to Expired to view all expired tokens.

Expired Pat

The user must then click on the expired PAT to view its details, and from there, click the Regenerate button. A dialog will appear, allowing the user to select a new duration. This process reactivates the PAT and generates a new secret, while maintaining the original configuration.

Delete a PAT

The user can delete an individual PAT by clicking Delete in the row actions.

Delete Pat

To remove all PATs, the user can click the Delete All button located on the PATs table.