content/shared/influxdb-v2/reference/api/_index.md
The InfluxDB HTTP API provides a programmatic interface for interactions such as writing and querying data, and managing resources in {{% product-name %}}.
Access the InfluxDB HTTP API using the /api/v2/ endpoint or InfluxDB v1 endpoints
for {{% product-name %}}
<a class="btn" href="/influxdb/version/api/">InfluxDB {{< current-version >}} API</a>
{{% show-in "v2" %}}
InfluxDB API documentation is built into the influxd service and represents
the API specific to your version of InfluxDB.
To view the API documentation locally, start InfluxDB
and visit the /docs endpoint in a browser (localhost:8086/docs).
{{% /show-in %}}
<a class="btn" href="/influxdb/version/api/v1-compatibility/">InfluxDB v1 API for {{% product-name %}}</a>
The InfluxDB HTTP API includes InfluxDB v1 compatibility endpoints that work with InfluxDB 1.x client libraries and third-party integrations like Grafana and others.