Post API

Allows you to send events using an HTTP request to the AppMetrica server. Uploaded data is displayed in AppMetrica reports.

To work with the Post API, you need to get the Post API key in the Settings section of your application.

Data can be uploaded in request parameters or in the request body (in the csv format). Data passed via the SDK and the API is merged if you passed the same value of profile_id or appmetrica_device_id.

Attention.

The Post API allows you only to upload data for identifiers that were previously sent via the SDK.

You should send requests to the https://api.appmetrica.yandex.com host. For example:

https://api.appmetrica.yandex.com/logs/v1/import/events

or

https://api.appmetrica.yandex.com/logs/v1/import/events.csv

Uploaded data is added to the data that has been received from the SDK. Data that is uploaded via the Post API is synced with the other data every 2 hours.