content/influxdb3/cloud-serverless/reference/api/_index.md
The InfluxDB HTTP API provides a programmatic interface for interactions with {{% product-name %}}, such as writing and querying data.
Access the InfluxDB HTTP API using the /api/v2/ or InfluxDB v1 endpoints.
<a class="btn" href="/influxdb3/cloud-serverless/api/v2/">InfluxDB v2 API for {{% product-name %}}</a>
The API reference describes requests and responses for InfluxDB v2-compatible endpoints that work with {{% product-name %}} and with InfluxDB 2.x client libraries and third-party integrations.
<a class="btn" href="/influxdb3/cloud-serverless/api/v1/">InfluxDB v1 API for {{% product-name %}}</a>
The API reference describes requests and responses for InfluxDB v1-compatible /write and /query endpoints that work with {{% product-name %}} and with InfluxDB 1.x client libraries and third-party integrations.