# 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](/docs/navixy-api/user-api/backend-api.md#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](/docs/navixy-api/user-api/backend-api/errors.md#error-codes) types only.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://navixy.com/docs/navixy-api/user-api/backend-api/resources/commons/feedback.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
