The InfluxDB 1.x compatibility /write and /query endpoints work with InfluxDB 1.x client libraries and third-party integrations like Grafana and others.
If you want to use the latest InfluxDB /api/v2 API instead, see the InfluxDB v2 API documentation.
This documentation is generated from the InfluxDB OpenAPI specification.
Use the Token authentication scheme to authenticate to the InfluxDB API.
In your API requests, send an
For the header value, provide the word
Token followed by a space and an InfluxDB API token.
Token is case-sensitive.
Authorization: Token YOUR_INFLUX_TOKEN
For examples and more information, see the following:
|Security Scheme Type||API Key|
|Header parameter name:||Authorization|
Use the HTTP Basic authentication
scheme with clients that support the InfluxDB 1.x convention of username and password (that don't support the
Authorization: Token scheme):
For examples and more information, see how to authenticate with a username and password.
|Security Scheme Type||HTTP|
|HTTP Authorization Scheme||basic|