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.
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.
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
-p parameters in your request).
# --user syntax <username>:<password>
Token authentication requires the following credential:
- token: InfluxDB authentication token
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
The compatibility API supports InfluxQL, with the following caveats:
SELECT ... INTO ...) is not supported.
- With the exception of
DROP MEASUREMENTqueries, which are still allowed, InfluxQL database management commands are not supported.
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, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.