Post API

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

You can upload events 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.

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 4 hours.

Accessing the API

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

You should pass the token in every API request in the post_api_key parameter.

Learn more in the example.

Hosts

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

API resources

If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.