# Set Up User Feedback | Sentry for Native

Sentry makes it possible to collect additional feedback when a user experiences an error. You can collect feedback according to the method supported by your SDK of choice.

## [User Feedback API](https://docs.sentry.io/.md#user-feedback-api)

The user feedback API allows you to collect user feedback using your own UI. You can use the same programming language you have in your app to then send the feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP.

Sentry pairs the feedback with the original event, giving you additional insight into issues. In order to do this, Sentry needs the `eventId`. For example, to get the `eventId`, you can use [`before_send`](https://docs.sentry.io/platforms/native/configuration/options.md#before-send)or the return value of the method capturing an event.

```cpp
#include <sentry.h>

sentry_value_t event = sentry_value_new_message_event(
    SENTRY_LEVEL_INFO, "my-logger", "Hello user feedback!");
sentry_uuid_t event_id = sentry_capture_event(event);

sentry_value_t user_feedback = sentry_value_new_user_feedback(
    &event_id, "Jane", "jane.doe@example.com", "Feedback message");
sentry_capture_user_feedback(user_feedback);
```
