---
title: "Update VAT-monitoring notification settings"
method: PATCH
path: "/v1/me/notifications"
tags: ["Account"]
---

# Update VAT-monitoring notification settings

`PATCH /v1/me/notifications`

## Request

- Base URL: `https://api.vatnode.dev`
- URL: `https://api.vatnode.dev/v1/me/notifications`
- Auth: API key in cookie `better-auth.session_token`

Toggle email alerts and/or set the target address. Pass an empty
string for `email` to clear the override and fall back to the account
email.

## Request body

- object
  - `emailEnabled` boolean
  - `email` string: A valid email address, or an empty string to clear the override.

## Response `200`

The updated notification settings.

- NotificationSettings
  - `emailEnabled` boolean, required
  - `email` string, required: Override alert address. Empty string means ‘use the account email’.
  - `accountEmail` string, required

## Other responses

- `400`: The request body, query string or path parameters failed structural validation (wrong type, missing required field, out-of-range length, malformed enum, etc.). Returns the standard error envelope with code `INVALID_REQUEST`. This is distinct from a semantically well-formed request that is rejected later (e.g. `INVALID_FORMAT` for a VAT ID that parses but is not a valid VAT number).
- `401`: No valid session (`UNAUTHORIZED`), or the account has been deleted (`ACCOUNT_DELETED`).
- `500`: An unexpected server error occurred. Returns the standard error envelope with code `INTERNAL_ERROR` and a `requestId` for support correlation. The failing request had no side effects the caller can rely on; retry is safe for idempotent operations.
- `503`: The database is temporarily unavailable (`DB_UNAVAILABLE`).

---

[API](https://skmtc.dev/vatnode/apis/vatnode-api.md) · [All operations](https://skmtc.dev/vatnode/apis/vatnode-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vatnode/apis/vatnode-api/revisions/c65828db2037?raw)
