Archived documentation version rendered and hosted by DevNetExpertTraining.com
Documentation

Use tokens

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 -t <INFLUX_TOKEN> -b <BUCKET_NAME> -o org-name <LINE_PROTOCOL>
export INFLUX_TOKEN=<INFLUX_TOKEN>
influx write -t $INFLUX_TOKEN -b my-bucket -o my-org "measurement field=1"

See here to configure environment variables on Windows. (Click on the Windows tab.)

Use CLI configurations

Automatically manage and use tokens from the CLI using influx config.

Use a token in an API request

Use tokens in API requests.

Use a token in Postman

Make authenticated requests with tokens using Postman.


Select your region

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.