Skip to content

Workspace Token

A Workspace Token is a data ingestion credential that starts with tkn_. Collection agents such as DataKit carry a valid Token and report data to the corresponding Guance Workspace. When Data Query is enabled, you can also use this Token to query data.

The same Workspace can assign independent Tokens to different teams, allowing you to rotate or revoke ingestion credentials separately. Multiple teams can also share a single Token; data reported with each Token enters the same Workspace, and the data access scope follows the Workspace permission configuration.

Entry and Permissions

Go to Manage > Workspace Settings > Basic Information > Token, then click Manage Token or View Token to access the list.

  • Owner and Administrator: View all Tokens, including revoked records, and perform Create, Edit, Regenerate, and Revoke operations.
  • Other members with Token view permission: View and copy the Workspace default Token, as well as active Tokens authorized to their teams. View permission is configured through Role Management; team Tokens must also satisfy team authorization.

The Workspace default Token supports editing and regeneration; revocation applies only to team Tokens. A team can use multiple Tokens. When you need to revoke ingestion permissions separately, create independent Tokens.

Before creating a team Token, create a team and add members under Manage > Member Management > Team Management.

In the list, hover over a Token to view its full value, and click it to copy.

Create and Edit

  1. Click Create Token, enter a name and description, select at least one authorized team, and enable Data Query as needed.
  2. After the Token is created, copy the full credential and use it in collection configurations.

The initial state of the Data Query toggle follows the Workspace default Token; you can adjust it at creation time, and each Token is maintained independently after creation. Editing the query configuration applies to both the current value of this record and its old values that are still valid.

Team authorization controls the scope of credentials members can obtain later. After you add or remove authorized teams, members obtain Tokens based on the latest team relationships; credentials that have already been copied and deployed continue to be used according to their own validity status. To invalidate credentials already held, regenerate the Token or revoke the team Token.

Regenerate Token

In the Actions column of the corresponding active record, click Regenerate, select the old Token expiration time, and generate a new value. Update all collection configurations that use the old value before it expires.

The new value takes effect immediately after successful generation. During the delayed expiration period, both the new and old values can be used. After the old value expires, collectors that still use it will stop reporting data.

There must be at least 24 hours between two successful regenerations of the same Token; each Token is calculated separately.

Revoke Token

  • Single revocation: In the Actions column of a team Token, click Revoke.
  • Revoke by team: After filtering by team, click Revoke by Team to revoke all active team Tokens associated with that team.

After revocation, the current value and all old values that are still valid become invalid at the same time. To ingest data again, create a new Token and update collection configurations.

Use in Collection Configurations

In Integrations > DataKit, select the Token you need to use in the Host, Docker, Kubernetes YAML, and Helm installation configurations, then copy the installation instructions.

Deployed collection configurations must be updated manually. When you create a new Token, change a page selection, or adjust team relationships, collectors continue to use the saved value. After that value becomes invalid, replace it with a valid value to resume reporting.

The Workspace Token is used for data ingestion; call the Open API with an API Key, and use a Client Token for Real User Monitoring (RUM) public DataWay ingestion. Choose the credential according to the ingestion method and store the full key securely.

Feedback

Is this page helpful?