---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com/docs/en/mobile-api/post/about.md
  - https://appmetrica.yandex.com/docs/ru/mobile-api/post/about.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt

# Post API

Allows you to send events using an HTTP request to the AppMetrica server. Uploaded data is displayed in [AppMetrica reports](https://appmetrica.yandex.com/docs/en/mobile-reports/index.md).

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](*profile_id) or [appmetrica_device_id](*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 {#access}

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](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-import-events.md).

## Hosts {#hosts}

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

```httpget translate=no
https://api.appmetrica.yandex.com/logs/v1/import/events
```

or

```httpget translate=no
https://api.appmetrica.yandex.com/logs/v1/import/events.csv
```

## API resources {#resources}

- [Uploading events](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-import-events.md)
- [Uploading In-App Revenue events](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-revenue.md)
- [Uploading Ad Revenue events](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-adrevenue.md)
- [Uploading E-commerce events](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-ecommerce.md)
- [Profile attributes](https://appmetrica.yandex.com/docs/en/mobile-api/post/post-profile-attributes.md)

<!-- source: en/_includes/feedback-button-2.md -->
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.

<a href="../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-2.md -->

[*profile_id]: User profile ID.

[*appmetrica_device_id]: Hash from the unique identifier of the device set by AppMetrica.