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

# Welcome

The Henge Partner API lets your software originate mortgage loans in Henge: create loan applications for your borrowers, price them, order credit, send documents for signature and keep your own system in step with each loan.

## Base URLs

| Environment | Base URL                                   |
| ----------- | ------------------------------------------ |
| UAT         | `https://uat-api.hengelending.com/partner` |
| Production  | `https://api.hengelending.com/partner`     |

Build and test against UAT, then switch the base URL and credentials to production. See [Environments](https://api-docs.hengelending.com/environments).

## What you can do

| Area                                                           | What it covers                                                                                                                                                                                                                                |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Auth**                                                       | Exchange your client id and secret for an access token.                                                                                                                                                                                       |
| **Clients**                                                    | Create, read, update and delete the borrowers your loans are for. Henge calls a borrower record a client.                                                                                                                                     |
| **Loan applications**                                          | Create, start, update and submit loan applications, with their assets, liabilities, fees, notes, conditions, documents and pre-approval.                                                                                                      |
| **Pricing**                                                    | Search products and rates for a loan, and register a program on a broker (TPO) loan, either floating or with a lock request.                                                                                                                  |
| **Credit, verifications, e-sign, underwriting and appraisals** | Order credit reports and income verifications, send documents for signature, run automated underwriting and request appraisals. These cost money or contact people on your behalf, so each needs a scope that a new credential does not have. |
| **Users**                                                      | Create and manage your company's loan officers and other users.                                                                                                                                                                               |
| **Reports and loan query**                                     | Pipeline and milestone reports, and custom queries over your loans.                                                                                                                                                                           |
| **Webhooks**                                                   | Get a notification when a loan, one of its tasks or one of its documents is created, changed or deleted.                                                                                                                                      |
| **Notification settings**                                      | Choose which notifications Henge sends for a user, a client or a loan.                                                                                                                                                                        |

Every endpoint, with the scope it needs, is in the [API reference](https://api-docs.hengelending.com/api).

## Before you start

* **Credentials.** A company admin creates your client id and secret in Henge, under **Company Profile**, **API credentials**, once in UAT and once in production. See [API credentials](https://api-docs.hengelending.com/api/guides/api-credentials).
* **Borrower portal.** Every account can create clients and start loans for them. If your account also uses the Henge borrower portal, the API can return a borrower's portal sign-in link and send portal invitations. Without the portal, `GET /clients/{id}` leaves out `loginToken`, and the invitation and notification-settings endpoints return `409 Conflict`.
* **Webhooks are a hint, not a feed.** A webhook is sent once, without retries, and a status change made in the loan origination system sends none. Use webhooks to react quickly and poll to catch what they miss. See [Limits and reliability](https://api-docs.hengelending.com/api/guides/limits-and-reliability#webhooks).

## Next steps

* [Quickstart](https://api-docs.hengelending.com/api/quickstart): your first token, loan application and start, in three calls.
* [Guides](https://api-docs.hengelending.com/api/guides): which id to send, the loan lifecycle, errors, limits and the changelog.
* [MCP](https://api-docs.hengelending.com/mcp): connect an AI assistant to Henge.

## Support

Contact the [Henge support team](mailto:support@hengelending.com) or your account executive. When you report a failed call, include the `traceId` from the error body. See also the [Terms of Service](https://rfm.io/legal/).


---

# 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/welcome.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.
