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

# Credit and underwriting

Credit reports, automated underwriting runs and pre-approval.

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

## check\_loan\_aus\_run\_status

Ask the Loan Origination System where a Fannie Mae DU run stands, without submitting anything to DU. Use it for a run left 'Submitted' (the LOS had not answered in time, or the result could not be read back yet) instead of submitting again. It reads the casefile status, then the recommendation, result code and findings document the LOS holds, and updates the run when they differ; it returns the run and whether it changed. Only the loan's newest DU run can be checked (the LOS holds the latest result only); leave runId out for it. A run that reaches its result this way notifies the person who submitted it, once. If the LOS refuses the status request its message comes back and the run is left as it was. If the LOS reports a state but no recommendation yet, the run keeps its status and says so in its casefileStatus. Whoever may submit the loan to DU may use it: Admin, Processor, Concierge Key, the loan's loan officer, a company admin on their company's loans and an assistant on their officer's. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Read the history with get\_loan\_aus\_runs.

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

**Reads or writes:** writes

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `runId`             | string (uuid) | The DU run to check (its id from get\_loan\_aus\_runs). Leave out for the loan's newest DU run; only the newest run can be checked.                                                                                                                                                                |
| `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\_income\_verification\_link

Create the link a borrower opens to connect their payroll account for an open income verification. It lasts an hour, so create a new one if it has expired; this places no new order and is not billed. Treat the link as private to that borrower.

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

**Reads or writes:** writes

**Availability:** only where the `voe-voi-orders` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `orderId`           | string (uuid) | Required. The verification's orderId from order\_income\_verification or get\_income\_verifications.                                                                                                                                                                                               |
| `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.                                                                                                                         |

## evaluate\_pre\_approval

Preview the stated-income pre-approval on a loan WITHOUT saving anything: the loan, its status, the vault, the service bus and email are untouched, and no credit is pulled (the stored soft pull is used). Every input is optional and falls back to the loan's value, so an empty call evaluates the loan as it stands. Returns whether it would be approved, the denial reasons, loan amount, max loan amount, DTI, LTV, credit score, the rate and program when approved, issued and expiry dates and when the credit was pulled. Refused with a Conflict error when the primary borrower has no soft credit pull, or when verified approval is complete, the loan skipped the stated-income pre-approval or it is a DSCR loan. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `purchasePrice`     | number        | Purchase price to evaluate. Omit to use the loan's.                                                                                                                                                                                                                                                |
| `downPayment`       | number        | Down payment to evaluate; the loan amount is the purchase price less this. Omit to use the loan's amount.                                                                                                                                                                                          |
| `annualIncome`      | number        | Annual income to evaluate. Omit to use the loan's.                                                                                                                                                                                                                                                 |
| `occupancy`         | string        | PrimaryResidence, SecondaryResidence or Investment. Omit to use the loan's.                                                                                                                                                                                                                        |
| `incomeType`        | string        | The borrower income type (e.g. W2-earner). Omit to use the loan's.                                                                                                                                                                                                                                 |
| `loanType`          | string        | VA, FHA, Conventional or NonConforming; that type's rules are applied. Omit to infer it from the loan as the portal does.                                                                                                                                                                          |
| `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\_credit\_reporting\_agencies

List the credit reporting agencies a broker's existing credit report can be reissued from: the LOS's DU-coded agencies, sorted by name, each with id, name and duCode (the Fannie Mae DU credit provider code, e.g. CREDCO is 001, Xactus is 051). Use it to find the agencyId for reissue\_credit\_report when the user names their agency. freddieCode and platform are reserved and currently null. isDuOnly marks a DU-only agency (Fannie Mae's Test Credit Agency, DU code 200): name it only for submit\_loan\_to\_du with creditOption OrderNew; it cannot be used for reissue\_credit\_report, a credit order or a DU reissue.

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

**Reads or writes:** reads only

Takes no inputs.

## get\_income\_verifications

List a loan's income and employment verifications, newest first, each with its borrowerId, status, the vendor's providerStatus, failureMessage if it failed, and once the report is ready the reportReferenceNumber that DU and LPA take. hasReportDeficiencies means the report is ready but the vendor says it may be incomplete.

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

**Reads or writes:** reads only

**Availability:** only where the `voe-voi-orders` release flag is on for the caller.

| 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\_aus\_findings

Return the Fannie Mae DU findings of one automated underwriting run as data. Use it to read DU's messages by section instead of the findings document's text. You get the recommendation, casefileId, submissionNumber and submissionDate, duVersion, creditReportId, figures (ltv, cltv, hcltv, debtToIncomeRatio, housingExpenseRatio, totalLoanAmount, noteRate, loanType, term, amortization, purpose, refinancePurpose, appraisedValue, occupancy, propertyType, units, propertyAddress, each as DU prints it and null when DU states none), closeByDate (the date in DU's credit-expiry message, when it states one), sections in DU's own order (for example Risk/Eligibility, Verification Messages/Approval Conditions, Credit and Liabilities, Employment and Income, Assets), each with its messages (DU's number, messageId, the full text as DU wrote it, and a table of columns and rows when it has one), and DU's closing note. Name the run with runId from get\_loan\_aus\_runs, or leave it out for the newest run that has findings. A run made before findings were read as data, or whose findings could not be read, has none: it is reported as not found, and its findings document (findingsDocumentId in get\_loan\_aus\_runs) is read with get\_loan\_document\_text. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Read-only.

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

**Reads or writes:** reads only

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `runId`             | string (uuid) | Optional. The id of the run (from get\_loan\_aus\_runs). Leave it out for the newest run that has findings data.                                                                                                                                                                                   |
| `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\_aus\_runs

Return a loan's automated underwriting (AUS) run history, newest first, with the newest run as latest: every Fannie Mae DU submission made from the portal (and every DO/DU or LPA import), each with ausType (DU or LPA), source, casefileId (the DU casefile id, the same on every resubmission), recommendation (e.g. 'Approve/Eligible'), resultCode and result (its name from the LOS dictionary, DU or LP), status (Completed, Submitted when the result could not be read back yet, or Error with message), casefileStatus, whether credit was reissued and from which agency, the orderingOption (what was run: CreditAndUnderwriting, CreditOnly or UnderwritingOnly), the submissionOption (Preliminary, Interim or Final), the creditOption (Reissue, OrderNew or UsePrevious) and, for OrderNew, the creditReportId DO returned (a CreditOnly run has no recommendation and is Completed), the findings document id when the findings were filed in the vault, who ran it (submittedBy, the user id, and submittedByName, their name), the broker NMLS id it went out under and when. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID. Read-only; to run DU use submit\_loan\_to\_du, and to bring in an LPA result or a DU casefile the broker already has use import\_lpa\_result or import\_du\_casefile.

**Who can call it:** Admin, Agent, 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.                                                                                                                         |

## import\_du\_casefile

Bring a Fannie Mae Desktop Underwriter casefile the broker already ran in Desktop Originator onto a loan, by its casefile id, through the Loan Origination System. It submits nothing to DU. Two shapes. (1) INTO A LOAN: name the loan (externalId or loanApplicationId) and the loan, already in the LOS, is updated from the casefile; with importCredit the casefile's credit report and liabilities come with it and REPLACE the loan's liabilities in the LOS. This writes at once: tell the user what it will change and wait for them to say to go ahead before you call. (2) A NEW LOAN: name no loan, and a blank loan is opened in the LOS, the casefile imported into it and a loan created for loanOfficerId (the caller by default), with no email to the borrower. That is a preview first: call with no confirmationToken, nothing is created, and you get what it would do and a single-use token; SHOW THE PREVIEW TO THE USER and call again with the same casefileId, importCredit and loanOfficerId and the token only after they say to go ahead. The token works once, for the same user and arguments, for 15 minutes. A casefile not released to our institution is refused with what the broker must do in Desktop Originator (release it to us), and nothing is created or recorded. Any other refusal comes back with the LOS's message and records nothing; a refused new-loan import leaves no loan behind. On success you get the loan (loanApplicationId, externalLoanNumber, isNewLoan), whether credit came, the run (casefileId, recommendation, status) and issues, the follow-up steps that did not land yet. Read the history with get\_loan\_aus\_runs. Not enabled in every environment; the tool says so when it is off.

**Who can call it:** Admin, Agent, 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                                                                                                                                                                                                                                                                                                                                   |
| ------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `casefileId`        | string        | The Desktop Originator DU casefile id the broker ran. It must already be released to our institution in Desktop Originator.                                                                                                                                                                                                                   |
| `importCredit`      | boolean       | Optional, default false. True brings the casefile's credit report and liabilities onto the loan with it, which replaces the loan's liabilities in the LOS.                                                                                                                                                                                    |
| `loanOfficerId`     | string (uuid) | Only when opening a NEW loan (no externalId or loanApplicationId): the loan officer the new loan is created for, a user id. Defaults to the caller.                                                                                                                                                                                           |
| `confirmationToken` | string        | Only when opening a NEW loan. Leave it out to PREVIEW: nothing is created, you get what the import would do and a single-use token. Pass the token, after the user has seen the preview and said to go ahead, to IMPORT. A token works once, for the same user, casefileId, importCredit and loanOfficerId as the preview, within 15 minutes. |
| `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.                                                                                                                                                                    |

## import\_lpa\_result

Bring a Freddie Mac Loan Product Advisor (LPA) result the broker already has onto a loan that is already in the Loan Origination System, by the broker's LPA key. THIS WRITES TO THE LOAN IN THE LOS AND ADDS A RUN TO THE LOAN'S HISTORY. It submits nothing to Freddie Mac. It reads the LPA key and the risk class (Accept or Caution) back from the LOS and records an LPA run with source Imported; a repeat import adds another run. Ask the user for the LPA key; do not guess one. Refused before anything reaches the LOS: a blank or overlong key, a loan not in the LOS yet, or the import not enabled in this environment. If Freddie Mac or the LOS refuses, its message comes back with two things to check in LPA (a key from before 2026-03-07 needs a new one from LPA; the loan must be assigned to us in LPA first) and the run is recorded as an error. On success you get the run (lpaKey, riskClass, resultCode, status). Read the history with get\_loan\_aus\_runs. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

**Reads or writes:** writes

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `lpaKey`            | string        | The LPA key of the loan as the broker ran it in Freddie Mac Loan Product Advisor and assigned it to us there. A key from before 2026-03-07 does not work: the broker needs a new one from LPA.                                                                                                     |
| `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\_credit\_credentials

List the saved credit credentials the user may use on a loan: the user's own (when their company allows them) first, then the loan company's, which staff can use but never see the logins of. Each has id, owner (company or user), nickname, agencyId, agencyName, agencyDuCode, usernameHint (the last 3 characters of the hard-pull username), hasSoftPullLogin, accountIdHint (the last 3 characters of the agency account id, empty when none; a credential sends its own account id on a reissue), isDefault and canOrder (whether its agency can order a NEW report; a credential that cannot order can still reissue). defaultCredentialId is the one used when none is named: the user's own default, else the company's. Pass an id as creditCredentialId on reissue\_credit\_report or order\_credit\_report. A credential's password and full username are never returned, and credentials cannot be added through this server: the user adds them in the web app. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

**Who can call it:** Admin, Agent, 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.                                                                                                                         |

## order\_credit\_report

Order a NEW credit report from the credit vendor on a loan's credit report task. THIS COSTS MONEY AND CANNOT BE UNDONE. A HardPull charges the borrower's credit card, supplied in billingInformation, and leaves a hard inquiry on the borrower's credit; a SoftPull is billed to the lender's credit vendor account and charges no card. When undisclosed debt monitoring is switched on, a HardPull also enrolls everyone on the report in monitoring for new debt until the loan funds or ends; its cost is part of the HardPull price. Before calling it, tell the user that ordering is billed and which kind of pull it is, collect every detail from them (do not fill in anything you were not told, and never assume the billing address is the borrower's address), and get their explicit go-ahead; only then send creditTermsAccepted = true. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID and the task by taskId (the loan's task with item code CreditReport). A task that already has a report is refused: to bring an existing report's liabilities in again, use import\_loan\_liabilities\_from\_credit\_report, which is not billed. On success the task moves to Submitted, and the report is then uploaded to the loan vault, imported into the Loan Origination System and its liabilities onto the loan in the background, as a web app order is; check get\_loan\_liabilities afterwards. Returns creditReportNumber, creditReportType, status, errors, hasBankruptcy, hasCollections and each borrower's credit scores. WHEN A RETRY IS SAFE: the task is claimed before the vendor is asked. A 'Conflict: CreditOrderInProgress' means another order for the task is in flight and nothing was sent: wait, read the task, do not order again. A result with alreadyOrdered = true means the vendor already accepted an order (creditReportNumber) and this call was NOT billed; its import did not finish, so use import\_loan\_liabilities\_from\_credit\_report. A call that times out, gets a 5xx or fails in an unknown way after the request was sent keeps the task claimed for 10 minutes; after that a retry goes to the vendor and the result's message warns it may duplicate an order the vendor received. A vendor refusal (a bad login, a vendor error) or a no-file rejection claims nothing and can be retried at once. Takes about ten seconds.

**Who can call it:** Admin, Agent, 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 loan's credit report task (item code CreditReport), from get\_loan\_application\_borrower\_tasks or get\_loan\_application\_user\_tasks. A task that already has a report is refused.                                                                                                                    |
| `reportType`                               | string          | REQUIRED. SoftPull or HardPull. A task created for one type only accepts that type. One of `SoftPull`, `HardPull`.                                                                                                                                                                                                               |
| `borrower`                                 | object          | REQUIRED. The borrower the report is pulled on, exactly as the borrower confirmed it. Include coBorrower to pull a joint report.                                                                                                                                                                                                 |
| `borrower.firstName`                       | string          | REQUIRED. Legal first name.                                                                                                                                                                                                                                                                                                      |
| `borrower.middleName`                      | string          | Middle name, if any.                                                                                                                                                                                                                                                                                                             |
| `borrower.lastName`                        | string          | REQUIRED. Legal last name.                                                                                                                                                                                                                                                                                                       |
| `borrower.suffixName`                      | string          | Name suffix (Jr, Sr, III), if any.                                                                                                                                                                                                                                                                                               |
| `borrower.ssn`                             | string          | REQUIRED. Social Security number, 9 digits; dashes are allowed.                                                                                                                                                                                                                                                                  |
| `borrower.birthDate`                       | string          | REQUIRED. Date of birth, YYYY-MM-DD.                                                                                                                                                                                                                                                                                             |
| `borrower.currentAddress`                  | object          | REQUIRED. Where the borrower lives now.                                                                                                                                                                                                                                                                                          |
| `borrower.currentAddress.street`           | string          | REQUIRED. Street address.                                                                                                                                                                                                                                                                                                        |
| `borrower.currentAddress.city`             | string          | REQUIRED. City.                                                                                                                                                                                                                                                                                                                  |
| `borrower.currentAddress.state`            | string          | REQUIRED. Two-letter state code.                                                                                                                                                                                                                                                                                                 |
| `borrower.currentAddress.zipCode`          | string          | REQUIRED. ZIP code.                                                                                                                                                                                                                                                                                                              |
| `borrower.previousAddresses`               | array of object | Previous addresses, when the borrower has lived at the current one for less than two years.                                                                                                                                                                                                                                      |
| `borrower.previousAddresses[].street`      | string          | REQUIRED. Street address.                                                                                                                                                                                                                                                                                                        |
| `borrower.previousAddresses[].city`        | string          | REQUIRED. City.                                                                                                                                                                                                                                                                                                                  |
| `borrower.previousAddresses[].state`       | string          | REQUIRED. Two-letter state code.                                                                                                                                                                                                                                                                                                 |
| `borrower.previousAddresses[].zipCode`     | string          | REQUIRED. ZIP code.                                                                                                                                                                                                                                                                                                              |
| `borrower.coBorrower`                      | object          | The co-borrower, for a joint report. Same fields as the borrower; its own coBorrower is ignored.                                                                                                                                                                                                                                 |
| `borrower.coBorrower.firstName`            | string          | REQUIRED. Legal first name.                                                                                                                                                                                                                                                                                                      |
| `borrower.coBorrower.middleName`           | string          | Middle name, if any.                                                                                                                                                                                                                                                                                                             |
| `borrower.coBorrower.lastName`             | string          | REQUIRED. Legal last name.                                                                                                                                                                                                                                                                                                       |
| `borrower.coBorrower.suffixName`           | string          | Name suffix (Jr, Sr, III), if any.                                                                                                                                                                                                                                                                                               |
| `borrower.coBorrower.ssn`                  | string          | REQUIRED. Social Security number, 9 digits; dashes are allowed.                                                                                                                                                                                                                                                                  |
| `borrower.coBorrower.birthDate`            | string          | REQUIRED. Date of birth, YYYY-MM-DD.                                                                                                                                                                                                                                                                                             |
| `borrower.coBorrower.currentAddress`       | any             | REQUIRED. Where the borrower lives now.                                                                                                                                                                                                                                                                                          |
| `borrower.coBorrower.previousAddresses`    | any             | Previous addresses, when the borrower has lived at the current one for less than two years.                                                                                                                                                                                                                                      |
| `borrower.coBorrower.coBorrower`           | any             | The co-borrower, for a joint report. Same fields as the borrower; its own coBorrower is ignored.                                                                                                                                                                                                                                 |
| `billingInformation`                       | object          | REQUIRED for a HardPull, ignored for a SoftPull: the card the borrower is charged on and that card's billing address. Never default the billing address to the borrower's address; ask.                                                                                                                                          |
| `billingInformation.address`               | object          | REQUIRED. The card's billing address.                                                                                                                                                                                                                                                                                            |
| `billingInformation.address.street`        | string          | REQUIRED. Street address.                                                                                                                                                                                                                                                                                                        |
| `billingInformation.address.city`          | string          | REQUIRED. City.                                                                                                                                                                                                                                                                                                                  |
| `billingInformation.address.state`         | string          | REQUIRED. Two-letter state code.                                                                                                                                                                                                                                                                                                 |
| `billingInformation.address.zipCode`       | string          | REQUIRED. ZIP code.                                                                                                                                                                                                                                                                                                              |
| `billingInformation.creditCard`            | object          | REQUIRED. The card the borrower is charged on.                                                                                                                                                                                                                                                                                   |
| `billingInformation.creditCard.cardNumber` | string          | REQUIRED. The card number; spaces and dashes are allowed.                                                                                                                                                                                                                                                                        |
| `billingInformation.creditCard.cvv`        | string          | REQUIRED. The 3 or 4 digit security code.                                                                                                                                                                                                                                                                                        |
| `billingInformation.creditCard.expiration` | string          | REQUIRED. Expiration as YYYY-MM.                                                                                                                                                                                                                                                                                                 |
| `creditCredentialId`                       | string (uuid)   | Optional. The saved credit credential to order on, from list\_credit\_credentials: the loan company's, or the user's own. Its agency must have canOrder true, else the order is refused. Leave it out to use the company's default credential that can order (else the Henge account); the saved login is used, never asked for. |
| `creditVendorAccountId`                    | string (uuid)   | The earlier name of creditCredentialId, kept as its alias; creditCredentialId wins when both are sent.                                                                                                                                                                                                                           |
| `creditTermsAccepted`                      | boolean         | REQUIRED, must be true. Confirms the borrower authorized this credit pull and the user accepted its fee in this conversation. Never set it without asking.                                                                                                                                                                       |
| `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.                                                                                                                                                       |

## order\_income\_verification

Order a verification of one borrower's income and employment from their payroll provider. THIS IS BILLED BY THE VENDOR once the report succeeds: confirm with the user before calling it. The borrower must already have authorized the verification; without that the call is refused and nothing reaches the vendor. A borrower with an open or completed verification gets that order back with alreadyOrdered true, and nothing new is placed. If the vendor fails, the order comes back Failed with failureMessage, and calling again places a new one. After ordering, use create\_income\_verification\_link for the link the borrower opens to connect their payroll account.

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

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

**Availability:** only where the `voe-voi-orders` release flag is on for the caller.

| Input               | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `borrowerId`        | string (uuid) | Required. The borrower to verify: a borrower id on the loan (hdBorrowerId in get\_loan\_application).                                                                                                                                                                                              |
| `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.                                                                                                                         |

## process\_pre\_approval

Run the stated-income pre-approval and SAVE it: any inputs given are saved to the loan first (purchase price, loan amount from the down payment, annual income, occupancy, income type, loan type), then the status is written, the run is added to the loan's pre-approval history, and on an approval a new letter is filed in the vault (the previous letter stays, retitled with its issue date). Omitted inputs use the loan's values. NO MAIL GOES OUT unless emailBorrowerOnSuccess is true, and then only on an approval; a denial never emails the borrower. Refused with a Conflict error when the primary borrower has no soft credit pull on file, when verified approval is complete, the loan skipped the stated-income pre-approval or it is a DSCR loan. Ask before saving if the user only wanted a preview: use evaluate\_pre\_approval for that. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

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

| Input                    | Type          | Description                                                                                                                                                                                                                                                                                        |
| ------------------------ | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `emailBorrowerOnSuccess` | boolean       | Email the borrower the approved letter when the result is an approval. Defaults to false: no mail goes out unless this is true. A denial never emails the borrower.                                                                                                                                |
| `purchasePrice`          | number        | Purchase price to evaluate. Omit to use the loan's.                                                                                                                                                                                                                                                |
| `downPayment`            | number        | Down payment to evaluate; the loan amount is the purchase price less this. Omit to use the loan's amount.                                                                                                                                                                                          |
| `annualIncome`           | number        | Annual income to evaluate. Omit to use the loan's.                                                                                                                                                                                                                                                 |
| `occupancy`              | string        | PrimaryResidence, SecondaryResidence or Investment. Omit to use the loan's.                                                                                                                                                                                                                        |
| `incomeType`             | string        | The borrower income type (e.g. W2-earner). Omit to use the loan's.                                                                                                                                                                                                                                 |
| `loanType`               | string        | VA, FHA, Conventional or NonConforming; that type's rules are applied. Omit to infer it from the loan as the portal does.                                                                                                                                                                          |
| `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.                                                                                                                         |

## reissue\_credit\_report

Bring a credit report the user (a broker) ALREADY pulled onto a loan, through the Loan Origination System, using the user's OWN login at their credit reporting agency, so the borrower is not charged for a new pull. THIS WRITES TO THE LOS AND REPLACES THE LOAN'S LIABILITIES THERE WITH THE REPORT'S; a report already on the loan is superseded (never deleted). Confirm with the user before calling it. The loan needs a file in the LOS: a submitted loan has one, and a broker (TPO) company's loan that has none gets its file opened by this call as a lead where that is turned on (the loan then has a loan number and is still NOT submitted: isLosLead on get\_loan\_application says so, and submit\_loan\_application still submits it). Any other loan with no LOS file is refused. Collect from the user: their agency (agencyId from get\_credit\_reporting\_agencies), the agency's reference number for each borrower on the report (the same number on both for a joint report), their agency loginName and password, and the accountId only if their agency needs one. The password is sent to the LOS for this one request and is never stored or logged; never echo it back. If the agency rejects the login or the report number, its message is returned as a business rule violation and nothing on the loan changes. On success the report's liabilities are synced from the LOS onto the loan, each borrower's representative score is recorded on the loan (and returned as borrowers\[].creditScores and representativeScore), and the report PDF is filed on the loan from the LOS; issues lists any of those follow-up steps that did not land yet (the next loan sync repeats them). Not for re-pulling the lender's own Birchwood reports; that is order\_credit\_report. The agency and login may be left out: a saved credit credential (creditCredentialId, from list\_credit\_credentials) or else the default one is then used, never shown to the user. A login given here is used for this reissue only and never saved.

**Who can call it:** Admin, Agent, 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                                                                                                                                                                                                                                                                                                            |
| --------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agencyId`                        | string (uuid)   | The id of the credit reporting agency the report was pulled from, from get\_credit\_reporting\_agencies (match the user's agency by name or DU code). Leave it out to use the agency of the saved credit credential or the default one.                                                                                |
| `borrowers`                       | array of object | REQUIRED. One entry per borrower on the report: the borrower's id on the loan (from get\_loan\_application) and the agency's reference (report) number for them. Give both borrowers the same number for a joint report; give each their own when the agency issued separate numbers.                                  |
| `borrowers[].borrowerId`          | string (uuid)   | REQUIRED. The borrower's id on the loan (hdBorrowerId from get\_loan\_application).                                                                                                                                                                                                                                    |
| `borrowers[].referenceNumber`     | string          | REQUIRED. The agency's report (file) number for this borrower.                                                                                                                                                                                                                                                         |
| `borrowers[].instantViewPassword` | string          | Optional. The report's Instant View Password, for a report on another lender's account (found in the report's Miscellaneous Information section). Use the same value for every borrower of a joint report. Used for this request only and never stored.                                                                |
| `loginName`                       | string          | The user's own login name at the agency. Leave loginName and password out to use a saved credential (creditCredentialId) or the default one; a login given here is used for this reissue only and never saved.                                                                                                         |
| `password`                        | string          | The user's password at the agency (give it with loginName). It is sent to the LOS for this one request and never stored or logged; do not repeat it back to the user.                                                                                                                                                  |
| `creditCredentialId`              | string (uuid)   | Optional. A saved credit credential to use, from list\_credit\_credentials: its agency and login are used, so leave agencyId, loginName and password out (sending them with it is refused). Without a credential or a login the default credential is used. A credential the user may not use on this loan is refused. |
| `accountId`                       | string          | The agency account id, only if the agency requires one alongside the login. Part of a typed login: leave it out with creditCredentialId, whose saved account id is used.                                                                                                                                               |
| `reportType`                      | string          | How the report was pulled: HardPull (the default, a tri-merge) or SoftPull. One of `SoftPull`, `HardPull`.                                                                                                                                                                                                             |
| `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\_to\_du

Run Fannie Mae Desktop Underwriter (DU) on a loan that is already in the Loan Origination System, so the user gets new findings without leaving the chat. THIS SENDS THE LOAN TO FANNIE MAE THROUGH THE LOS AND ADDS A RUN TO THE LOAN'S HISTORY; it cannot be undone. It works in two calls. FIRST call it with no confirmationToken: nothing is submitted, and you get a preview (the loan, the casefile or 'a new casefile', whether an existing credit report would be brought onto the loan, or a new one ordered) and a single-use token. SHOW THE PREVIEW TO THE USER and call again with the token only after they say to go ahead. The token works once, for the same user, loan, creditOption and creditReissue, for 15 minutes. By default (creditOption Reissue) it orders no credit. WITH creditOption 'OrderNew' it has Desktop Originator ORDER A NEW CREDIT REPORT from the agency in creditReissue (agencyId, or a saved credential from list\_credit\_credentials, or a loginName; no referenceNumber): the agency BILLS that agency account, it LEAVES A HARD INQUIRY on every borrower, and it is a different report from the one on the loan (if any); every borrower needs a recorded credit authorization first. Only choose OrderNew when the user asks for new credit; the preview says all of this in words, so show it. The new report is ordered into the DU casefile; whether it also reaches the loan's own credit report and liabilities in the LOS is not confirmed, so do not assume it did (read the loan back to see). Fannie Mae's Test Credit Agency (DU code 200, isDuOnly in get\_credit\_reporting\_agencies) works only with OrderNew, with the test borrowers in the docs. With creditReissue and the default option it first brings the broker's EXISTING credit report onto the loan, which supersedes the report now on the loan and replaces the loan's liabilities in the LOS; for a typed loginName, ask the user for their agency password only for the confirming call and never repeat it back (a saved credential, from list\_credit\_credentials, needs none). The preview refuses what the submission would refuse and says what to fix: DU not enabled, the loan not in the LOS yet, missing application data (listed by name, including no credit report on the loan unless one is reissued), DU not set up for the company, or an incomplete or unknown reissue, or an order with no agency, login or credit authorization. If DU or the LOS refuses, its message comes back and the run is recorded as an error; if the agency refuses the reissue, its message comes back with nothing submitted and the token spent, so preview again. If a reissue succeeded and DU then refused, the report stays on the loan: preview again without creditReissue. On success you get the run (recommendation, result, status, casefileId, creditOption, creditReportId when DO named one, findingsDocumentId) and issues, the follow-up steps that did not land yet; read the findings with get\_loan\_document\_text and the history with get\_loan\_aus\_runs. THREE OPTIONAL CHOICES, all sent unchanged on the preview and the confirm (the token is bound to them): orderingOption, what DO runs: 'CreditAndUnderwriting' (the default), 'CreditOnly' (credit goes into the casefile and nothing is underwritten, so the run has no recommendation) or 'UnderwritingOnly' (underwrites on the credit report already in the casefile; it always uses creditOption UsePrevious and refuses an agency, login or reference number); submissionOption, the submission type: 'Preliminary' (the default), 'Interim' or 'Final' (Fannie Mae may refuse these without a sponsoring lender institution id on the loan: the LOS's message comes back as it is); and creditOption: 'Reissue' (the default), 'OrderNew' or 'UsePrevious' (the credit report already in the casefile: only with orderingOption 'UnderwritingOnly', which is refused otherwise; no agency, login or reference number, no reissue; the LOS refuses it when the casefile has no credit). The preview states the three choices in words. Only Admin, Processor, Concierge Key and loan officers outside a TPO company may send any value; a dual-licensed agent or any member of a TPO company may send only the defaults (credit and underwriting, Preliminary, reissue or the credit on file), and another value is refused with a message that says so. Only Admin, Processor, Concierge Key, a company admin on their company's loans, an assistant on the loans of the officer they assist, and the loan's own loan officer may use the tool at all. Identify the loan by its MLM ExternalId (preferred) or its internal Henge GUID.

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

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

| Input                               | Type          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `confirmationToken`                 | string        | Leave it out to PREVIEW: nothing is submitted, you get what the submission would do and a single-use token. Pass the token from the preview, after the user has seen the preview and said to go ahead, to SUBMIT. A token works once, for the same user, the same loan and the same creditReissue as the preview, within 15 minutes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `orderingOption`                    | string        | Optional, what Desktop Originator runs: 'CreditAndUnderwriting' (the default), 'CreditOnly' (credit goes into the casefile and nothing is underwritten: the run has no recommendation) or 'UnderwritingOnly' (underwrites on the credit report already in the casefile: creditOption is UsePrevious, and no agency, login or reference number may be sent). Admin, Processor, Concierge Key and loan officers outside a TPO company only; a dual-licensed agent or a member of a TPO company may send only the default. The same value must be sent on the preview and on the confirm.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `submissionOption`                  | string        | Optional, the submission type: 'Preliminary' (the default), 'Interim' or 'Final'. Interim and Final may be refused by Fannie Mae without a sponsoring lender institution id on the loan; the LOS's message comes back as it is. Same roles as orderingOption. The same value must be sent on the preview and on the confirm.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `creditOption`                      | string        | Optional: 'Reissue' (the default), 'OrderNew' or 'UsePrevious'. UsePrevious goes with orderingOption 'UnderwritingOnly' only (the LOS refuses it with CreditAndUnderwriting or CreditOnly, and the tool refuses it first): it runs on the credit report already in the casefile; send no creditReissue (no agency, login or reference number) and nothing is reissued or ordered; the LOS refuses it when the casefile has no credit. Reissue is today's behaviour: DU runs on the credit report already on the loan, or on the broker's existing report brought on by creditReissue. OrderNew has Desktop Originator ORDER A NEW credit report from the agency on creditReissue (agencyId and a saved credential or loginName, no referenceNumber), which BILLS that agency account and LEAVES A HARD INQUIRY on every borrower; every borrower needs a recorded credit authorization first. Use it only when the user asks for new credit, e.g. to test with Fannie Mae's Test Credit Agency (DU code 200). The same creditOption must be sent on the preview and on the confirm. |
| `creditReissue`                     | object        | Optional. With creditOption Reissue (the default): bring the broker's existing credit report onto the loan first, then run DU on it; leave it out to run DU on the credit report already on the loan. With creditOption OrderNew: the agency and login the new report is ordered from (agencyId, creditCredentialId, loginName, password; no referenceNumber). The same creditReissue must be sent on the preview and on the confirm.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `creditReissue.creditCredentialId`  | string (uuid) | Optional. A saved credit credential to use, from list\_credit\_credentials: its agency and login are used, so leave agencyId, loginName and password out. With no credential, agency or login, the default credential is used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `creditReissue.agencyId`            | string (uuid) | The credit reporting agency the report was pulled from, from get\_credit\_reporting\_agencies. Leave it out with a saved credential.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `creditReissue.referenceNumber`     | string        | REQUIRED with creditReissue and creditOption Reissue; leave it out for OrderNew. The agency's report (file) number: one joint report for every borrower on the loan.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `creditReissue.loginName`           | string        | The user's own login name at the agency, when they are not using a saved credential. Needed on the preview and the confirm.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `creditReissue.password`            | string        | The user's password at the agency, for a typed loginName. Send it ONLY on the confirm call, never on the preview, and never repeat it back to the user. It is used for this one request and never stored or logged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `creditReissue.instantViewPassword` | string        | Optional. The report's Instant View Password, for a report on another lender's account. Send it only on the confirm call.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |


---

# 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/credit-and-underwriting.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.
