> 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/loan-applications.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Loan applications

Find, read, create, update and submit loan applications, and their contacts, notes, activity and print forms.

{% 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 %}

## add\_loan\_application\_contact

Add a third-party contact (a listing or buyer agent, escrow, title, attorney, insurance, seller, appraiser and so on) to a Henge loan application, under a role chosen from a fixed list. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. role is REQUIRED (call list\_loan\_application\_contact\_roles for the roles that can be added); Other also needs otherRoleName. Send the name or companyName (at least one) and any of email, phone, cellPhone, fax, address (street, city, county, state, zip), notes, agent and company NMLS and licence numbers, and the relationship flags isOriginator, isLender, isLenderAffiliate and isOriginatorAffiliate. Roles the LOS assigns to a user (Loan Officer, Processor, Underwriter, Manager and the other staff and desk roles) and the Lender and Broker roles are REFUSED, as is the obsolete HomeOwnerInsurance (use HazardInsurance). An email on the excluded contact list is refused. Adding a party the loan already holds (same role, name, company and email) writes nothing and returns the existing contact, so a retry does not duplicate it; a different party in the same role is added. The contact is WRITTEN TO THE LOAN ORIGINATION SYSTEM in this call, then the loan's stored contacts are refreshed from it, and the loan's activity log records it. Returns the contact as the LOS reads it back, with its externalId. update\_loan\_application\_contact still refuses a contact whose isLender is true, so a lender flag set by mistake is fixed by removing the contact and adding it again. Admin and Processor only.

**Who can call it:** Admin, Processor

**Reads or writes:** writes

| Input                   | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `role`                  | string        | REQUIRED. The contact's role, by ContactRole name, e.g. ListingAgent, BuyerAgent, Escrow, Title, HazardInsurance, Attorney or Other. Call list\_loan\_application\_contact\_roles for the roles that can be added: staff and desk roles (Processor, Underwriter, Loan Officer...), Lender and Broker roles are refused. One of `Other`, `Appraiser`, `Escrow`, `CreditReport`, `Title`, `MortgageInsurance`, `ListingAgent`, `SellingAgent`, `Builder`, `Underwriter`, `Investor`, `Servicing`, `BuyerAttorney`, `SellerAttorney`, `HomeOwnerInsurance`, `HazardInsurance`, `MarketingLead`, `Seller`, `Surveyor`, `LoanOfficer`, `Bank`, `Lender`, `Processor`, `CallCenterAgent`, `LoanOpener`, `Manager`, `Broker`, `BrokerRep`, `ECOA`, `Realtor`, `Mortgagee`, `HomeOwnerAssociation`, `BuyerAgent`, `ClosingAgent`, `FairHousingLending`, `HomeInspection`, `FloodProvider`, `CreditReportAgency2`, `CreditReportAgency3`, `Shipper`, `BrokerProcessor`, `Trustee`, `Funder`, `PostCloser`, `Insuring`, `CollateralAgent`, `DocDrawer`, `PropertyManagement`, `TitleUnderwriter`, `CreditAuditor`, `DisclosureDesk`, `JuniorProcessor`, `JuniorUnderwriter`, `LegalAuditor`, `LoanOfficerAssistant`, `Purchaser`, `QCCompliance`, `Secondary`, `PestInspection`, `Subservicer`, `ExternalSecondary`, `ExternalPostCloser`, `LoanPurchasePayee`, `AppraisalManagementCompany`, `Referral`, `Notary`, `TaxServicer`, `SupervisoryAppraiser`, `Attorney`, `PropertyInspector`, `CPATaxPreparer`, `LockDesk`, `MortgageServiceOrganization`, `Verifications`, `TaxCollector`, `TaxTranscripts`. |
| `otherRoleName`         | string        | REQUIRED when role is Other: the role as it should read on the loan, e.g. 'Courier'. Ignored for any other role.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `name`                  | string        | The contact's own name. The contact needs a name or a companyName.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `companyName`           | string        | Company name. The contact needs a name or a companyName.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `email`                 | string        | Email address. An address on the excluded contact list is refused, since the contact would never read back.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `phone`                 | string        | The contact's direct phone.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `cellPhone`             | string        | Cell phone.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `fax`                   | string        | The contact's fax number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `street`                | string        | Street address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `city`                  | string        | City.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `county`                | string        | County.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `state`                 | string        | Two-letter state code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `zip`                   | string        | ZIP code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `notes`                 | string        | Free-text notes on the contact.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `agentNmls`             | string        | The contact's individual NMLS id.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `companyNmls`           | string        | The company's NMLS id.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `agentLicenseNumber`    | string        | The contact's state licence number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `companyLicenseNumber`  | string        | The company's state licence number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `isOriginator`          | boolean       | The contact is the loan originator. Default false.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `isLender`              | boolean       | The contact is the lender. Default false. A lender-flagged contact cannot be edited with update\_loan\_application\_contact.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `isLenderAffiliate`     | boolean       | The contact is an affiliate of the lender. Default false.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `isOriginatorAffiliate` | boolean       | The contact is an affiliate of the originator. Default false.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `externalId`            | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `loanApplicationId`     | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

## add\_loan\_note

Add an internal note to a loan, as the signed-in user, the way a loan officer or processor writes one in the loan's Notes panel. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. The note is visible to everyone internal who can see the loan and never to the borrower, and it is not sent to the LOS. body is plain text, 1 to 10,000 characters. Returns the saved note.

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

**Reads or writes:** writes

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `body`              | string        | REQUIRED. The note, plain text, 1 to 10,000 characters. It is saved as written by the signed-in user.                                                                                                                                                                                              |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## answer\_loan\_question

THIS CHANGES AN EXISTING LOAN. Answer, or change the answer to, a question task on a loan application, for example the 'Employment History Explanation' every borrower must answer before the loan can be submitted. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID, and the question by its task id (get\_loan\_application's sectionCompletion.blockers carry the taskId of each required question still outstanding; get\_loan\_application\_borrower\_tasks lists them all). Send shortAnswer for a short-answer question or yesNoResponse for a yes/no one; never invent an answer the borrower did not give. The task moves to Submitted. A borrower (Client) caller can answer only on a loan on which they are a borrower.

**Who can call it:** Admin, Agent, Client, Processor, CompanyAdmin, Assistant, ConciergeKey

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`            | string (uuid) | REQUIRED. The id of the question task, for example an 'Employment History Explanation' task. sectionCompletion.blockers carry it as taskId for a required question still outstanding; get\_loan\_application\_borrower\_tasks lists it too.                                                        |
| `yesNoResponse`     | boolean       | The answer to a yes/no question. Send this or shortAnswer, whichever the question asks for.                                                                                                                                                                                                        |
| `shortAnswer`       | string        | The answer to a short-answer question, in the borrower's words. Send this or yesNoResponse, whichever the question asks for.                                                                                                                                                                       |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## create\_loan\_application

THIS CREATES A NEW LOAN APPLICATION AND EMAILS THE BORROWER. Create a loan application for a borrower with a subject property address and a loan officer, without a MISMO file. Give the borrower's firstName, lastName and email (and phone if known) and no clientId: the loan officer's client with that email is used, or one is created, so do not call create\_client or search\_clients first. Pass clientId instead only to use a specific existing client; coBorrowers adds further borrowers the same way. This is the same create the Henge Partner API performs, and the borrower emails behave exactly as they do there: creating the loan always sends the borrower the welcome email and queues the further cascade of loan-application reminder emails, and there is no way to suppress or delay them. So confirm with the user before calling, and never call it speculatively or twice for the same borrower. The loan officer defaults to you and must be within your access scope (see search\_users); a clientId given must be within your scope too, and the client's owner becomes the loan officer. Nothing else is filled in: the 1003 starts empty apart from the borrower's name, email and phone and the property address. To create a loan from a MISMO 3.4 file instead, use import\_mismo\_loan\_application. Returns the new loan application id.

**Who can call it:** Admin, Agent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** writes

| Input                     | Type            | Description                                                                                                                                                                                                                                                                                         |
| ------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clientId`                | string (uuid)   | Optional. An existing Henge client (borrower) id, a GUID. Leave it out and give the borrower's firstName, lastName and email: the loan officer's client with that email is used, or one is created, so there is no need to look one up first. A client given here must be within your access scope. |
| `firstName`               | string          | The borrower's first name. Required when clientId is not given.                                                                                                                                                                                                                                     |
| `lastName`                | string          | The borrower's last name. Required when clientId is not given.                                                                                                                                                                                                                                      |
| `email`                   | string          | The borrower's email, which finds or creates their client. Required when clientId is not given.                                                                                                                                                                                                     |
| `phone`                   | string          | The borrower's mobile phone. Optional.                                                                                                                                                                                                                                                              |
| `coBorrowers`             | array of object | Optional. Further borrowers on the loan, each with a clientId or a firstName, lastName and email, matched or created the same way.                                                                                                                                                                  |
| `coBorrowers[].clientId`  | string (uuid)   | An existing client (GUID) within your access scope. Leave it out to give the details below instead.                                                                                                                                                                                                 |
| `coBorrowers[].firstName` | string          | First name. Required when clientId is not given.                                                                                                                                                                                                                                                    |
| `coBorrowers[].lastName`  | string          | Last name. Required when clientId is not given.                                                                                                                                                                                                                                                     |
| `coBorrowers[].email`     | string          | Email, which finds or creates the client. Required when clientId is not given.                                                                                                                                                                                                                      |
| `coBorrowers[].phone`     | string          | Mobile phone. Optional.                                                                                                                                                                                                                                                                             |
| `loanOfficerId`           | string (uuid)   | The loan officer (user GUID) to assign. Defaults to you. Must be a user within your access scope; get one from search\_users.                                                                                                                                                                       |
| `addressLine1`            | string          | Subject property street address, first line.                                                                                                                                                                                                                                                        |
| `addressLine2`            | string          | Subject property street address, second line (unit, suite).                                                                                                                                                                                                                                         |
| `city`                    | string          | Subject property city.                                                                                                                                                                                                                                                                              |
| `state`                   | string          | REQUIRED. Subject property state as a two-letter code, e.g. FL.                                                                                                                                                                                                                                     |
| `zipCode`                 | string          | Subject property ZIP code.                                                                                                                                                                                                                                                                          |

## create\_loan\_sandbox

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Make a sandbox of a loan: it copies the loan in the loan origination system as a test file with the loan's estimated closing date, and returns sandbox (id, copyLoanNumber, sandboxLoanApplicationId and sandboxLoanNumber, the loan id and loan number to work the sandbox by, status, expiresAt), the figures of the copy and of the loan (sandboxFigures, loanFigures) and cashToCloseMatches, which says whether the copy's cash to close equals the loan's. Check that figures match before editing; warnings lists anything the copy did not carry over. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Each call makes another copy: call list\_loan\_sandboxes first to reuse one. A loan that is itself a sandbox cannot be copied, and a fourth sandbox on a loan is refused: delete one or merge it first. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** writes

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                           |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.            |

## delete\_loan\_note

Delete an internal note on a loan. Allowed for the note's author, an Admin, or a CompanyAdmin of the loan's company (canDelete on get\_loan\_notes). The note disappears from the list but is kept, with who deleted it and when; there is no undelete through this server. Confirm with the user first.

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

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `noteId`            | string (uuid) | REQUIRED. The note, by the id get\_loan\_notes returned.                                                                                                                                                                                                                                           |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## delete\_loan\_sandbox

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Delete a sandbox: deletes its copy in the loan origination system and its change log. The loan is not touched; every edit made in the sandbox and not merged is lost. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Refused while a merge is requested: withdraw it first with withdraw\_loan\_sandbox\_merge. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

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

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## get\_broker\_request

Read one broker request in full: what was submitted, its header, attachments (names only), the id of its PDF in the loan's documents, its status and, once Underwriting has decided, the decision (outcome, date, who decided and the reviewer's comment). Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID, and the request by requestId from list\_broker\_requests. Read-only.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `requestId`         | string (uuid) | REQUIRED. The request's id (GUID), from list\_broker\_requests or from the result of a submit.                                                                                                                                                                                                     |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_broker\_request\_form

Read what a broker request needs before submitting one, for type Coc (change of circumstance) or Exception (exception request). Returns availability (Enabled, Disabled with the reason, or Hidden) so you can tell the user why a request cannot be made on this loan now; an Exception request is offered on a non-QM loan only, and a change of circumstance only from Processing to Clear to Close (or earlier once the loan has a file in the LOS). The Coc form also returns the choices for each axis, each as a code and a name: changedCircumstances (pick at least one), changeRequestTypes (BorrowerRequested or Other) and disclosureReasons (optional), plus the two attestation texts the broker must confirm and the accepted attachment extensions. Both forms return the read-only header built from the loan (broker, company, loan officer, borrowers, property, loan number). Ask the user for the choices; do not guess them. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Read-only.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`              | string        | REQUIRED. The request type to read the form for: Coc (change of circumstance) or Exception (exception request, offered on a non-QM loan only).                                                                                                                                                     |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_activity

Retrieve a page of a loan application's activity history, newest first: the audit trail shown on the loan's Activities tab in the web app. Use it to explain what happened on a file and when. Identify the loan by its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. Each entry has timestampUtc, who made the change (first and last name; internal callers also get the user id and email) and changes, a list of plain-language descriptions such as "Loan Amount was updated from '300000' to '320000'", "Document uploaded - W-2" or "Condition note added - Appraisal". Optionally filter with searchText (case-insensitive substring of the change text). totalCount is the number of matching entries across every page; page with skip and top. A borrower (Client) caller can read only loans on which they are a borrower and sees what the borrower's Activities tab shows: the date, the name and the change text, never the user id or email, and no entry without change text. An entry made through MCP also carries, for an internal caller, an agent object: the tool, OAuth client, outcome, time, and what the client said about itself (agent, platform, sessionId, taskId, requestedBy, requestedByName, and asked, what it says it was asked) and statedReason. These are stated by the client, not proven: read statedReason beside what changed, never in place of it. For an internal caller an entry also carries subjects, the items the change touched (type Task, Document, Liability, Asset or LosField, with id and name; a condition and an application section are tasks), when the entry recorded them, values, what the change did to each field it touched, when the entry recorded it (each has field, a plain label such as Wording, Due date, Status or an LOS field's label, oldValue and newValue, the value before and after, null when the field held nothing, and subjectType and subjectId, the type and id of the item in subjects the field belongs to; a value is cut to 500 characters with an ellipsis; a document event has none and keeps its own eventType, oldValue and newValue; changes stays the sentence), automation, the name of the automatic check that wrote it, and observation, true when the entry records something read or checked (a document's text read and indexed, a document checked) and changed nothing. For an internal caller, an entry with source LOS may come from the LOS's own audit log: it then carries losUserName, the LOS user who made the change, as a name only, and losCategory, such as Field Change or Loan Status; the audit log covers the fields the lender's LOS tracks and not documents or conditions. A change made through Henge is also in that log under Henge's integration account, so those rows are left out unless includeLosOwnChanges is true, when they carry losOwnChange true.

**Who can call it:** Admin, Agent, Processor, CompanyAdmin, Assistant, ConciergeKey, Client

**Reads or writes:** reads only

| Input                  | Type          | Description                                                                                                                                                                                                                                                                                        |
| ---------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `searchText`           | string        | Optional text to search for within the change descriptions, e.g. "appraisal" or "Loan Amount". Case-insensitive substring match. Omit to page through the whole history.                                                                                                                           |
| `skip`                 | integer       | Number of entries to skip, for paging. Defaults to 0.                                                                                                                                                                                                                                              |
| `top`                  | integer       | Number of entries to return. Defaults to 20, at most 100.                                                                                                                                                                                                                                          |
| `includeLosOwnChanges` | boolean       | Optional. Set true to also return the LOS audit log rows made by Henge's own integration account: a change made through Henge that the LOS logs again under that account. They duplicate Henge's own entry for the change, so they are left out by default.                                        |
| `externalId`           | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`    | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_agent\_work

Retrieve what AI agents and automatic checks did on a loan application, grouped by sitting, newest first. Use it before acting on a loan another agent has worked, or to answer who changed a condition, document, liability, asset or LOS field and why. Identify the loan by its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. Each item of work is one sitting: one agent session, or a run of MCP changes by the same sign-in, or the entries one automatic check wrote together. It has kind (Agent or Automatic), agent (the name the client gave itself, null when it gave none; the check's name for Automatic), platform, actingUserName (whose sign-in made the changes), requestedBy and requestedByName (who asked the agent), asked (what the agent says it was asked at the start of the sitting), queuedTaskId (the agent's own queue task, not a loan task), sessionId, startedUtc, endedUtc and steps, oldest first. Each step has timestampUtc, changes (the same plain-language text as get\_loan\_activity), subjects (the items it touched: type Task, Document, Liability, Asset or LosField, with id and name; a condition, a document request and an application section are all tasks), values (what the change did to each field it touched, when the step recorded it: each has field, a plain label such as Wording, Due date, Status or an LOS field's label, oldValue and newValue, the value before and after, null when the field held nothing, and subjectType and subjectId, the type and id of the item in subjects the field belongs to; a value is cut to 500 characters with an ellipsis), eventType, oldValue and newValue on a document event, statedReason, toolName and outcome (Success or Error), and on automatic work automation (the check that made the step), observation (true when the step only read or checked something, such as a document's text being read and indexed, and changed nothing) and aiCallId (the model call behind it, when there was one). marks lists the items whose latest recorded change is an agent's or a check's, with the ids of the changes made since anyone else changed the item; a step that is an observation never puts an item there. Give subjectType and subjectId to get only the work that touched one item. agent, platform, requestedBy, requestedByName, asked and statedReason are what the client said, not proven: read statedReason beside what changed, never in place of it. Each step has kind: Write, or Read for a read call (an MCP read tool) of the same session on the loan, which has only toolName and timestampUtc. A write call that failed before it wrote an activity entry is a Write step with outcome Error, its toolName and statedReason and no changes; no error message is stored, so none is returned. readOnlySittings counts the sittings that only read and changed nothing (not listed), and olderCallsOmitted is true when the loan has more call records than one lookup reads. Reads never put an item in marks. Tool arguments and results are never returned.

**Who can call it:** Admin, Agent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** reads only

**Availability:** only where the `agent-work` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                 |
| ------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `subjectType`       | string        | Optional, with subjectId: return only the work that touched one item. One of Task (a condition, a document request, a question or an application section: all are tasks of the loan, and the id is the task's id), Document, Liability, Asset, LosField (the id is the LOS field id, e.g. sProHoAssocDues). |
| `subjectId`         | string        | Optional, with subjectType: the item's id, as the loan's task, condition, document, liability and asset lists return it.                                                                                                                                                                                    |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.          |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                  |

## get\_loan\_application

Retrieve a Henge loan application by either its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. Returns the full GetLoanApplicationResponse snapshot: borrowers, property, timeline, LOS type, and merged POS data when ExternalId is set on the row. Note two distinct type fields: loanInfo.loanType.name is the loan type (Conventional/FHA/VA/USDA/Rural Housing/Other), while loanInfo.mortgageLoanType is the product class held as a raw MLM code — the top-level mortgageLoanTypeName decodes it (e.g. "1" -> "PrimeConforming"), and is absent when the stored value is not a known code. Each entry of loanInfo.borrowers is one borrower pair (a loan holds up to four) with its coBorrower; every person carries pairIndex (0 is the primary pair), pairId and vestingType; loanInfo.trusts and loanInfo.finalVesting describe how title will be held. Every pair is written to the LOS and read back from it while borrower pairs are on (FeatureToggles:MultipleBorrowerPairs); with them off only the primary pair is read. Trusts and finalVesting are read from and written to the LOS when the loan-trusts release flag is on for the loan's company, and stay in Henge when it is off; vestingType has no LOS field and stays in Henge. Also includes sectionCompletion: a per-section report of the borrower wizard (About You, Loan & Property, Work & Income, Assets, Liabilities, Real Estate, Additional Details) with each section's status, the required fields that still have no value, rule violations, and overall submit readiness — use it to answer what remains to complete a section or submit the loan app. With multiple borrower pairs on, sectionCompletion covers every pair: each missing field and rule error carries its pairIndex and borrower role, pairs\[] groups them by pair, and a submit blocker for a later pair's gap carries that pairIndex (null on a loan-level blocker). loanInfo.credit is the loan's credit and its source: credit.source is "Report" when a credit report is on the loan and "Manual" when a broker entered scores, mortgage lates and public records by hand; credit.representativeScore is the score pricing uses; credit.manual holds the broker's entry with isCurrent false once a report replaced it. A broker-entered score is never a bureau score: do not report it as one. loanInfo.temporaryBuydown is the loan's temporary buydown as the LOS holds it: steps (rateReduction, months; empty slots left out), contributorType, totalFundsAmount, and the LOS's own hasTemporaryBuydown, totalMonths and resultRate. each loan estimate and closing disclosure in loanTimeline.disclosureTracker carries its archive (archiveId, archiveDate; null for a hand-entered one), its transactionId (also on the e-sign package it was sent in) and the isInitial, isManual and isValid flags (a disclosure the LOS marks not valid stays in the list), and a closing disclosure also isFinal, isPreview and isPostClosing. loanTimeline.signaturePackages answers which disclosure packages are out and who has signed each: one entry per package sent from the LOS for signature (packageId, name, sentTimestamp, status Signed or AwaitingSignature, signedTimestamp once signed) with its signers (name, role Borrower or LoanOfficer, signedTimestamp, null until that signer has signed), packages awaiting a signature first; this is the loan's own record and nothing is read from the e-sign vendor, so a package that was cancelled is not marked and still reads AwaitingSignature: for the vendor's status, whether a package was cancelled and when each signer was invited, consented and opened it, call get\_loan\_signature\_packages, the live answer. A borrower (Client) caller can read only loans on which they are a borrower.

**Who can call it:** Admin, Processor, CompanyProcessor, DualLicensedAgent, ConciergeKey, Agent, Client

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_application\_contacts

Retrieve the contacts saved for a Henge loan application, synced from MLM - realtors, title, escrow, attorneys, insurance, appraisers, verifications and anyone else the LOS holds for the loan. Identify the loan by either its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. Optionally filter by contact role names; omit roles to return all saved contacts. Each contact includes role, roleName, name, email, phone, company, NMLS and address. Prefer roleName when showing a role to a person: it is the label MLM itself uses and stays correct for roles the role code does not name. A contact may legitimately have no email address. Admin and Processor can set includeSystemContacts to also see the hidden system-created rows (the API Integration agents), read live from the LOS.

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

**Reads or writes:** reads only

| Input                   | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `roles`                 | array of string | Optional contact role names to filter by, e.g. \["BuyerAgent", "Escrow"]. Any ContactRole name is accepted - common ones include BuyerAgent, ListingAgent, Attorney, BuyerAttorney, SellerAttorney, Escrow, LoanOfficer, CPATaxPreparer, HomeOwnerInsurance, HazardInsurance, Appraiser, Title, Verifications and Other. Case-insensitive. Omit or leave empty to return every saved contact for the loan. |
| `includeSystemContacts` | boolean         | Admin and Processor only. true reads the contacts live from the LOS and also returns the system-created rows normally hidden (the API Integration agents), each marked isSystemCreated: true. Nothing is stored. A loan not linked to the LOS, or a failed LOS read, is an error, not an empty list. Any other role asking for it is refused. Default false: the hidden rows stay hidden.                  |
| `externalId`            | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                         |
| `loanApplicationId`     | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                 |

## get\_loan\_appraisal\_requests

Read a loan's appraisal requests, newest first, and whether one can be made now. available is false, with unavailableReason ("Available once the initial LE is signed."), until the loan's initial Loan Estimate is signed; request\_loan\_appraisal is refused until then. Each request has requestedAtUtc, requestedByName, sentToEmail (who processing's email went to) and rush. A request does not carry the contact, the due date or an order's status yet: the link from a request to its vendor order is not built, so this returns the requests alone. It never returns a vendor login or a payment link. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_chat\_summary

Retrieve the assistant-maintained rollup summary of your dedicated chat about one loan, by MLM ExternalId (preferred) or internal Henge GUID. The loan-chat roster in your context lists which loans have one. Returns the loan header (number, status, borrowers), when the chat was last active, and the narrative summary (key facts, decisions, open items, preferences). Only your own loan-chat summaries are readable. Use this before answering questions that span loans or reference an earlier loan conversation.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                              |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | MLM loan number (ExternalId) of the loan whose chat summary to fetch. Preferred when the loan is in MLM. |
| `loanApplicationId` | string (uuid) | Internal Henge loan application GUID; alternative to externalId.                                         |

## get\_loan\_file\_summary

Compile a full file review of ONE loan in a single call — the deal-desk-style write-up a loan officer or processor would otherwise assemble by hand. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID. Returns: loanStructure (purpose, type, program, amounts, rate, term, collateral, lock, proposed PITI); borrowers\[] (every person on the loan, co-borrowers included, ordered by pair with the primary first, each with its pairIndex; employment and income breakdown, other income, assets, liabilities, REO, credit scores); totals (income, assets, liabilities rolled up across all of them); ratios (MLM's front/back DTI, LTV/CLTV/HCLTV, qualifying rate and payment, payment shock); needsList (open underwriting conditions, borrower to-dos and internal user tasks, with overdue counts); and gaps (the borrower-wizard section completion report, which covers every borrower pair when multiple pairs are on and tags each entry with its pairIndex, plus computed findings for blank required data, figures that do not reconcile and dates that do not line up). Use this instead of chaining get\_loan\_application + get\_loan\_application\_conditions + the task tools when the ask is 'review this file', 'summarize this loan', 'what's missing on this loan' or a deal-desk analysis. The result is evidence, not a verdict: it flags gaps but applies no investor guideline — check program rules with search\_loan\_guidelines. NOTE: this is NOT the pricing-scenario Deal Desk (exception-pricing review).

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_note\_history

Return an internal note's current text and its earlier versions, newest first, each with who changed it (editedByName) and when. Use it when get\_loan\_notes shows isEdited.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `noteId`            | string (uuid) | REQUIRED. The note, by the id get\_loan\_notes returned.                                                                                                                                                                                                                                           |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_notes

Return a loan's internal notes, newest first: what the team has written down about the file. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Notes are internal only (borrowers never see them) and live only in Henge, not the LOS; they are not MLM condition notes. Each note carries id, body, createdByName, createdAt, updatedAt, isEdited (true once its author changed it; get\_loan\_note\_history shows the earlier text), and canEdit / canDelete for the signed-in user. Paged: page (default 1) and pageSize (default 50, max 200); totalCount is the number of notes across all pages.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `page`              | integer       | 1-based page. Defaults to 1.                                                                                                                                                                                                                                                                       |
| `pageSize`          | integer       | Notes per page, 1 to 200. Defaults to 50.                                                                                                                                                                                                                                                          |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_orders

Read a loan's orders. An order is the loan team's record of something asked of an outside party (appraisal, title, flood certificate, payoff, insurance, closing documents and so on). orders is the Order Outs tracker: one row per order type, in the web app's order, with code, name, orderedDate, dueDate, documentDate, receivedDate and comment, and, for a row that has an order, id, status, source, vendorName and orderNumber. Rows with no order yet are returned too (id is null), so every code update\_loan\_order can write is listed. Send includeAll (or type, or status) to also get allOrders: every order on the loan, with re-orders and failed attempts, each with its activity. Vendor requests and responses and vendor logins are never returned, and a link in an activity message reads \[link removed]. A row's comment is returned as the web app shows it. Dates are YYYY-MM-DD. Reading changes nothing. The rows are Henge's copy, as the web app shows them, and can be behind the LOS. For a loan in the LOS they are compared with what the LOS holds now (comparedWithLos true): a row lists under losDifferences each field the LOS holds a different value for (los is the LOS's value, null when it holds nothing), and a row without losDifferences matches the LOS. Where they differ, the LOS value is the one update\_loan\_order replaces, so build a comment on it, not on the row's. An order imported from a file is never sent to the LOS, so a field the LOS holds nothing for is not listed for it. When the LOS read fails (losReadIssue says why) or the loan is not in the LOS yet, the rows are not compared. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

**Who can call it:** Admin, Agent, Processor, ConciergeKey

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeAll`        | boolean       | Optional. True to also return allOrders: every order on the loan (re-orders, failed attempts, each with its activity), newest first. Defaults to false, or true when type or status is sent.                                                                                                       |
| `type`              | string        | Optional. Narrows allOrders to one order type, e.g. AppraisalReport (the row codes, plus CreditReport and IncomeVerification; case-insensitive, an unknown type is refused). Does not narrow the rows.                                                                                             |
| `status`            | string        | Optional. Narrows allOrders to one status: Draft, Submitting, Submitted, Ordered, InProgress, Received, Completed, Failed, Cancelled or Unconfirmed. Does not narrow the rows.                                                                                                                     |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_print\_form

Print a loan form as the PDF the LOS renders: the 1003 (Uniform Residential Loan Application), the 1008 (Uniform Underwriting and Transmittal Summary), the Approval Certificate, or any other form in the LOS's print catalogue. Identify the loan by its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID, and name the form: "1003", "1008", "approval", or the form value list\_loan\_print\_forms returns (call it with catalog true to find one). The 1003 can be printed once the loan is in the LOS, the 1008 and the Approval Certificate once the loan is approved, the Initial Fees Worksheet (InitialFeesWorksheet) once it is pre-approved; otherwise the call fails with the reason, and nothing is printed for a loan not yet in the LOS. A PDF up to about 1 MB comes back as an embedded application/pdf resource. A larger one comes back as a resource link to the Private API endpoint that serves it: call get\_api\_access\_token and send its short-lived token as the Bearer header to download it. an LOS failure returns an upstream error, never a partial document.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `form`              | string        | The form to print: "1003" (the Uniform Residential Loan Application), "1008" (the Uniform Underwriting and Transmittal Summary), "approval" (the Approval Certificate), or any form value from list\_loan\_print\_forms with catalog true. Anything else is rejected.                              |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## get\_loan\_sandbox\_difference

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Read what differs between a loan and one of its sandboxes now. differences lists the changes (a label, the loan's value and the sandbox's; a record or fee only in the sandbox is Added, one only on the loan Removed); followingValues lists the values the loan origination system worked out from those changes, with followingValueCount; sandboxFigures and loanFigures are the headline figures of each side (LTV, DTI, payment, cash to close); mergeCheck is the latest merge check kept with the sandbox (null while none was run, outOfDate once either side changed); mergeRequest is the staged request when a merge is requested; changes is the log of edits made through the sandbox and hiddenDifferenceCount and hiddenChangeCount count what the caller's role may not see (compensation, lock desk and internal items are shown to Admin and Processor only). An SSN or date of birth is listed as changed, without values. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** reads only

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## get\_loan\_sandbox\_merge

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Read a sandbox's requested or finished merge, the page a reviewer decides from. Returns the staged changes with each one's decision (differences; each has an id, the changeId review\_loan\_sandbox\_merge takes), the figures of the loan now (loanFigures), of the sandbox (sandboxFigures) and of the loan when the merge was requested (loanFiguresAtRequest), the latest merge check (mergeCheck) and merges, the record of every merge so far: who requested, who merged, what landed and what did not. Admin and Processor see all of it; any other role reads it without compensation, lock desk and internal items (counted in hiddenDifferenceCount) and without the merge check. Not found while no merge was requested. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** reads only

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## list\_broker\_requests

List every broker request ever made on a loan (change of circumstance and exception requests), newest first, grouped by the UTC day submitted, whichever way it was submitted, the web app included. Each has its type, status (Submitted, Accepted or Declined), who submitted it and when, what it asked for, and, once Underwriting has decided, the decision: outcome, date, who decided and the reviewer's comment. Use it to answer where a prior change of circumstance stands. With type, the list is limited to that type and availability says whether that action is offered on the loan now. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Read-only.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`              | string        | Optional. Limit the list to one request type, Coc or Exception; the result then also says whether that action is offered on the loan now.                                                                                                                                                          |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## list\_loan\_application\_contact\_roles

List every contact role a loan can hold, for add\_loan\_application\_contact: each role's code, name (the value to send as role), label (what the LOS shows for it), canAdd (false for staff, lender, broker and obsolete roles, with refusedReason saying why) and onLoan (whether the loan already holds a contact in that role). Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID. Admin and Processor only.

**Who can call it:** Admin, Processor

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## list\_loan\_print\_forms

List the forms a loan can be printed as and whether each can be printed yet, with the reason when it cannot. Identify the loan by its MLM ExternalId (preferred when the loan is in MLM) or its internal Henge GUID. Returns the 1003 and the 1008 unless forms names others; set catalog to true for every form in the LOS's print catalogue (disclosures, worksheets, letters, the Approval Certificate and more). Each entry has form (the name to pass to get\_loan\_print\_form), pdfName, description, isAvailable and unavailableReason. The 1003 is available once the loan is in the LOS; the 1008 and the Approval Certificate once the loan is approved; the Initial Fees Worksheet (InitialFeesWorksheet) once it is pre-approved. Superseded form revisions are left out and cannot be printed.

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

**Reads or writes:** reads only

| Input               | Type            | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `forms`             | array of string | Forms to report on, each a short name ("1003", "1008", "approval" for the Approval Certificate) or an LOS print form name from the catalogue. Omit for the 1003 and the 1008. Ignored when catalog is true. An unknown or obsolete name is rejected.                                               |
| `catalog`           | boolean         | True to list every form the LOS can print for this loan (about 200), each with its availability. Use it to find a form's name before printing it.                                                                                                                                                  |
| `externalId`        | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## list\_loan\_sandboxes

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. List a loan's sandboxes. Each entry has id (the sandboxId the other sandbox tools take), sandboxLoanApplicationId and sandboxLoanNumber (the sandbox loan's own id and loan number: pass the id to the loan tools to work the sandbox), copyLoanNumber, status (Open or Submitted) with statusLabel (Open or Merge requested); a sandbox whose merge has been applied is no longer listed, createdAt, expiresAt, who requested a merge and when (mergeRequestedByUserId, mergeRequestedAt) and changeCount (the number of changes against the loan as of the last comparison; null when none is kept, and get\_loan\_sandbox\_difference counts again). Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Giving a sandbox loan's own id lists the sandboxes of the loan it was made from. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** reads only

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                           |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.            |

## remove\_loan\_application\_contact

Remove one contact from a Henge loan application, whatever its role, flags or who added it. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID, and the contact by its externalId from get\_loan\_application\_contacts. The contact is REMOVED FROM THE LOAN ORIGINATION SYSTEM in this call and confirmed from a read-back, then the loan's stored contacts are refreshed, so it stays gone from get\_loan\_application\_contacts even when it was imported; the loan's activity log records the contact and role. An imported contact the LOS never reported (or any imported contact on a loan not yet in the LOS) is removed from the stored copy only, with nothing written to the LOS. The loan's assignments are NOT changed: removing a Loan Officer, Loan Officer Assistant or Broker contact leaves who is assigned to the loan, and the LOS may add the record back the next time the assignment is written. The LOS does not protect Lender or Mortgagee contacts, so removing one removes it for real: check the name and role you are removing. The API Integration rows the LOS creates (returned by get\_loan\_application\_contacts with includeSystemContacts, isSystemCreated: true) can be removed by their externalId like any other contact; the removal is confirmed from a read-back, but the LOS may add such a row back, so check the contacts again later. A contact not on the loan is reported as not found, so repeating a call removes nothing more. If the loan's contacts are being updated, try again in a moment. Returns the contact that was removed, whether it was removed from the LOS, and notes. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contactId`         | string (uuid) | REQUIRED. The contact's externalId (GUID), from get\_loan\_application\_contacts on the same loan.                                                                                                                                                                                                 |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## request\_loan\_appraisal

Request an appraisal on a loan. This EMAILS the order details to the loan's processor (else the company's processing mailbox) and logs an activity entry on the loan, exactly as the web app's Request Appraisal does; a second call sends a second email. CONFIRM THE CONTACT (name, phone, email) AND THE DUE DATE WITH THE USER BEFORE CALLING, and say whether it is a rush. Required: contactName and contactPhone. Optional: contactEmail, requestedDueDate (after today), rush and accessNotes. The property address, borrowers and loan number come from the loan, never from this call. Refused with "Available once the initial LE is signed." until the loan's initial Loan Estimate has a signed date; read get\_loan\_appraisal\_requests first to see whether it is available. This sends the request only: it does not place the order with the appraisal vendor. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** writes

| Input               | Type               | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contactName`       | string             | REQUIRED. Who the appraiser contacts to get into the property (up to 100 characters).                                                                                                                                                                                                              |
| `contactPhone`      | string             | REQUIRED. The contact's phone number.                                                                                                                                                                                                                                                              |
| `contactEmail`      | string             | Optional. The contact's email address.                                                                                                                                                                                                                                                             |
| `requestedDueDate`  | string (date-time) | Optional. The date the appraisal is wanted by, after today (ISO 8601, for example 2026-12-15).                                                                                                                                                                                                     |
| `rush`              | boolean            | Optional. True to mark the request as a rush. Defaults to false.                                                                                                                                                                                                                                   |
| `accessNotes`       | string             | Optional. Anything the appraiser needs to get in, such as a gate code (up to 1000 characters).                                                                                                                                                                                                     |
| `externalId`        | string             | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid)      | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## request\_loan\_sandbox\_merge

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Request the merge of a sandbox into its loan. It marks the sandbox Merge requested, records who asked and when, stages the difference for the reviewer and runs the merge check. Returns the difference as get\_loan\_sandbox\_difference does: differences (the staged changes), followingValues, figures on both sides, mergeCheck and mergeRequest. The loan is not changed by this call: an Admin or Processor decides each change with review\_loan\_sandbox\_merge. The sandbox is read only until the request is withdrawn (withdraw\_loan\_sandbox\_merge) or declined. A sandbox that does not differ from its loan is refused, and so is a second request. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** writes

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## request\_locked\_rate\_row

Ask for another row of a locked loan's rate sheet (the ladder on get\_loan\_registration) by filing a change of circumstance request to the lender's Underwriting team, pre-filled with the current and the requested rate and price. THIS DOES NOT MOVE THE RATE: nothing is written to the LOS and the selected row stays as it is until the lender's Admin or Processor moves it. A SUBMISSION CANNOT BE EDITED OR WITHDRAWN and a retried call files a second request, so CONFIRM WITH THE USER BEFORE CALLING, and confirm the row first: read the ladder with get\_loan\_registration, show the user the current and the requested rate, price and payment and get a yes, and have them confirm the two attestations (attestsSubmittedWithin24Hours and attestsNoRevisedLeIssued, both must be true, only because the user has confirmed them) and when they received the information (receivedAt, with its UTC offset). Send quoteId from ladder.rows. The row must be in the rate sheet kept at the lock, have the locked lock period and not be the selected one; otherwise the error says why and nothing is filed. Refused saying the loan has no ladder when it has no kept rate sheet or the feature is off. Returns the request, whose id you can follow with get\_broker\_request. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** writes

| Input                           | Type               | Description                                                                                                                                                                                                                                                                                        |
| ------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `quoteId`                       | string             | REQUIRED. The row to ask for: the quoteId of one of ladder.rows from get\_loan\_registration. It must be a row of the locked lock period and not the selected one.                                                                                                                                 |
| `note`                          | string             | Optional. The broker's own words, added to the change of circumstance's description after the current and requested rate and price.                                                                                                                                                                |
| `attestsSubmittedWithin24Hours` | boolean            | REQUIRED, must be true. As on submit\_change\_of\_circumstance\_request: have the user confirm it; never assume it.                                                                                                                                                                                |
| `attestsNoRevisedLeIssued`      | boolean            | REQUIRED, must be true. As on submit\_change\_of\_circumstance\_request: have the user confirm it; never assume it.                                                                                                                                                                                |
| `receivedAt`                    | string (date-time) | REQUIRED. When the broker received the information behind the request, ISO 8601 date and time WITH its UTC offset, e.g. 2026-11-20T14:30:00-08:00.                                                                                                                                                 |
| `externalId`                    | string             | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`             | string (uuid)      | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## review\_loan\_sandbox\_merge

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Decide a requested merge. Admin and Processor only. Either MERGE it: send decisions, one per staged change (changeId from get\_loan\_sandbox\_merge, decision Accepted or Rejected), or acceptAll for the changes not yet decided. Accepted changes, added and removed records and fee changes are WRITTEN TO THE LOAN through its ordinary writes and read back (landed). THIS CALL ONLY PREVIEWS FIRST: without confirmationToken, or when it no longer matches, nothing is written and the answer is a preview (isPreview true: previewChanges with each change's current loan value, new value and outcome, what would be held or refused, the figures, the merge check, and a confirmationToken). SHOW THE PREVIEW TO THE USER AND GET A YES, then call again with the same decisions (or acceptAll) and that confirmationToken to write them. The token stops matching when the decisions, the sandbox or the loan change; you then get a new preview, and a new yes is needed. A change with outcome DecidedAtWrite (a property tie, or a mortgage insurance premium or loan setup field on a loan that may be rate-locked) is decided only when it is written: the preview cannot say whether it is written, held or refused, so tell the user it may not be applied, and it is counted in neither accepted nor undecided in the preview. A decline needs no token. A value the loan was given since the request is not written: it comes back in movedOnLoan and is written only when a later decision sends it back as loanValueSeen. An identity or account number, which cannot be compared, needs confirm true on its decision and is never in the response. What could not be written is named with its reason (notKept). A change not on the loan and not rejected stays undecided (notApplied) and the sandbox is kept; when nothing is left the sandbox and its copy are deleted (copyDeleted). The merge check is kept with the merge and does not block it. Or DECLINE it: send declineReason, without decisions or acceptAll; the sandbox is open and editable again and the requester is given the reason. Returns accepted, rejected and undecided counts with the figures on both sides for a merge, or the sandbox for a decline. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Refused when no merge is requested or it was already merged.

**Who can call it:** Admin, Processor

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

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input                       | Type            | Description                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `decisions`                 | array of object | One decision per staged change you are deciding now. Changes you leave out stay undecided and the sandbox is kept.                                                                                                                                                                                                                                                                   |
| `decisions[].changeId`      | string (uuid)   | The id of the staged change, from the differences of get\_loan\_sandbox\_merge.                                                                                                                                                                                                                                                                                                      |
| `decisions[].decision`      | string          | Accepted writes the change to the loan; Rejected leaves the loan as it is.                                                                                                                                                                                                                                                                                                           |
| `decisions[].loanValueSeen` | string          | Only after a change was held because the loan was given a new value since the merge was requested: the loan's value the reviewer saw (movedOnLoan.loanNow of the earlier result; an empty string for empty). The change is written only while the loan still holds that value.                                                                                                       |
| `decisions[].confirm`       | boolean         | Set true to write a change whose loan value cannot be compared (an identity or account number, a date of birth, or an add that may already have been made). It is never set for you by acceptAll.                                                                                                                                                                                    |
| `acceptAll`                 | boolean         | Set true to accept every change that has no decision yet (a decision you list for a change still wins). It never confirms an identity or account number.                                                                                                                                                                                                                             |
| `declineReason`             | string          | Set to decline the merge request instead of merging it: the reason the requester is given. The sandbox is open and editable again. Send it without decisions and acceptAll.                                                                                                                                                                                                          |
| `confirmationToken`         | string          | The confirmationToken of the preview of these same decisions, sent only after the user said yes to that preview. Leave it out to get the preview: nothing is written without it, or when it no longer matches because the decisions, the sandbox or the loan changed.                                                                                                                |
| `sandboxId`                 | string (uuid)   | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`                | string          | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId`         | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## run\_loan\_sandbox\_merge\_check

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Run the merge check on a sandbox: what a merge would do to the loan. Returns overall (Green, Yellow or Red), ranAt and one row per check in checks, each with its result (Passed, Look, Failed or NotChecked), kind (Calculated or AiReview), a one-sentence finding and the values behind it. The checks are the ratios, cash to close, redisclosure and tolerance cures. The report is kept with the sandbox and shown by get\_loan\_sandbox\_difference, marked outOfDate once the sandbox or the loan changes; it is also run when a merge is requested. It does not block a merge and nothing is written to either loan origination system file. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Refused when the sandbox was already merged. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** writes

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |

## search\_loan\_applications

Search the loan applications you have access to by free-text (borrower first/last name or email, loan number, subject property street) AND/OR structured filters: statuses, purposes, status-date range, closing-date range, loan-amount range, commission (locked compensation) range, and referringAgentId. Provide searchText, one or more filters, or both. Returns a page of up to 5 lightweight loan summaries (loanApplicationId, MLM externalId, borrower name(s)/email(s), property address, loan status, created date), NOT the full loan. Sorted by orderBy (default newest first) and paginated via skip + the hasMore flag. To load a single loan's details, follow up with get\_loan\_application. NOTE: loan TYPE (FHA/VA/Conventional) is not filterable here (use report\_loans / query\_loans). Only loans within your access scope are returned. A borrower (Client) caller searches only the loans on which they are a borrower.

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

**Reads or writes:** reads only

| Input              | Type               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `searchText`       | string             | Free-text search. Matches (case-insensitive, partial) against a borrower's first name, last name, and email, and also against the loan number and subject property street. Whitespace-separated tokens must all match, so "jane doe" matches a loan whose borrower first name is Jane and last name is Doe. Optional when at least one structured filter (statuses, purposes, date range, amount, commission, referringAgentId) is supplied.                                                            |
| `statuses`         | array of string    | Filter to these loan statuses (exact MLM status names, OR'd), e.g. "Loan Funded", "Loan Closed", "Loan Underwriting". Matches each loan's CURRENT status only — closed loans usually move on to Sold/Purchased/Archived, so do NOT use this to find all loans that closed/funded in a period (use report\_loan\_milestones for counts, or include the later terminal statuses too). Loan TYPE (FHA/VA/Conventional) is NOT filterable here — use report\_loans / query\_loans for loan-type breakdowns. |
| `purposes`         | array of string    | Filter to these loan purposes (exact values), e.g. "Purchase", "Refinance".                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `referringAgentId` | string (uuid)      | Restrict to loans referred by this user id (GUID).                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `statusDateFrom`   | string (date-time) | Include loans whose CURRENT status was set on/after this date (ISO 8601). This is when the loan last changed status — NOT when it closed/funded; for "closed in period X" use report\_loan\_milestones.                                                                                                                                                                                                                                                                                                 |
| `statusDateTo`     | string (date-time) | Include loans whose CURRENT status was set on/before this date (ISO 8601). Use end-of-day to include a full day.                                                                                                                                                                                                                                                                                                                                                                                        |
| `closingDateFrom`  | string (date-time) | Include loans with a closing date on/after this date (ISO 8601). CAUTION: closingDate is sparsely populated (estimated closing date, unset on most loans) — a 0-loan result usually means missing data, not that nothing closed.                                                                                                                                                                                                                                                                        |
| `closingDateTo`    | string (date-time) | Include loans with a closing date on/before this date (ISO 8601). Same caution as closingDateFrom: sparsely populated.                                                                                                                                                                                                                                                                                                                                                                                  |
| `loanAmountMin`    | number             | Minimum loan amount in USD (inclusive).                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `loanAmountMax`    | number             | Maximum loan amount in USD (inclusive).                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `commissionMin`    | number             | Minimum locked compensation (commission) in USD (inclusive).                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `commissionMax`    | number             | Maximum locked compensation (commission) in USD (inclusive).                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `skip`             | integer            | Number of matching loans to skip before returning the page, for pagination. Defaults to 0. To page through results, keep searchText the same and request skip 0, then 5, then 10, and so on (one page size at a time). The response's hasMore flag indicates whether another page exists.                                                                                                                                                                                                               |
| `limit`            | integer            | Page size: the maximum number of loans to return in this page. Defaults to 5 and is capped at 10. Page through additional matches with skip rather than raising this.                                                                                                                                                                                                                                                                                                                                   |
| `orderBy`          | string             | Sort order for the results. Defaults to "createdtimestamp desc" (newest first). Supported values, each with "asc" or "desc": createdtimestamp, status, loannumber, loanofficer, referredbyagent, address, borrower. For example "borrower asc" or "status desc".                                                                                                                                                                                                                                        |

## sign\_off\_loan\_section

THIS CHANGES AN EXISTING LOAN. Sign off one section of a loan application (About You, Loan & Property, Work & Income, Assets, Liabilities, Real Estate, Additional Details) by completing its verification task. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID, and the section by its task id: read get\_loan\_application first, whose sectionCompletion lists every section with its status and missing fields, and whose sectionCompletion.blockers carry the taskId of each section not yet signed off. Refused while the section's required fields are unanswered: the error lists them as blockers (kind MissingFields, with missingFields), so fill them in with update\_loan\_application and try again. A staff sign-off is Accepted; a borrower's is Submitted. Returns the loan's completion report after the sign-off. A borrower (Client) caller can sign off only a loan on which they are a borrower.

**Who can call it:** Admin, Agent, Client, Processor, CompanyAdmin, Assistant, ConciergeKey

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`            | string (uuid) | REQUIRED. The id of the section's verification task (for example the 'About You Verification' task). get\_loan\_application's sectionCompletion.blockers carry it as taskId for every section not yet signed off; get\_loan\_application\_borrower\_tasks lists it too.                            |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## start\_loan\_application

THIS CHANGES AN EXISTING LOAN. Start a loan application the way the Henge web app does after the loan is created, so its 1003 can be filled in and its sections signed off. Run it once on a loan made by create\_loan\_application, before update\_loan\_application and sign\_off\_loan\_section. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID. It stores the form, keeps the borrower records and creates the seven section sign-off tasks. Starting a loan that is already started changes nothing and says so (started: false). It sends no borrower email and does not touch the LOS.

**Who can call it:** Admin, Agent, Processor, CompanyAdmin, Assistant, ConciergeKey

**Reads or writes:** writes

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## submit\_change\_of\_circumstance\_request

Submit a change of circumstance (CIC) request on a loan to the lender's Underwriting team. A SUBMISSION CANNOT BE EDITED OR WITHDRAWN and a retried call submits a second request, so CONFIRM WITH THE USER BEFORE CALLING: read the form with get\_broker\_request\_form (type Coc), ask the user for the changed circumstances, the change request type, an optional disclosure reason, the description, any fees and when the information was received (with its UTC offset), and show them the two attestations: attestsSubmittedWithin24Hours and attestsNoRevisedLeIssued must both be true, and only because the user has confirmed them. On success the request is stored, its PDF is filed to the loan's documents, Underwriting is notified by email and an activity is logged, exactly as a submission from the web app. The loan status is not changed, nothing is written to the LOS and no revised disclosure is issued; Underwriting decides later (see get\_broker\_request). Refused outside the stages the form says it is available in. Attachments (pdf, jpg, jpeg, png or docx) are passed inline as base64, at most 5 MB each. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** writes

| Input                           | Type               | Description                                                                                                                                                                                                                                                                                        |
| ------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `changedCircumstances`          | array of string    | REQUIRED. At least one changed circumstance, by code, from get\_broker\_request\_form with type Coc.                                                                                                                                                                                               |
| `changeRequestType`             | string             | REQUIRED. Who asked for the change, by code, from get\_broker\_request\_form: BorrowerRequested or Other.                                                                                                                                                                                          |
| `disclosureReason`              | string             | Optional. The TRID disclosure reason, by code, from get\_broker\_request\_form. Leave it out when unsure: Underwriting sets it if it accepts with re-disclosure.                                                                                                                                   |
| `description`                   | string             | REQUIRED. What changed and why, in the broker's words.                                                                                                                                                                                                                                             |
| `feeRows`                       | array of object    | Optional. The fees the change affects.                                                                                                                                                                                                                                                             |
| `feeRows[].fee`                 | string             | The fee's name.                                                                                                                                                                                                                                                                                    |
| `feeRows[].amount`              | number             | The fee's amount after the change.                                                                                                                                                                                                                                                                 |
| `feeRows[].reason`              | string             | Why the fee changed.                                                                                                                                                                                                                                                                               |
| `attestsSubmittedWithin24Hours` | boolean            | REQUIRED, must be true. The broker attests the request is submitted within 24 hours of receiving the information. Use the attestation text from get\_broker\_request\_form and have the user confirm it; never assume it.                                                                          |
| `attestsNoRevisedLeIssued`      | boolean            | REQUIRED, must be true. The broker attests no revised Loan Estimate has been issued for this change. Use the attestation text from get\_broker\_request\_form and have the user confirm it; never assume it.                                                                                       |
| `receivedAt`                    | string (date-time) | REQUIRED. When the broker received the information, ISO 8601 date and time WITH its UTC offset, e.g. 2026-11-20T14:30:00-08:00.                                                                                                                                                                    |
| `attachments`                   | array of object    | Optional. Files attached to the request as a whole, each passed inline as base64.                                                                                                                                                                                                                  |
| `attachments[].fileName`        | string             | REQUIRED. The file name including its extension (pdf, jpg, jpeg, png or docx), e.g. 'revised-appraisal.pdf'.                                                                                                                                                                                       |
| `attachments[].contentBase64`   | string             | REQUIRED. The file's bytes, base64-encoded (standard alphabet, no data: URL prefix). At most 5 MB once decoded.                                                                                                                                                                                    |
| `externalId`                    | string             | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`             | string (uuid)      | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## submit\_exception\_request

Submit an exception request on a NON-QM loan to the lender's Underwriting team, asking for the file to be allowed outside guidelines. A SUBMISSION CANNOT BE EDITED OR WITHDRAWN and a retried call submits a second request, so CONFIRM WITH THE USER BEFORE CALLING: read the form with get\_broker\_request\_form (type Exception) to see whether it is offered on this loan, and ask the user for the justification and any supporting files. On a loan that is not non-QM the request is refused. On success the request is stored, Underwriting is notified by email and an activity is logged, exactly as a submission from the web app; the loan is not changed and nothing is written to the LOS. Underwriting decides later (see get\_broker\_request). Attachments (pdf, jpg, jpeg, png or docx) are passed inline as base64, at most 5 MB each. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** writes

| Input                         | Type            | Description                                                                                                                                                                                                                                                                                        |
| ----------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `justification`               | string          | REQUIRED. Why the file should be allowed outside guidelines, in the broker's words.                                                                                                                                                                                                                |
| `attachments`                 | array of object | Optional. Files attached to the request as a whole, each passed inline as base64.                                                                                                                                                                                                                  |
| `attachments[].fileName`      | string          | REQUIRED. The file name including its extension (pdf, jpg, jpeg, png or docx), e.g. 'revised-appraisal.pdf'.                                                                                                                                                                                       |
| `attachments[].contentBase64` | string          | REQUIRED. The file's bytes, base64-encoded (standard alphabet, no data: URL prefix). At most 5 MB once decoded.                                                                                                                                                                                    |
| `externalId`                  | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`           | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## submit\_loan\_application

THIS SUBMITS THE LOAN AND CANNOT BE UNDONE HERE. Submit a loan application as it is stored. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID. A staff submit starts the loan in the LOS (MLM) and returns its loan number; a borrower (Client) submit sends it to their loan officer for review. Call get\_loan\_application first and submit only when sectionCompletion.isReadyToSubmit is true and the user has confirmed: the server refuses a submit until every section is signed off (sign\_off\_loan\_section), every section's required fields are answered (update\_loan\_application) and every required borrower task is done (answer\_loan\_question for questions). A refusal lists the blockers, each with its kind, section or task, taskId and missing fields, so act on them and try again. A loan already submitted is refused. A loan whose LOS file is held as a lead (isLosLead on get\_loan\_application: it has a loan number and is not submitted) is submitted onto the file it has, and keeps its loan number. A borrower can submit only a loan on which they are a borrower, and on a loan with more than one borrower pair only the primary pair's borrower.

**Who can call it:** Admin, Agent, Client, CompanyAdmin, Assistant, ConciergeKey

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## update\_loan\_application

THIS CHANGES AN EXISTING LOAN. Fill in or correct individual loan application (1003) fields: borrowers (names, contact, SSN, birth date, marital status, citizenship, dependents), addresses, employment and income, real estate owned, declarations, demographics, purchase price, down payment, subject property and loan terms. Identify the loan by MLM ExternalId (preferred) or internal Henge GUID, and send in 'changes' ONLY the fields to change: omitted fields are left as stored, a field sent as null is cleared. 'temporaryBuydown' (staff only, not a borrower) changes the loan IN THE LOS and may affect disclosures: confirm with the user before sending it; it is read back from the LOS and the call fails if the LOS does not hold what was sent. Read the loan with get\_loan\_application first: borrowers are addressed by their hdBorrowerId, and employers and real estate owned by their externalId (or index when they have none). A borrower entry without an id adds a co-borrower; remove: true removes the co-borrower (the primary borrower cannot be removed). The loan is saved exactly as the web app saves it, so a loan already in the LOS that is no longer editable is refused. Returns the loan as saved plus sectionCompletion, the report of what is still missing, so check it after each change. Liabilities and assets are not changed by this tool. Title vesting can be set too: trusts (at most two, replaced as a whole list; a trust party who is a borrower is named by hdBorrowerId), finalVesting, and each borrower's vestingType; with the loan-trusts release flag on for the loan's company trusts and finalVesting are written to the LOS and otherwise stay in Henge, and vestingType has no LOS field and stays in Henge. A borrower (Client) caller can update only a loan on which they are a borrower.

**Who can call it:** Admin, Agent, Client, Processor, CompanyAdmin, Assistant, ConciergeKey

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

| Input                                                                     | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `changes`                                                                 | object          | REQUIRED. The fields to change, and only those: an omitted field is left as stored, a field sent as null is cleared. Borrowers are addressed by hdBorrowerId (an entry without an id adds a co-borrower; remove: true removes one). Employers and real estate owned are addressed by externalId, or by index for a row that has none yet. Addresses, demographics, veteran detail, language and the income lists are replaced whole; declarations change answer by answer. trusts is replaced whole; finalVesting and each borrower's vestingType are single values. Liabilities and assets are not changed here.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.loanAmount`                                                      | any             | Base loan amount (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.loanTerm`                                                        | any             | Loan term in months (integer), e.g. 360. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.loanType`                                                        | any             | Loan type name (string), e.g. Conventional, FHA, VA, USDA. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.purpose`                                                         | any             | Loan purpose name (string), e.g. Purchase or Refinance. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.amortizationType`                                                | any             | Amortization type name (string), e.g. Fixed or ARM. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.lienPosition`                                                    | any             | Lien position name (string), e.g. FirstLien. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `changes.purchasePrice`                                                   | any             | Purchase price (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.downPayment`                                                     | any             | Down payment amount (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `changes.downPaymentPercentage`                                           | any             | Down payment as a percentage of the purchase price (number, 20 means 20%). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.subjectPropertyAddress`                                          | any             | Subject property address as a whole object { street, unitIdentifier, city, state, zipCode, county, countryCode }: it replaces the stored address entirely, because half an address names a place that does not exist. omit to leave unchanged; null is rejected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.appraisalValue`                                                  | any             | Estimated or appraised property value (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.propertyType`                                                    | any             | Property type name (string), e.g. SingleFamily, Condominium, TwoToFourUnit. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.occupancy`                                                       | any             | Occupancy name (string), e.g. PrimaryResidence, SecondHome, Investment. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.numberOfUnits`                                                   | any             | Number of units in the subject property (integer). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.cashOutAmount`                                                   | any             | Cash-out amount on a refinance (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.estimatedMonthlyMarketRent`                                      | any             | Estimated monthly market rent of the subject property (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.isRenovationLoan`                                                | any             | Whether the loan finances renovation work (boolean). null clears the answer; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `changes.isNewConstruction`                                               | any             | Whether the subject property is new construction (boolean). null clears the answer; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.isEmployeeLoan`                                                  | any             | Whether the borrower is an employee of the lender (boolean). true is refused: the loan system hides an employee loan from this integration, so set it there. null clears the answer; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.leadSource`                                                      | any             | Lead source (string). The loan system keeps only values on its own list; notKept in the response names one it did not keep. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers`                                                       | array of object | Changes to borrowers, each addressed by its id (hdBorrowerId from get\_loan\_application / GET loan-applications/{id}). A loan holds one primary borrower and at most one co-borrower. An entry without an id ADDS a co-borrower (refused if the loan already has one; firstName and lastName are required). An entry with an id and remove: true removes that co-borrower; the primary borrower cannot be removed. Omit to leave every borrower unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].id`                                                  | string (uuid)   | The borrower's hdBorrowerId (GUID). Omit to add a co-borrower.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `changes.borrowers[].remove`                                              | boolean         | true removes the co-borrower named by id. Only a co-borrower can be removed. Every other field is ignored when true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers[].firstName`                                           | any             | First name (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].middleName`                                          | any             | Middle name (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `changes.borrowers[].lastName`                                            | any             | Last name (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].suffixName`                                          | any             | Name suffix (string), e.g. Jr, III. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].birthDate`                                           | any             | Date of birth (string, yyyy-MM-dd). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].ssn`                                                 | any             | Social security number (string, digits; dashes are stripped). null clears it; omit to leave unchanged. The stored value is returned masked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].email`                                               | any             | Email address (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].homePhone`                                           | any             | Home phone (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].mobilePhone`                                         | any             | Mobile phone (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `changes.borrowers[].workPhone`                                           | any             | Work phone (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].maritalStatus`                                       | any             | Marital status name (string), e.g. Married, Separated, Unmarried. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `changes.borrowers[].citizenship`                                         | any             | Citizenship name (string), e.g. USCitizen, PermanentResidentAlien, NonPermanentResidentAlien. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `changes.borrowers[].numberOfDependents`                                  | any             | Number of dependents (integer). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.borrowers[].dependentAges`                                       | any             | Dependents' ages (string, comma-separated). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers[].isMilitary`                                          | any             | Whether the borrower has military service (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].vestingType`                                         | any             | How this person takes title (string): Individual, Trustee, Settlor, SettlorTrustee, TitleOnly, NonTitleSpouse or Other. null clears it; omit to leave unchanged. Has no LOS field: stays in Henge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `changes.borrowers[].currentAddress`                                      | any             | Current residence as a whole object { street, unitIdentifier, city, state, zipCode, county, countryCode, residencyType, residencyDurationInMonths, monthlyRent, startDate, endDate }: replaces the stored one entirely. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].mailingAddress`                                      | any             | Mailing address as a whole object { street, unitIdentifier, city, state, zipCode, county, countryCode, isTheSameAsCurrentAddress, isTheSameAsSubjectPropertyAddress }: replaces the stored one entirely. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].previousAddresses`                                   | any             | Former residences (array of residence objects, same shape as currentAddress). Replaces the stored list entirely. null or \[] clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].declaration`                                         | object          | Declarations (section 5 of the 1003). Each answer inside is changed individually, so sending one answer leaves the others as they are. Omit to leave every answer unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].declaration.hasIntentToOccupy`                       | any             | Will occupy the property as a primary residence (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].declaration.isHomeownerPastThreeYears`               | any             | Had an ownership interest in another property in the last three years (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `changes.borrowers[].declaration.priorPropertyUsage`                      | any             | Use of that prior property (string name), e.g. PrimaryResidence, SecondHome, Investment. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].declaration.priorPropertyTitle`                      | any             | How title to that prior property was held (string name), e.g. Sole, JointWithSpouse, JointWithOtherThanSpouse. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `changes.borrowers[].declaration.isBuyerSellerSpecialRelationship`        | any             | Family or business relationship with the seller (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].declaration.hasUndisclosedBorrowedFunds`             | any             | Borrowing money for this transaction not disclosed elsewhere (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].declaration.undisclosedBorrowedFundsAmount`          | any             | Amount of those undisclosed borrowed funds (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].declaration.hasUndisclosedCreditApplication`         | any             | Applied for new credit not disclosed on this application (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].declaration.hasUndisclosedMortgageApplication`       | any             | Applied for another mortgage on any property not disclosed on this application (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `changes.borrowers[].declaration.hasCleanEnergyLien`                      | any             | Property is or will be subject to a PACE / clean energy lien (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].declaration.isUndisclosedComakerOfNote`              | any             | Co-signer or guarantor on undisclosed debt (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `changes.borrowers[].declaration.hasOutstandingJudgements`                | any             | Outstanding judgments against the borrower (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `changes.borrowers[].declaration.isDelinquent`                            | any             | Currently delinquent or in default on a federal debt (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.borrowers[].declaration.isPartyToLawsuit`                        | any             | Party to a lawsuit with potential financial liability (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `changes.borrowers[].declaration.hasDeedInLieu`                           | any             | Conveyed title in lieu of foreclosure in the last seven years (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].declaration.hasShortSale`                            | any             | Completed a pre-foreclosure or short sale in the last seven years (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `changes.borrowers[].declaration.hasForeclosure`                          | any             | Had property foreclosed upon in the last seven years (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.borrowers[].declaration.hasBankruptcy`                           | any             | Declared bankruptcy in the last seven years (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `changes.borrowers[].declaration.bankruptcyTypes`                         | any             | Bankruptcy chapters (array of strings), e.g. \["Chapter7"]. null or \[] clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].declaration.hasHousingCounselingConsent`             | any             | Consented to housing counseling (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].demographics`                                        | any             | Demographic information (HMDA) as a whole object { ethnicity, gender, races, hasRefusedToDiscloseEthnicity, hasRefusedToDiscloseGender, hasRefusedToDiscloseRace, applicationTaken, ... }: replaces the stored answers entirely, because a refusal and an answer must not be mixed from two submissions. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].veteranDetail`                                       | any             | Military service detail as a whole object { isVeteran, activeDuty, activeDutyExpirationDate, retiredDischargedOrSeparated, reserveNationalGuardNeverActivated, isSurvivingSpouseOfVeteran, serviceType }: replaces the stored one entirely. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers[].language`                                            | any             | Language preference as a whole object { code, otherDescription, refuseToAnswer }. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `changes.borrowers[].employments`                                         | array of object | Changes to employers, each addressed by id (the employer's externalId) or, for an employer that has no id yet, by index (its zero-based position in the list as last read). An entry with neither adds an employer; remove: true removes the addressed one. Omit to leave every employer unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].employments[].id`                                    | string          | The employer's externalId. Takes precedence over index.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `changes.borrowers[].employments[].index`                                 | integer         | Zero-based position of the employer in the list as last read. Use only for an employer that has no externalId yet.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `changes.borrowers[].employments[].remove`                                | boolean         | true removes the addressed employer. Every other field is ignored when true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].employments[].name`                                  | any             | Employer name (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `changes.borrowers[].employments[].position`                              | any             | Position or title (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers[].employments[].isCurrent`                             | any             | Whether this is a current job (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].employments[].isSelfEmployed`                        | any             | Whether the borrower is self-employed here (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `changes.borrowers[].employments[].isPrimary`                             | any             | Whether this is the primary employment (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `changes.borrowers[].employments[].ownershipShare`                        | any             | Ownership share for a self-employed borrower (string name), e.g. LessThan25Percent, GreaterThanOrEqualTo25Percent. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].employments[].startDate`                             | any             | Start date (string, yyyy-MM-dd). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `changes.borrowers[].employments[].endDate`                               | any             | End date for a former job (string, yyyy-MM-dd). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.borrowers[].employments[].professionStartDate`                   | any             | Date the borrower started in this line of work (string, yyyy-MM-dd). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].employments[].lineOfWorkInMonths`                    | any             | Months in this line of work (integer). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `changes.borrowers[].employments[].businessPhone`                         | any             | Employer phone (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].employments[].email`                                 | any             | Employer email (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].employments[].monthlyIncomeAmount`                   | any             | Total monthly income from this employer (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `changes.borrowers[].employments[].address`                               | any             | Employer address as a whole object { street, unitIdentifier, city, state, zipCode, county, countryCode }: replaces the stored one entirely. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.borrowers[].employments[].incomes`                               | any             | Income lines from this employer (array of { name, amount, otherDescription }, e.g. name Base, Overtime, Bonus, Commission; amount is monthly). Replaces the stored list entirely. null or \[] clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].otherIncomes`                                        | any             | Income not tied to an employer (array of { name, amount, otherDescription }; amount is monthly). Replaces the stored list entirely. null or \[] clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].ownedProperties`                                     | array of object | Changes to real estate owned, each addressed by id (the property's externalId) or, for one that has no id yet, by index (its zero-based position in the list as last read). An entry with neither adds a property; remove: true removes the addressed one. Omit to leave every property unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `changes.borrowers[].ownedProperties[].id`                                | string          | The property's externalId. Takes precedence over index.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `changes.borrowers[].ownedProperties[].index`                             | integer         | Zero-based position of the property in the list as last read. Use only for a property that has no externalId yet.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].ownedProperties[].remove`                            | boolean         | true removes the addressed property. Every other field is ignored when true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `changes.borrowers[].ownedProperties[].address`                           | any             | Property address as a whole object { street, unitIdentifier, city, state, zipCode, county, countryCode }: replaces the stored one entirely. omit to leave unchanged; null is rejected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `changes.borrowers[].ownedProperties[].dispositionStatus`                 | any             | What happens to the property (string name), e.g. Retained, Sold, PendingSale. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `changes.borrowers[].ownedProperties[].occupancy`                         | any             | How the property is used (string name), e.g. PrimaryResidence, SecondHome, Investment. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `changes.borrowers[].ownedProperties[].intendedOccupancy`                 | any             | How the borrower intends to use the property (string name): PrimaryResidence, SecondHome, Investment, Other. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `changes.borrowers[].ownedProperties[].intendedOccupancyOtherDescription` | any             | What the intended use is when intendedOccupancy is Other (string). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].ownedProperties[].marketValue`                       | any             | Present market value (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `changes.borrowers[].ownedProperties[].monthlyRentalGross`                | any             | Gross monthly rental income (number). null sets it to 0; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `changes.borrowers[].ownedProperties[].maintenanceExpense`                | any             | Monthly insurance, taxes, association dues and maintenance (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `changes.borrowers[].ownedProperties[].monthlyRentalNet`                  | any             | Net monthly rental income after the property's expenses (number). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `changes.borrowers[].ownedProperties[].lienBalance`                       | any             | Lien balance (number). A LOS loan keeps none (notKept): add the mortgage as a liability, securedPropertyId = tieId.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `changes.borrowers[].ownedProperties[].lienMonthlyPayment`                | any             | Monthly lien payment (number). A LOS loan keeps none (notKept): add the mortgage as a liability, securedPropertyId = tieId.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `changes.borrowers[].ownedProperties[].isSubject`                         | any             | Whether this is the subject property (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `changes.borrowers[].ownedProperties[].isCurrent`                         | any             | Whether this is the borrower's current residence (boolean). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `changes.temporaryBuydown`                                                | any             | THIS CHANGES THE LOAN IN THE LOS AND MAY AFFECT DISCLOSURES: confirm with the user before writing. The loan's temporary buydown as a whole object { steps: \[{ rateReduction, months }], contributorType, totalFundsAmount }: it replaces the stored steps entirely (at most five; unused slots are cleared), so send every step, a 2-1 being \[{ rateReduction: 2, months: 12 }, { rateReduction: 1, months: 12 }]. A negative rate, or a step with a rate and no months, is refused. null clears the buydown (every rate and month 0). contributorType and totalFundsAmount are optional and left as they are when omitted. The LOS calculates hasTemporaryBuydown, totalMonths and resultRate; they are read back, never sent. Which special feature code (SFC) Fannie Mae wants depends on the size: SFC 009 for a buydown of 2 points or less and two years or less (2-1, 1-0), SFC 014 above either (3-2-1), per Selling Guide B2-1.4-04; this tool does not set a code, DU reads the buydown. Not open to a borrower or the Partner API. After the e-consent is accepted this tool is refused like any other change; Admin or Processor then use set\_loan\_los\_fields (sBuydwnR1, sBuydwnMon1, sBuydwnR2, sBuydwnMon2, sBuydownPermanent = False). omit to leave unchanged. |
| `changes.trusts`                                                          | any             | Trusts that will hold title (array, at most 2), each { id, name, classification, establishedDate, amendedDate, stateCode, parties }. name is the trust's exact name including amendment and restatement dates; classification is InterVivosRevocable, Irrevocable, Land or Other; dates are yyyy-MM-dd; stateCode is the two-letter state. parties is an array of { role, borrowerId, name, isInstitution }: role is Trustee, CoTrustee, SuccessorTrustee, Settlor, SettlorTrustee or Beneficiary; a party who is a borrower on the loan is named by borrowerId (their hdBorrowerId), anyone else by name. Replaces the stored list entirely: send every trust, keeping each id from the last read. null or \[] clears it; omit to leave unchanged. With the loan-trusts release flag on for the loan's company, a loan in the LOS reads the LOS's trusts and a save writes them to the LOS first; with it off they stay in Henge.                                                                                                                                                                                                                                                                                                                                                   |
| `changes.titleHeldInTrust`                                                | any             | Will title be held in a trust (boolean): true yes, false no. null clears the answer (not answered); omit to leave unchanged. With the loan-trusts release flag on, answering yes creates the trust certification task and a trust that no longer applies is removed on no. Not sent to the LOS.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `changes.finalVesting`                                                    | any             | The final vesting statement as it will read on title (string). null clears it; omit to leave unchanged. With the loan-trusts release flag on for the loan's company this is read from and written to the LOS; with it off it stays in Henge.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `externalId`                                                              | string          | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `loanApplicationId`                                                       | string (uuid)   | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

## update\_loan\_application\_contact

Edit one contact on a Henge loan application (a realtor, title, escrow, attorney, appraiser or any other party on get\_loan\_application\_contacts). Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID, and the contact by its externalId from get\_loan\_application\_contacts. Send only the fields to change: an omitted field is left as it is, null clears a text field, and at least one field is required. Editable: name, contact details, company, address, notes, NMLS and licence ids, and the compensation, banking and tax fields. The role and the lender relationship flags cannot be changed. A contact whose isLender is true is REFUSED: it is the lender's own staff, and changing it is a reassignment, not an edit. A contact must keep a name or a company name. The change is WRITTEN TO THE LOAN ORIGINATION SYSTEM in this call, then the loan's stored contacts are refreshed from it. Returns the contact as the LOS reads it back. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input                               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ----------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contactId`                         | string (uuid) | REQUIRED. The contact's externalId (GUID), from get\_loan\_application\_contacts on the same loan.                                                                                                                                                                                                 |
| `name`                              | any           | The contact's own name (a person, or the company for a company-only contact). null clears it; omit to leave unchanged.                                                                                                                                                                             |
| `email`                             | any           | Email address. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                            |
| `phone`                             | any           | The contact's direct phone. null clears it; omit to leave unchanged.                                                                                                                                                                                                                               |
| `cellPhone`                         | any           | Cell phone. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                               |
| `fax`                               | any           | The contact's fax number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                 |
| `pager`                             | any           | Pager number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                             |
| `companyName`                       | any           | Company name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                             |
| `companyPhone`                      | any           | Company main phone. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                       |
| `companyFax`                        | any           | Company fax. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                              |
| `branchName`                        | any           | Branch name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                              |
| `departmentName`                    | any           | Department name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                          |
| `employeeIdInCompany`               | any           | The contact's employee id within their company. null clears it; omit to leave unchanged.                                                                                                                                                                                                           |
| `street`                            | any           | Street address. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                           |
| `city`                              | any           | City. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                     |
| `county`                            | any           | County. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                   |
| `state`                             | any           | Two-letter state code. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                    |
| `zip`                               | any           | ZIP code. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                 |
| `notes`                             | any           | Free-text notes on the contact. Replaces the existing notes. null clears it; omit to leave unchanged.                                                                                                                                                                                              |
| `isNotifyWhenLoanStatusChange`      | any           | true to have the LOS email this contact when the loan status changes. null is rejected. Omit to leave unchanged.                                                                                                                                                                                   |
| `agentNmls`                         | any           | The contact's individual NMLS id. null clears it; omit to leave unchanged.                                                                                                                                                                                                                         |
| `companyNmls`                       | any           | The company's NMLS id. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                    |
| `agentLicenseNumber`                | any           | The contact's state licence number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                       |
| `companyLicenseNumber`              | any           | The company's state licence number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                       |
| `chumsId`                           | any           | FHA CHUMS id (appraisers, underwriters). null clears it; omit to leave unchanged.                                                                                                                                                                                                                  |
| `caseNumber`                        | any           | Case number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                              |
| `taxId`                             | any           | Tax id (EIN or SSN) used for payment. null clears it; omit to leave unchanged.                                                                                                                                                                                                                     |
| `commissionMinBase`                 | any           | Commission minimum or base amount, as a number, e.g. '500.00'. null clears it; omit to leave unchanged.                                                                                                                                                                                            |
| `commissionPointOfLoanAmount`       | any           | Commission as a percent of the loan amount, as a number, e.g. '1.25'. null clears it; omit to leave unchanged.                                                                                                                                                                                     |
| `commissionPointOfGrossProfit`      | any           | Commission as a percent of gross profit, as a number. null clears it; omit to leave unchanged.                                                                                                                                                                                                     |
| `commissionPaid`                    | any           | Commission amount paid, as a number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                      |
| `isCommissionPaid`                  | any           | Whether the commission has been paid. null is rejected. Omit to leave unchanged.                                                                                                                                                                                                                   |
| `isUseOriginatorCompensationAmount` | any           | Whether the commission uses the originator compensation amount. null is rejected. Omit to leave unchanged.                                                                                                                                                                                         |
| `investorBasisPoints`               | any           | Investor basis points, as a number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                       |
| `paymentNotes`                      | any           | Payment notes. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                            |
| `payToBankName`                     | any           | Pay-to bank name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                         |
| `payToBankCityState`                | any           | Pay-to bank city and state. null clears it; omit to leave unchanged.                                                                                                                                                                                                                               |
| `payToAbaNumber`                    | any           | Pay-to bank ABA routing number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                           |
| `payToAccountNumber`                | any           | Pay-to account number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                    |
| `payToAccountName`                  | any           | Pay-to account name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                      |
| `furtherCreditToAccountNumber`      | any           | Further-credit-to account number. null clears it; omit to leave unchanged.                                                                                                                                                                                                                         |
| `furtherCreditToAccountName`        | any           | Further-credit-to account name. null clears it; omit to leave unchanged.                                                                                                                                                                                                                           |
| `externalId`                        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`                 | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## update\_loan\_housing\_expenses

Set a Henge loan application's proposed monthly housing expenses and its DU casefile number in the loan origination system in one call. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send any subset of, in monthly dollars: propertyTax, hazardInsurance, floodInsurance, hoaDues and otherHousingExpense (also locks it); and duCasefileId. propertyTax and hazardInsurance are calculated by the LOS (base x rate + a monthly amount), so the tool sets the rate to 0 and the monthly amount to the value sent, and checks that the LOS's calculated total comes to it. An omitted field is left as it is; nothing can be cleared. A field name this tool does not take is REFUSED by name. Works on a rate-locked loan: none of these is pricing-owned (the rate and program are, and stay with update\_loan\_setup). After a write, Henge's stored copy of the loan is refreshed from the LOS, so pages opened afterwards show the new figures. CAUTION on a loan still editable in Henge (before the borrower accepts e-consent): a web-app save from a loan form opened BEFORE this write sends the old HOA, property tax, hazard insurance and other-expense figures back to the LOS and undoes them; flood insurance and the DU casefile id are not part of that save and are unaffected. This is the same exposure an edit made directly in the LOS already has; tell the caller so anyone with the loan open reloads it. This WRITES TO THE LOAN ORIGINATION SYSTEM and changes the loan's housing payment, DTI and disclosures: show the caller the values and write only after they explicitly confirm. Returns, per field, what was sent and what the LOS reads back (isCalculated marks a total the LOS derived rather than one that was sent). applied is true only when every field reads back as sent; if it is false, say which fields were not applied and never describe the call as a success. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input                          | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------------------ | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `propertyTax`                  | number        | Monthly property tax in dollars, e.g. 1044.00 (sProRealETx). The LOS calculates it as base x rate + a monthly amount, so this sets the rate to 0 and the monthly amount to this value, replacing whatever derivation the loan had. Omit to leave unchanged.                                        |
| `hazardInsurance`              | number        | Monthly hazard (homeowner's) insurance in dollars (sProHazIns). Calculated like propertyTax: the rate is set to 0 and the monthly amount to this value. Omit to leave unchanged.                                                                                                                   |
| `floodInsurance`               | number        | Monthly flood insurance in dollars (sProFloodIns). Omit to leave unchanged.                                                                                                                                                                                                                        |
| `hoaDues`                      | number        | Monthly HOA (homeowners association) dues in dollars (sProHoAssocDues). Omit to leave unchanged.                                                                                                                                                                                                   |
| `otherHousingExpense`          | number        | Other monthly housing expense in dollars (sProOHExp). Sending it also locks it in the LOS (sProOHExpLckd = True) so it is not recalculated. Omit to leave unchanged.                                                                                                                               |
| `duCasefileId`                 | string        | The Fannie Mae DU casefile number, letters and digits, e.g. 1735880544 (sDuCaseId). Omit to leave unchanged.                                                                                                                                                                                       |
| `propertyTaxReserveMonths`     | integer       | Months of property tax collected as reserves at closing (sRealETxRsrvMon), 0 to 60. Sending it also locks it in the LOS (sRealETxRsrvMonLckd = True) so the LOS does not recalculate it. Omit to leave unchanged.                                                                                  |
| `hazardInsuranceReserveMonths` | integer       | Months of hazard insurance collected as reserves at closing (sHazInsRsrvMon), 0 to 60. Sending it also locks it (sHazInsRsrvMonLckd = True). Omit to leave unchanged.                                                                                                                              |
| `hazardInsurancePrepaidMonths` | integer       | Months of hazard insurance prepaid at closing (sHazInsPiaMon), 0 to 60. Other prepaid months are not loan fields and are not written by this tool. Omit to leave unchanged.                                                                                                                        |
| `externalId`                   | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`            | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## update\_loan\_mortgage\_insurance

Set a loan's private mortgage insurance in the loan origination system in one call: who pays, provider, coverage, premium base and rates, renewal, refundability, deferred or prepaid, payment repeat, upfront premium and certificate id. This is what the LOS's 'Apply Quote to Loan File' fills in; it does not request a quote or order a policy (the LOS has no API for either), so take the figures from the provider's quote. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send any subset; an omitted input is left as it is. Choice inputs take the LOS's name, ignoring case and spaces (e.g. provider 'MGIC', paidBy 'Borrower paid', renewalType 'Constant'); a name not on the list is REFUSED before anything is written, and so is any input name this tool does not take. The LOS computes the monthly premium from annualPremiumRatePercent and premiumBase (and the renewal premium and upfront amount likewise); they come back under calculated. Sending a rate clears any lock on the monthly premium, since a locked premium ignores the rate; sending monthlyPremium instead sets and locks the amount; a call with both is refused. A loan with a rate lock REFUSES the inputs that change the premium (premiumBase, the rates, monthlyPremium), as update\_loan\_setup does; the policy fields (provider, coverage, certificate and so on) are still written. A loan with no LOS file is refused. After a kept write, Henge's stored copy of the loan is refreshed from the LOS. CAUTION on a loan still editable in Henge (before the borrower accepts e-consent): a web-app save from a loan form opened BEFORE this write can send the old monthly premium lock back to the LOS; tell the caller so anyone with the loan open reloads it. This WRITES TO THE LOAN ORIGINATION SYSTEM and changes the loan's payment, DTI and disclosures: read the current values first (get\_loan\_los\_fields), show the caller the old and new values, and write only after they explicitly confirm. The same rules as set\_loan\_los\_fields apply: the call saves, checks the LOS's result per field, and reads every field back; each field's outcome is confirmed, not\_kept, mlm\_error, mlm\_warning or refused, with names beside raw codes. applied is true only when every field is confirmed; if it is false, say which fields were not applied and never describe the call as a success. Writes an activity-log line per field. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input                             | Type          | Description                                                                                                                                                                                                                                                                                        |
| --------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `paidBy`                          | string        | Who pays the MI (sMiInsuranceT): None, Borrower paid, Lender paid or Investor paid.                                                                                                                                                                                                                |
| `provider`                        | string        | MI company (sMiCompanyNmT), by name, e.g. MGIC, Radian, Essent, Enact, National MI, Arch MI.                                                                                                                                                                                                       |
| `coveragePercent`                 | number        | MI coverage percent, e.g. 25 (sMiLenderPaidCoverage, the 'MI coverage %' on the LOS's MI pages).                                                                                                                                                                                                   |
| `premiumBase`                     | string        | What the annual premium rate applies to (sProMInsT): Loan Amount, Purchase Price, Appraisal Value, Total Loan Amount, Average Outstanding Balance, Declining Renewals - Monthly, Declining Renewals - Annually or Land Cost.                                                                       |
| `annualPremiumRatePercent`        | number        | Initial annual premium rate as a percent, e.g. 0.38 (sProMInsR). The LOS computes the monthly premium from it and the premium base; a monthly premium locked earlier would ignore the rate, so this also clears that lock (sProMInsLckd = False). Not with monthlyPremium.                         |
| `monthlyPremium`                  | number        | Monthly premium in dollars, when the quote gives an amount rather than a rate (sProMIns). Sending it also locks it in the LOS (sProMInsLckd = True) so it is not recalculated. Not with annualPremiumRatePercent.                                                                                  |
| `initialRateTermMonths`           | integer       | Months the initial rate applies, e.g. 120 (sProMInsMon).                                                                                                                                                                                                                                           |
| `renewalType`                     | string        | Renewal type (sMiRenewalT): None, Constant or Declining.                                                                                                                                                                                                                                           |
| `renewalAnnualPremiumRatePercent` | number        | Renewal annual premium rate as a percent, e.g. 0.2 (sProMInsR2).                                                                                                                                                                                                                                   |
| `renewalTermMonths`               | integer       | Months the renewal rate applies, e.g. 240 (sProMIns2Mon).                                                                                                                                                                                                                                          |
| `refundability`                   | string        | Premium refundability (sMiRefundabilityT): None, Not Refundable, Refundable or Refundable With Limits.                                                                                                                                                                                             |
| `premiumAtClosing`                | string        | Whether the first premium is Deferred or Prepaid at closing (sMiPremiumAtClosingT), or None.                                                                                                                                                                                                       |
| `paymentRepeat`                   | string        | How the premium repeats (sMIPaymentRepeat): Monthly, Annual, Annually in closing month, or Annually in first full month after closing.                                                                                                                                                             |
| `upfrontPremiumRatePercent`       | number        | Upfront (single) premium as a percent of the loan amount, e.g. 1.5 (sFfUfmipR); 0 for none. The LOS computes the upfront amount.                                                                                                                                                                   |
| `certificateId`                   | string        | MI certificate id (sMiCertId), once the policy is issued.                                                                                                                                                                                                                                          |
| `externalId`                      | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId`               | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## update\_loan\_note

Replace the text of an internal note on a loan. Only the note's author can edit it (canEdit on get\_loan\_notes); anyone else, including an Admin, is refused. The previous text is kept in the note's history and the note is marked edited. Returns the updated note.

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

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `noteId`            | string (uuid) | REQUIRED. The note to change, by the id get\_loan\_notes returned.                                                                                                                                                                                                                                 |
| `body`              | string        | REQUIRED. The new text, replacing the old. The old text is kept in the note's history.                                                                                                                                                                                                             |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored. |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                         |

## update\_loan\_order

Set the dates and comment of one order on a loan's Order Outs tracker, for example the due date from an appraisal company's confirmation email, or the received date when a report arrives. This RECORDS dates and a comment only: it places nothing with a vendor and orders nothing. THIS WRITES TO THE LOAN ORIGINATION SYSTEM when the loan is in it, so only send what the user asked to record. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID, name the row by code, and send any of orderedDate, dueDate, documentDate, receivedDate, comment and, for Insurance1 to Insurance5, name. Dates are YYYY-MM-DD. A field you omit keeps its value and is not sent to the LOS: only the fields you send are written there. A field sent as null is cleared. It edits the order Order Outs shows for the code and creates the row when the loan has none; it never adds a second order of that type. Returns the saved order, sentToLos, notSentReason when the change did not go to the LOS (the loan is not in the LOS yet, the order was imported from a file, or it is not the order the row shows), fieldsNotInLos (fields this row has no LOS field for) and losFields: each field sent, with what the LOS held just before the save (previous), what it holds after the save (readBack) and kept. A comment replaces the whole comment: check previous against the text you built on, and if it differs, send the comment again with the missing text. When the LOS could not be read before the save, previous is null and losReadIssue says so. keptInLos is true only when every sent field reads back as sent, and null when the read-back could not be made (readBackIssue says why). If keptInLos is false, tell the user which field and what the LOS holds, and never describe the call as a success. The returned order is Henge's copy: fields this call did not send can be behind the LOS there (get\_loan\_orders lists the differences). If the call fails on the LOS, read get\_loan\_orders before retrying, since the change may already be saved in Henge. Income verification and credit report orders cannot be changed here: use order\_income\_verification and order\_credit\_report.

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

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `code`              | string        | REQUIRED. The order type code of the row, from get\_loan\_orders (case-insensitive): PreliminaryTitleReport, ClosingServices, AppraisalReport, FloodCertificate, USPSCheck, PayoffDemandStatement, CAIVRS, FraudServices, AVM, HOACertification, EstimatedHUD, CPLICL, WireInstructions, Insurance, Insurance1 to Insurance5, LoanPackage, MortgageDeedOfTrust, Note, TitleInsurancePolicy, MortgageInsuranceCertificate, FinalHazardInsurancePolicy or FinalFloodInsurancePolicy. |
| `orderId`           | string (uuid) | Optional. A specific order of that code, by its id from get\_loan\_orders. Omit it to edit the order Order Outs shows for the code, which is what you want unless the user names another one. An order that is not the one the row shows (a failed attempt, an earlier order) is saved in Henge only: the LOS holds one set of dates per order type, the row's order's.                                                                                                            |
| `orderedDate`       | any           | Ordered date (YYYY-MM-DD). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                |
| `dueDate`           | any           | Due date (YYYY-MM-DD). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `documentDate`      | any           | Document date (YYYY-MM-DD), the date on the report or document itself. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                    |
| `receivedDate`      | any           | Received date (YYYY-MM-DD). null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                                                                               |
| `comment`           | any           | The row's comment. It replaces the stored comment, so include the old text to keep it. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                                                    |
| `name`              | any           | The row's name. Accepted ONLY for Insurance1 to Insurance5, whose name the user types; refused for every other code. null clears it; omit to leave unchanged.                                                                                                                                                                                                                                                                                                                      |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                 |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                                                                                                                                                                                         |

## update\_loan\_relied\_on\_credit\_score

Set the credit score relied on for a Henge loan application (the HMDA relied-on score) in the loan origination system: its source, its mode and its scoring model. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send any subset of: source (as the LOS holds it, copied from loanInfo.loanLevelCredit.reliedOnCreditScoreSource), mode ("Applicant's Individual Score" or "Single Score"), model (name or code; also locks it) and modelLocked (false releases the lock; not with model). The score itself is NOT set here: the LOS calculates it from the source (Type 1, Type 2, Type 2 Soft or Type 3), and only an Other source lets a score be typed. An omitted field is left as it is; nothing can be cleared. A field name this tool does not take is REFUSED by name. Works on a rate-locked loan. This WRITES TO THE LOAN ORIGINATION SYSTEM and changes the score that pricing and HMDA reporting use: show the caller the values and write only after they explicitly confirm. After a write, Henge's stored copy of the loan is refreshed from the LOS. Returns, per field, what was sent and what the LOS reads back. applied is true only when every field reads back as sent; if it is false, say which fields were not applied and never describe the call as a success. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                     |
| ------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`            | string        | The source the relied-on score comes from (sReliedOnCreditScoreSourceT: Type 1, Type 2, Type 2 Soft, Type 3 or Other), by name. Only Type 2 can be set for now; any other name is refused until its code is recorded. The LOS calculates the score from the source unless it is Other. Omit to leave unchanged. |
| `mode`              | string        | "Applicant's Individual Score" (1) or "Single Score" (2) (sReliedOnCreditScoreModeT). Omit to leave unchanged.                                                                                                                                                                                                  |
| `model`             | string        | The scoring model (sReliedOnCreditScoreModelT), by name or code, e.g. 'Equifax Beacon 5.0' or 7. Sending it also locks it (sReliedOnCreditScoreModelTLckd = True) so the LOS does not recalculate it. Omit to leave unchanged.                                                                                  |
| `modelLocked`       | boolean       | false to release the model's lock so the LOS calculates the model again, true to lock the model the LOS holds. Not with model, which is always written locked. Omit to leave unchanged.                                                                                                                         |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.              |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                      |

## update\_loan\_setup

Set a Henge loan application's setup fields in the loan origination system in one call, so a file can be set up without keying it into the LOS by hand. Identify the loan by its MLM ExternalId (preferred) or internal Henge GUID; the loan must be in the LOS. Send any subset of: noteRate, qualifyingRate (also locks it), term and due (months), loanProgram (free text), productClass (name such as PrimeConforming, or raw code; this is sMortgageLoanT, not loanType), monthlyMi (also locks it) and escrowWaived. An omitted field is left as it is; nothing can be cleared. A field name this tool does not take is REFUSED by name. The branch channel cannot be written over the API: it is set in the LOS. A loan with a rate lock is REFUSED, because the pricing engine owns the rate and program then; proposed housing expenses and the DU casefile id are not pricing-owned and are written with update\_loan\_housing\_expenses, which works on a locked loan. This WRITES TO THE LOAN ORIGINATION SYSTEM and changes the loan's payment, qualification and disclosures: show the caller the values and write only after they explicitly confirm. Returns, per field, what was sent and what the LOS reads back. applied is true only when every field reads back as sent; if it is false, say which fields were not applied and never describe the call as a success. Admin and Processor only.

**Who can call it:** Admin, Processor

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

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                       |
| ------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `noteRate`          | number        | Note rate, as a percent, e.g. 6.125 (sNoteIR). Omit to leave unchanged.                                                                                                                                                                                                                                           |
| `qualifyingRate`    | number        | Qualifying rate, as a percent, e.g. 6.625 (sQualIR). Sending it also locks it in the LOS (sQualIRLckd = True) so it is not recalculated. Omit to leave unchanged.                                                                                                                                                 |
| `term`              | integer       | Loan term in months, e.g. 360 (sTerm). Omit to leave unchanged.                                                                                                                                                                                                                                                   |
| `due`               | integer       | Due in months, e.g. 360 (sDue). Omit to leave unchanged.                                                                                                                                                                                                                                                          |
| `loanProgram`       | string        | Loan program name, free text, e.g. 'Conforming Fixed 30 Year' (sLpTemplateNm). Omit to leave unchanged.                                                                                                                                                                                                           |
| `productClass`      | string        | Product class (sMortgageLoanT): the name, e.g. PrimeConforming, or its raw code. Names: Government\_FHA\_VA\_RHS (0), PrimeConforming (1), PrimeNonConforming (2), Other1To4UnitResidential (3), ClosedEndSecond (4), FundedHELOC (5), Construction (6). Not the same field as loanType. Omit to leave unchanged. |
| `monthlyMi`         | number        | Monthly mortgage insurance in dollars (sProMIns). Sending it also locks it in the LOS (sProMInsLckd = True) so it is not recalculated. Omit to leave unchanged.                                                                                                                                                   |
| `escrowWaived`      | boolean       | true if escrow is waived, false if not (sWillEscrowBeWaived). Omit to leave unchanged.                                                                                                                                                                                                                            |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan (string, up to 108 chars). Use this whenever the loan already exists in MLM — it is the stable identifier humans see in MLM UIs and is what webhooks surface. If both ids are supplied, externalId wins and loanApplicationId is ignored.                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID). Use this only when no externalId is known — typically because the loan has not yet been pushed to MLM.                                                                                                                                        |

## withdraw\_loan\_sandbox\_merge

A sandbox is a test copy of a loan to try a change on without touching the loan. It is itself a loan with its own loan id and loan number (isSandbox true, sourceLoanApplicationId the loan it was made from): create\_loan\_sandbox and list\_loan\_sandboxes return that id as sandboxLoanApplicationId. Edit it with the loan tools you already use (update\_loan\_application, update\_loan\_setup, set\_loan\_los\_fields, the fee, liability and asset tools and the reads), passing the sandbox loan's id as loanApplicationId; no sandbox-specific edit tool exists. The loan is not changed until a merge is applied. The borrower cannot see a sandbox and nothing done in one reaches the borrower. Orders to vendors (credit, appraisal, verifications, e-sign, rate locks, registration) are refused on a sandbox with a message that says so, as are status moves, submitting the loan and requests to the lender team. The one thing that does leave a sandbox is a DU run: submit\_loan\_to\_du sends the copy to Fannie Mae DU on a casefile of the sandbox's own, never the loan's: by default the credit report already on the copy is reissued into that casefile, so no new report is ordered and no hard inquiry is made, and a copy with no credit report is refused. A new report can be ordered only from Fannie Mae's Test Credit Agency (creditOption OrderNew); a request for a real agency, a reissue by reference number or credit only is refused. orderingOption UnderwritingOnly runs on the credit already in the sandbox's own casefile, which works from the second run. A sandbox made from a loan that ran DU starts with no casefile id; a copy that still carries the loan's own casefile id is refused. A sandbox has no documents, conditions or tasks of its own: read and change those on the loan it was made from. A loan holds at most three sandboxes and a sandbox lasts 30 days. While a merge is requested the sandbox is read only. To merge: run\_loan\_sandbox\_merge\_check shows what a merge would do, request\_loan\_sandbox\_merge asks for it, and an Admin or Processor decides it with review\_loan\_sandbox\_merge. Withdraw a sandbox's merge request: the person who requested the merge takes it back and the sandbox is open and editable again. Returns the sandbox (id, status, statusLabel). Refused for anyone but the person who requested the merge, when no merge is requested, and once the reviewer has started deciding. Name the sandbox either with the sandbox loan's own id as loanApplicationId (sandboxLoanApplicationId), or with the loan it was made from (externalId or loanApplicationId) and sandboxId. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Admin, Processor, ConciergeKey, CompanyAdmin, CompanyProcessor, Agent, DualLicensedAgent and Assistant.

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

**Reads or writes:** writes

**Availability:** only where the `loan-sandbox` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sandboxId`         | string (uuid) | The id of the sandbox (the id of each entry of list\_loan\_sandboxes, and sandbox.id on create\_loan\_sandbox), not the sandbox loan's loan id. Needed when loanApplicationId or externalId names the loan the sandbox was made from. Leave it out when loanApplicationId is the sandbox loan's own id (sandboxLoanApplicationId): the sandbox is then the one that loan belongs to. |
| `externalId`        | string        | PREFERRED when available. The MLM ExternalId of the loan. If both ids are supplied, externalId wins and loanApplicationId is ignored.                                                                                                                                                                                                                                                |
| `loanApplicationId` | string (uuid) | Fallback identifier: the Henge internal loan application ID (GUID) of the loan. Use this only when no externalId is known.                                                                                                                                                                                                                                                           |


---

# 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/loan-applications.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.
