Documentation

InfluxDB 1.x compatibility API

The InfluxDB v2 API includes InfluxDB 1.x compatibility endpoints that work with InfluxDB 1.x client libraries and third-party integrations like Grafana and others.

View full v1 compatibility API documentation

Authentication

InfluxDB 2.0 requires all query and write requests to be authenticated. Use 1.x-compatible authorizations or token authentication to authenticate requests to InfluxDB 1.x compatibility endpoints.

1.x-compatible authorizations

Include the following credentials in your 1.x-compatible authorizations:

  • username: InfluxDB 1.x username
  • password: InfluxDB 1.x password

For information about creating and managing 1.x-compatible authorizations, see:

There are multiple ways to provide 1.x-compatible authorization credentials to InfluxDB 2.0. When providing the 1.x-compatible username and password, use the following syntax for basic authentication (or include the -u and -p parameters in your request).

Basic authentication
# --user syntax
<username>:<password>

Token Authentication

Token authentication requires the following credential:

Use the Authorization header with the Token scheme to provide your authentication token to InfluxDB.

Token authentication with authorization header
# Header syntax
Authorization: Token <token>

# Header example
Authorization: Token mYSuP3rs3cREtT0k3N
InfluxQL support

The compatibility API supports InfluxQL, with the following caveats:

  • The INTO clause (e.g. SELECT ... INTO ...) is not supported.
  • With the exception of DELETE and DROP MEASUREMENT queries, which are still allowed, InfluxQL database management commands are not supported.

Compatibility endpoints


Set your InfluxDB URL

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.