---
title: API compatibility
description: 'Write data InfluxDB 3 Clustered provides the following HTTP API endpoints for writing data: Recommended: /api/v2/write endpoint for new write workloads or for bringing existing InfluxDB v2 write workloads to InfluxDB 3. /write endpoint for bringing existing InfluxDB v1 write workloads to InfluxDB 3. Both endpoints accept the same line protocol format and process data in the same way. Query data InfluxDB 3 Clustered provides the following protocols for executing a query: Recommended: Flight+gRPC '
url: https://docs.influxdata.com/influxdb3/clustered/api/data-api/api-compatibility/
estimated_tokens: 606
product: InfluxDB Clustered
version: clustered
---

[Download Clustered Data API Spec](/openapi/influxdb-clustered-data-api.yml)

### Write data

InfluxDB 3 Clustered provides the following HTTP API endpoints for writing data:

-   **Recommended**: `/api/v2/write` endpoint for new write workloads or for bringing existing InfluxDB v2 write workloads to InfluxDB 3.
-   `/write` endpoint for bringing existing InfluxDB v1 write workloads to InfluxDB 3.

Both endpoints accept the same line protocol format and process data in the same way.

### Query data

InfluxDB 3 Clustered provides the following protocols for executing a query:

-   **Recommended**: *Flight+gRPC* request that contains an SQL or InfluxQL query.
-   HTTP API `/query` request that contains an InfluxQL query. Use this protocol when bringing existing InfluxDB v1 query workloads to InfluxDB 3.

### InfluxDB v2 compatibility

The HTTP API `/api/v2/write` endpoint works with the `Bearer` and `Token` authentication schemes and existing InfluxDB 2.x tools and code.

### InfluxDB v1 compatibility

The HTTP API `/write` endpoint and `/query` endpoint work with InfluxDB 1.x username/password authentication schemes and existing InfluxDB 1.x tools and code.

#### Related

-   [Get started querying InfluxDB](/influxdb3/clustered/get-started/query/)
-   [Write data](/influxdb3/clustered/write-data/)
-   [Use the v2 HTTP API with Clustered](/influxdb3/clustered/guides/api-compatibility/v2/)
-   [Use the v1 HTTP API with Clustered](/influxdb3/clustered/guides/api-compatibility/v1/)
