docs-v2/content/influxdb3/cloud-serverless/admin/tokens/use-tokens.md

964 B

title seotitle description menu weight
Use tokens Use an API token in InfluxDB Use an API token in the InfluxDB UI, the `influx` CLI, or the InfluxDB API.
influxdb3_cloud_serverless
name parent
Use tokens Manage tokens
204

Use tokens to authenticate requests to InfluxDB, including requests to write, query, and manage data and resources. Authenticate requests using the influx CLI, API requests made with client libraries, and tools like cURL.

Add a token to a CLI request

influx write \
  --token API_TOKEN \
  # ...

Use environment variables

The influx CLI automatically uses the INFLUX_TOKEN variable when defined in the current session.

Use CLI configurations

Create influx CLI connection configurations to automatically add your token and other required credentials to each CLI command execution.