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
Add a token to a CLI request
influx write -t <token> -b BUCKET -o org-name <LINE PROTOCOL>
export INFLUX_TOKEN=my-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
Use a token in an API request
Use tokens in API requests.
Use a token in Postman
Make authenticated requests with tokens using Postman.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.