--- title: InfluxDB 1.x compatibility API description: > placeholder menu: influxdb_2_0_ref: name: 1.x compatibility parent: InfluxDB v2 API weight: 104 aliases: - /v2.0/reference/api/influxdb-1x/ influxdb/v2.0/tags: [influxql, query, write] products: [cloud] related: - /influxdb/v2.0/query-data/influxql --- The InfluxDB v2 API includes InfluxDB 1.x compatibility endpoints that work with InfluxDB 1.x client libraries and third-party integrations like [Grafana](https://grafana.com) and others. ## Authentication InfluxDB 2.0 requires all query and write requests to be authenticated. Use **basic authentication** or **token authentication** to authenticate requests to InfluxDB 1.x compatibility endpoints. ### Basic Authentication Basic authentications requires the following credentials: - **username**: InfluxDB username - **password**: InfluxDB [authentication token](/v2.0/security/tokens/) There are multiple ways to provide basic authentication credentials. The example below uses the `Authorization` header with the `Basic` scheme to provide the required credentials: ##### Basic authentication with authorization header ```sh # Header syntax Authorization: Basic : # Header example Authorization: Basic admin:mYSuP3rs3cREtT0k3N ``` ### Token Authentication Token authentication requires the following credential: - **token**: InfluxDB [authentication token](/v2.0/security/tokens/) Use the `Authorization` header with the `Token` scheme to provide your authentication token to InfluxDB. ##### Token authentication with authorization header ```sh # Header syntax Authorization: Token # Header example Authorization: Token mYSuP3rs3cREtT0k3N ``` ## Compatibility endpoints {{< children readmore=true >}}