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

# Environments

Henge has two environments. Each has its own base URL, its own users and loans, and its own API credentials: a credential made in one does not work in the other.

|               | UAT                                        | Production                             |
| ------------- | ------------------------------------------ | -------------------------------------- |
| **Use it to** | Build and test your integration            | Originate live loans                   |
| **Base URL**  | `https://uat-api.hengelending.com/partner` | `https://api.hengelending.com/partner` |

## UAT

UAT (user acceptance testing) is where you build. Some pages and the API reference also call it the sandbox: it is the same environment.

* **Getting access.** Ask the [Henge support team](mailto:support@hengelending.com) or your account executive for a UAT account for your company.
* **Credentials.** Once you have the account, a company admin signs in to Henge in UAT and creates the API credentials under **Company Profile**, **API credentials**. See [API credentials](https://api-docs.hengelending.com/api/guides/api-credentials).
* **Test data only.** Use made-up borrowers and email addresses you control. Creating a loan can email the borrowers and the loan officer, in UAT too.
* **Ahead of production.** Changes reach UAT before production, so UAT can briefly have endpoints or fields that production does not have yet. The [changelog](https://api-docs.hengelending.com/api/guides/changelog-and-versioning) lists what changed.

## Production

Production is for live loans and is open to partners with a signed agreement with Henge. A company admin creates production credentials the same way, signed in to Henge in production.

## Checking an environment

Every call except two needs an access token, so opening a base URL in a browser returns `401`. To check that an environment is up, call `GET /test/ping`. It needs no token:

```bash
curl https://uat-api.hengelending.com/partner/test/ping
```

```json
{
  "api": "public",
  "status": "ok",
  "version": "1.0.0.0",
  "informationalVersion": "1.0.0+2d255e9",
  "buildTimestamp": "2026-11-28T01:41:34Z",
  "environment": "Uat",
  "timestamp": "2026-11-28T16:28:32.520154Z"
}
```

The other call without a token is `POST /oauth/token`, which gives you one. See the [Quickstart](https://api-docs.hengelending.com/api/quickstart).


---

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