# Feedback

## Feedback object

```json
{
  "text": "My feedback",
  "useragent": "Chrome/87.0.4280.88",
  "platform": "Windows NT 10.0; Win64; x64",
  "screenshots": ["encoded image1", "encoded image2"],
  "log": <log_file>
}
```

* `text` - string. Feedback text. May not be null.
* `useragent` - optional string. Information about the browser of user.
* `platform` - optional string. Information about the platform of user.
* `screenshots` - optional string array. base64-encoded data:url image, example: data:image/jpeg;base64,`[encoded image]`.
* `log` - optional log file. Contains log of the browser.

## API actions

API path: `/feedback`.

### send\_email

Sends an email with user's feedback, ask for help, or suggestion a new feature. The message will be sent to dealer's\
email address for feedback.

#### Parameters

| name     | description                                                                            | type                                                                              |
| -------- | -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| feedback | Message from the user. Screenshot and log will be added to email as attachments.       | JSON object                                                                       |
| type     | Optional. One of strings: `support_request` (default), `feature_request` and `review`. | [enum](https://www.navixy.com/docs/navixy-api/user-api/backend-api/..#data-types) |

#### Example

cURL

{% code overflow="wrap" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/feedback/send_email' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "feedback": {"text": "I love this platform"}, "type": "review"}'
```

{% endcode %}

#### Response

```json
{
  "success": true
}
```

#### Errors

* [General](https://www.navixy.com/docs/navixy-api/user-api/errors#error-codes) types only.
