Request Headers
Mandatory headers are required with every request. We strongly recommend including the Accept-Encoding header if your client supports compression as this will make the API much more responsive.
Header Name | Value | Required | Comments |
---|---|---|---|
Content-Type | application/json | yes | All requests must specify application/json as the Content-Type. |
Authorization | Bearer myAPIkey | yes | You can register a new Collective2 API key by logging on to Collective2, then go to your profile and select the API Key tab.. |
Accept-Encoding | gzip,br | no | Brotli (br) has a very high compression ratio with JSON. Recommended. |
X-AppId | The client application ID | no | Provided by C2 |
X-Version | The client application version | no | Provided by the client |