---
title: API compatibility
description: 'Write data InfluxDB 3 Cloud Dedicated 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 Cloud Dedicated provides the following protocols for executing a query: Recommended: '
url: https://docs.influxdata.com/influxdb3/cloud-dedicated/api/data-api/api-compatibility/
estimated_tokens: 622
product: InfluxDB Cloud Dedicated
version: cloud-dedicated
---

[Download Cloud Dedicated Data API Spec](/openapi/influxdb-cloud-dedicated-data-api.yml)

### Write data

InfluxDB 3 Cloud Dedicated 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 Cloud Dedicated 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/cloud-dedicated/get-started/query/)
-   [Write data](/influxdb3/cloud-dedicated/write-data/)
-   [Use the v2 HTTP API with Cloud Dedicated](/influxdb3/cloud-dedicated/guides/api-compatibility/v2/)
-   [Use the v1 HTTP API with Cloud Dedicated](/influxdb3/cloud-dedicated/guides/api-compatibility/v1/)
