---
title: Headers
description: InfluxDB OSS v2 API endpoints use standard HTTP request and response headers. The following table shows common headers used by many InfluxDB OSS v2 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. Header Value type Description Accept string The content type that the client can understand. Authorization string The author
url: https://docs.influxdata.com/influxdb/v2/api/headers/
estimated_tokens: 378
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/api/headers/
---

[Download InfluxDB API Spec](/openapi/influxdb-oss-v2-api.yml)

InfluxDB OSS v2 API endpoints use standard HTTP request and response
headers. The following table shows common headers used by many
InfluxDB OSS v2 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.

|      Header      |Value type|                     Description                     |
|------------------|----------|-----------------------------------------------------|
|     `Accept`     |  string  |  The content type that the client can understand.   |
| `Authorization`  |  string  |      The authorization scheme and credential.       |
|`Content-Encoding`|  string  |Compression applied to the request body (e.g., gzip).|
| `Content-Length` | integer  |       The size of the entity-body, in bytes.        |
|  `Content-Type`  |  string  |     The format of the data in the request body.     |
| Header | Value type | Description |
| --- | --- | --- |
| Header | Value type | Description |
| Accept | string | The content type that the client can understand. |
| Authorization | string | The authorization scheme and credential. |
| Content-Encoding | string | Compression applied to the request body (e.g., gzip). |
| Content-Length | integer | The size of the entity-body, in bytes. |
| Content-Type | string | The format of the data in the request body. |
