Documentation

Regenerate an admin token

Use the influxdb3 CLI or the HTTP API to regenerate the operator (_admin) token for your InfluxDB 3 Core instance. Regenerate a token to rotate it as part of your security practices or if you suspect the token has been compromised.

Regenerating the operator token deactivates the previous token, stores the SHA512 hash and metadata of the new token, and returns the new token string.

Prerequisite

To regenerate an operator token, you need the current token string.

Use the CLI or HTTP API to regenerate the operator token

Regenerating the operator token

Regenerating the operator token invalidates the previous token. Make sure to update any applications or scripts that use the operator token.

To regenerate the operator token, use the influxdb3 serve create token command (CLI) or the /api/v3/configure/token/admin/regenerate endpoint (HTTP API):

Use the --regenerate flag with the influxdb3 create token --admin subcommand–for example:

influxdb3 create token --admin \
  --regenerate
  
OPERATOR_TOKEN

In your command, replace OPERATOR_TOKEN with the current operator (_admin) token string.

The output contains the new token string and InfluxDB deactivates the previous token string.

Use the following HTTP API endpoint:

POST /api/v3/configure/token/admin/regenerate

In your request, send an Authorization header with your current operator token string –for example:

curl -X POST "http://localhost:8181/api/v3/configure/token/admin/regenerate" \
  --header "Authorization: Bearer 
OPERATOR_TOKEN
"
\
--header "Accept: application/json"

In your command, replace OPERATOR_TOKEN with the current token string.

The response body contains the new operator token string in plain text, and InfluxDB deactivates the previous token string.

To use the token as the default for later commands, and to persist the token across sessions, assign the token string to the INFLUXDB3_AUTH_TOKEN environment variable.

Lost admin token recovery

If you’ve lost your admin token and cannot regenerate it using the standard method, you can use the admin token recovery server:

  1. Start InfluxDB 3 Core with the --admin-token-recovery-http-bind option:

    influxdb3 serve --admin-token-recovery-http-bind
  2. In a separate terminal, regenerate the admin token using the recovery endpoint:

    influxdb3 create token --admin --regenerate --host http://127.0.0.1:8182
  3. The recovery server automatically shuts down after successful token regeneration.

The recovery server provides unauthenticated access to regenerate admin tokens. Only use this option when necessary and ensure the recovery endpoint (by default 127.0.0.1:8182) is only accessible from trusted networks.

Important considerations

  • Regenerating the operator token invalidates the previous token.
  • If you lose the operator token, use the recovery server method described above.
  • --regenerate only works for the operator token. You can’t use the --regenerate flag with the influxdb3 create token --admin command to regenerate a named admin token.
  • Ensure that you update any applications or scripts that use the operator token with the new token string.
  • Always store your operator token securely and consider implementing proper secret management practices.

Was this page helpful?

Thank you for your feedback!


New in InfluxDB 3.5

Key enhancements in InfluxDB 3.5 and the InfluxDB 3 Explorer 1.3.

See the Blog Post

InfluxDB 3.5 is now available for both Core and Enterprise, introducing custom plugin repository support, enhanced operational visibility with queryable CLI parameters and manual node management, stronger security controls, and general performance improvements.

InfluxDB 3 Explorer 1.3 brings powerful new capabilities including Dashboards (beta) for saving and organizing your favorite queries, and cache querying for instant access to Last Value and Distinct Value caches—making Explorer a more comprehensive workspace for time series monitoring and analysis.

For more information, check out:

InfluxDB Docker latest tag changing to InfluxDB 3 Core

On November 3, 2025, the latest tag for InfluxDB Docker images will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments.

If using Docker to install and run InfluxDB, the latest tag will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments. For example, if using Docker to run InfluxDB v2, replace the latest version tag with a specific version tag in your Docker pull command–for example:

docker pull influxdb:2