InfluxDB v2.4 Docs Submit API issue

InfluxDB OSS v1 compatibility API documentation (2.4.0 v1 compatibility)

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.

Authentication

The InfluxDB 1.x API requires authentication for all requests. InfluxDB Cloud uses InfluxDB API tokens to authenticate requests.

For more information, see the following:

TokenAuthentication

Use the Token authentication scheme to authenticate to the InfluxDB API.

In your API requests, send an Authorization header. For the header value, provide the word Token followed by a space and an InfluxDB API token. The word Token is case-sensitive.

Syntax

Authorization: Token YOUR_INFLUX_TOKEN

For examples and more information, see the following:

Security Scheme TypeAPI Key
Header parameter name:Authorization

BasicAuthentication

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 TypeHTTP
HTTP Authorization Schemebasic

QuerystringAuthentication

Use the Querystring authentication scheme with InfluxDB 1.x API parameters to provide credentials through the query string.

For examples and more information, see how to authenticate with a username and password.

Security Scheme TypeAPI Key
Query parameter name:u=&p=

Query

Query InfluxDB in a V1 compatible format

query Parameters
db
required
string

Bucket to query.

p
string

User token.

q
string

Defines the influxql query to run.

rp
string

Retention policy name.

u
string

Username.

header Parameters
Accept
string
Default