Headers and parameters

Most InfluxDB API endpoints require parameters in the request–for example, specifying the database to use.

Common parameters

The following table shows common parameters used by many InfluxDB API endpoints. Many endpoints may require other parameters in the query string or in the request body that perform functions specific to those endpoints.

Query parameterValue typeDescription
dbstringThe database name
InfluxDB HTTP API endpoints use standard HTTP request and response headers.
The following table shows common headers used by many InfluxDB API endpoints.
Some endpoints may use other headers that perform functions more specific to those endpoints–for example,
the write endpoints accept the Content-Encoding header to indicate that line protocol is compressed in the request body.
HeaderValue typeDescription
:————————:———————:——————————————-
AcceptstringThe content type that the client can understand.
AuthorizationstringThe authorization scheme and credential.
Content-LengthintegerThe size of the entity-body, in bytes.
Content-TypestringThe format of the data in the request body.