> For the complete documentation index, see [llms.txt](https://api-docs.hengelending.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.hengelending.com/mcp/tool-reference/notification-settings.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Notification settings

Which emails borrowers and loans receive.

{% hint style="info" %}
Generated from the MCP server's code. Do not edit this page in GitBook: changes are overwritten on the next sync.
{% endhint %}

## apply\_notification\_settings\_to\_clients

Remove every client-, loan-application- and borrower-pair-level notification settings override currently owned by a user (ownership resolved live from SQL: Client.OwnerId / LoanApplication.LoanOfficerId, and the pairs of those loans), so those entities fall back to inheriting the user's own settings again. Returns the ids of the deleted override documents. Requires write access to the user.

**Who can call it:** Admin, CompanyAdmin, Agent, Processor, DualLicensedAgent

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

**Availability:** only for companies with the borrower portal; hidden from callers in other companies.

| Input    | Type          | Description                                                                                                                                                                                                                                                                                                                                       |
| -------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `userId` | string (uuid) | REQUIRED. The Henge user id (GUID) whose defaults should be re-applied. Removes every client- and loan-application-level notification settings override currently owned by this user (ownership resolved live from SQL: Client.OwnerId / LoanApplication.LoanOfficerId), so those entities fall back to inheriting the user's own settings again. |

## apply\_notification\_settings\_to\_loans

Remove every loan-application-level notification settings override for every loan a client is a borrower on (co-borrower loans included, resolved live from SQL: LoanApplicationBorrower -> Borrower.ClientId), and the override of every borrower pair the client is in, so those loans and pairs fall back to inheriting the client's settings again. Never touches the client's own document or another client's pair. Returns the ids of the deleted override documents. Requires write access to the client.

**Who can call it:** Admin, CompanyAdmin, Agent, Processor, DualLicensedAgent

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

**Availability:** only for companies with the borrower portal; hidden from callers in other companies.

| Input      | Type          | Description                                                                                                                                                                                                                                                                                                       |
| ---------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clientId` | string (uuid) | REQUIRED. The Henge client id (GUID) whose settings should be re-applied. Removes every loan-application-level notification settings override for loans the client is a borrower on (co-borrower loans included, resolved live from SQL), so those loans fall back to inheriting the client's own settings again. |

## get\_notification\_catalog

List every email template Henge can suppress or configure per notification-settings level, including its category (status, marketing, documents, tasks, rateLock, submission, transactional), which recipient branches (client, user) it applies to, a human "displayName" and one-line "description" for the settings UI, an "agentDelivery" mode ("native" = the mail is addressed to the user, "copy" = borrower mail the loan officer can be copied on, null = transactional), a "defaultEnabled" flag (the value this template resolves to when nothing in the override chain says anything — true for almost every template; false means it is off until a user/client/loan explicitly enables it, e.g. "Rate ready to lock" per #855), and — for status templates — the loan-timeline milestone it announces. Transactional templates are never configurable. Every non-transactional borrower template lists both recipient types, because its "user" branch is the loan officer's copy of it; copies are off unless enabled, everything else follows its own "defaultEnabled". Returns an object: "entries" is the template list, and "milestones" holds the loan timeline per recipient branch ("client" and "user"), each milestone listing the item keys that belong to it. Use the item keys/template keys and milestone codes returned here to build paths for update\_notification\_settings.

**Who can call it:** Admin, CompanyAdmin, Agent, Processor, DualLicensedAgent

**Reads or writes:** reads only

**Availability:** only for companies with the borrower portal; hidden from callers in other companies.

Takes no inputs.

## get\_notification\_settings

Read an entity's own notification settings overrides plus the fully resolved effective values (each annotated with which level supplied it: borrowerPair, loanApplication, client, user, company, or default — and why: "reason" is explicit, milestone, category, newTemplateCutoff or default). Both recipient branches ("client" and "user") are returned for every entity type, and "permissions.canEdit" says whether this caller may write them. entityType is one of "user", "client", "loanApplication" or "borrowerPair" — a loanApplication inherits from its client, which inherits from its owning user, and a borrowerPair (the id of one pair on a loan) inherits from its loan. A pair's own value is supplied at level "borrowerPair". Requires read access to the entity (for a pair, to its loan).

**Who can call it:** Admin, CompanyAdmin, Agent, Processor, DualLicensedAgent

**Reads or writes:** reads only

**Availability:** only for companies with the borrower portal; hidden from callers in other companies.

| Input        | Type          | Description                                                                                                                                                                                                                                                                                                             |
| ------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `entityType` | string        | REQUIRED. Which kind of entity to read settings for: "user" (a loan officer/agent's defaults), "client" (a borrower/client, inherits from its owning user), "loanApplication" (inherits from its client, which inherits from its owning user), or "borrowerPair" (one borrower pair on a loan; inherits from its loan). |
| `entityId`   | string (uuid) | REQUIRED. The Henge id (GUID) of the user, client, loan application or borrower pair named by entityType.                                                                                                                                                                                                               |

## update\_notification\_settings

Change one or more notification settings values at this level in a single atomic write, then return the effective settings after the change. entityType is one of "user", "client", "loanApplication" or "borrowerPair" (one borrower pair on a loan; its settings beat the loan's, so one pair can opt out of mail without changing the loan for the others). Each operation names a path — "categories.{category}.{client|user}.enabled", "categories.{category}.{client|user}.items.{templateKey}", or "categories.status.{client|user}.milestones.{milestoneCode}" (see get\_notification\_catalog for category, template and milestone codes; milestones exist only on the "status" category) — and a value: true/false to set it, or null to clear the override so this level inherits from the next level up again. Within a level an explicit item beats its milestone, and a milestone beats the category toggle. The "user" branch is valid on every entityType: on a client or loan application it means "what I want in my own inbox for this client / this loan" — for agent-addressed templates that is delivery, and for borrower templates it is a copy of the borrower's mail with the login link stripped. Copies are off by default, so a borrower template's user branch has to be turned on explicitly (by item, by milestone, or by the category toggle) before a copy is sent. Note that setting "categories.{category}.user.enabled" to true is a stored override that turns on copies of every borrower template in that category, not a reset — to return to the defaults (agent mail on, copies off), clear it with a null value instead. Requires write access to the entity (for a pair, to its loan). If the document changed underneath this request (another writer raced it), the call fails with a conflict — reload with get\_notification\_settings and retry.

**Who can call it:** Admin, CompanyAdmin, Agent, Processor, DualLicensedAgent

**Reads or writes:** writes; can delete, cost money or reach someone outside, so a client should ask first

**Availability:** only for companies with the borrower portal; hidden from callers in other companies.

| Input                | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| -------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `entityType`         | string          | REQUIRED. Which kind of entity to write settings for: "user", "client", "loanApplication", or "borrowerPair". See get\_notification\_settings for the distinction.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `entityId`           | string (uuid)   | REQUIRED. The Henge id (GUID) of the user, client, loan application or borrower pair named by entityType.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `operations`         | array of object | REQUIRED. One or more edits to apply at this level in a single atomic write. Only the categories named are touched; every other category is left as-is. If the underlying document changed since it was last read (another writer raced this one), the call fails and must be retried after reloading with get\_notification\_settings.                                                                                                                                                                                                                                                                                                                                                             |
| `operations[].path`  | string          | REQUIRED. Which value to change, dot-delimited: "categories.{category}.{client\|user}.enabled" to toggle an entire category for one recipient branch, or "categories.{category}.{client\|user}.items.{templateKey}" to toggle a single template within a category. category is one of status, marketing, documents, tasks, rateLock, submission (transactional is never configurable). The "user" branch only applies to entityType "user" — a "client" or "loanApplication" document only has a "client" branch and a ".user." path against one of those is rejected. templateKey accepts either casing (e.g. BorrowerLoanClosedEmail or borrowerLoanClosedEmail) from get\_notification\_catalog. |
| `operations[].value` | boolean         | true to enable, false to disable, or null to clear this level's override so it inherits from the next level up again.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.hengelending.com/mcp/tool-reference/notification-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
