Headers

InfluxDB Cloud API endpoints use standard HTTP request and response headers. The following table shows common headers used by many InfluxDB Cloud API endpoints. Some endpoints may use other headers for functions 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-EncodingstringCompression applied to the request body (e.g., gzip).
Content-LengthintegerThe size of the entity-body, in bytes.
Content-TypestringThe format of the data in the request body.

Was this page helpful?

Thank you for your feedback!