# Notification Settings

Notification settings in the Navixy Admin Panel are used to manage and configure alerts and notifications for various events and conditions. These settings allow you to customize notification channels, specifying how notifications are delivered, including options like email, SMS, or push notifications.

## Notification Settings Object

Let's explore the Notification Setting object using the following example:

```json
{
  "email_from": "Navixy <no-reply@navixy.com>",
  "email_footer": "\n\n—-nSincerely, Navixy",
  "email_special": "no-reply@navixy.com",
  "sms_originator": "demo.navixy.com",
  "caller_id": "491761234543"
}
```

* `email_from` - string. The email address from which notification messages will be sent. This can be a simple email address ("<no-reply@navixy.com>") or an email address with a name ("Navixy <no-reply@navixy.com>").
* `email_footer` - string. A footer added to all notification emails. This can be any text up to 600 characters.
* `email_special` - string. A special email address used for PaaS reports.
* `sms_originator` - string. The originator for SMS notifications. The maximum length is 20 characters and must match the regex pattern `(p{L}|d|[-'" .,:/])*`, e.g., "demo.navixy.com" or "491761234567".
* `caller_id` - string. The originator for voice messages. The maximum length is 20 characters and must match the regex pattern `(p{L}|d|[-'" .,:/])*`, e.g., "491761234543".

## API actions

API path: `panel/dealer/settings/notification`.

### read

Gets current monitoring notification settings.

*required permissions*: `notification_settings: "read"`.

#### Parameters

Only session `hash`.

#### Examples

{% tabs %}
{% tab title="cURL" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/panel/dealer/settings/notification/read' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "fa7bf873fab9333144e171372a321b06"}'
```

{% endtab %}

{% tab title="HTTP GET" %}
{% code overflow="wrap" %}

```http
https://api.eu.navixy.com/v2/panel/dealer/settings/notification/read?hash=fa7bf873fab9333144e171372a321b06
```

{% endcode %}
{% endtab %}
{% endtabs %}

#### Response

```json
{
  "success": true,
  "value": {
    "email_from": "NAVIXY <no-reply@navixy.com>",
    "email_footer": "\n\n---nSincerely, Navixy",
    "email_special": "no-reply@navixy.com",
    "sms_originator": "demo.navixy.com",
    "caller_id": "491761234543"
  }
}
```

* `value` - [Notification settings object](#notification-settings-object) described above.

#### Errors

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

### update

Updates notification settings for the current dealer.

*required permissions*: `notification_settings: "update"`.

#### Parameters

| name            | description                                                                                     | type   |
| --------------- | ----------------------------------------------------------------------------------------------- | ------ |
| email\_from     | Email from which notification messages will be sent. Can be email address or email with a name. | string |
| email\_footer   | Footer which is added to all notification emails. Arbitrary text up to 600 characters.          | string |
| email\_special  | Optional. Special email address for PaaS reports.                                               | string |
| sms\_originator | SMS originator. Max length is 20.                                                               | string |
| caller\_id      | Voice messages originator. Max length is 20.                                                    | string |

#### Example

cURL

{% code overflow="wrap" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/panel/dealer/settings/notification/update' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "fa7bf873fab9333144e171372a321b06", "email_from": "NAVIXY <no-reply@navixy.com>", "email_footer": "\n\n---nSincerely, Navixy", "sms_originator": "demo.navixy.com", "caller_id": "491761234543"}'
```

{% endcode %}

#### Response

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

#### Errors

[General](https://navixy.com/docs/navixy-api/user-api/backend-api/errors#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/panel-api/resources/dealer/settings/notification.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.
