Skip to main content

Authorization and request format for Exporting analytics API

Authorization

API requests must be authenticated with your secret API key as an Authothization header. You can find it in the App Settings. The format of the value is Api-Key {YOUR_SECRET_API_KEY}, for example, Api-Key secret_live_....

Request format

Headers

The server-side API requests require specific headers and a JSON body. Use the details below to structure your requests:

HeaderDescription
Content-Type(Required) Set to application/json for the API to process the request.
Adapty-Tz(Optional) Set the timezone to define how the data is grouped and displayed. Use the IANA Time Zone Database format (e.g., Europe/Berlin).

Body

The API expects a JSON-formatted body with the necessary data for the request.


What's next: Requests: