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

# Scopes

A scope is a permission on your credential. Your access token carries your credential's scopes in its `scope` claim, and each endpoint needs one of them. Each endpoint's reference page names its scope on the **Required scope** line, and the spec gives it as `x-required-scope`.

A call without the scope returns `403` with a problem body whose `code` is `MissingScope` and whose `requiredScope` names the scope to ask for:

```json
{
  "status": 403,
  "title": "The access token lacks the order:credit-reports scope. Ask your Henge contact to grant it to your credential.",
  "detail": "The access token lacks the order:credit-reports scope. Ask your Henge contact to grant it to your credential.",
  "instance": "/loan-applications/6b1c0c0e-0000-0000-0000-000000000000/credit-report/reissue",
  "code": "MissingScope",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
  "requiredScope": "order:credit-reports"
}
```

The [Errors](https://api-docs.hengelending.com/api/guides/errors.md) page lists every `code`.

## How scopes are named

Every scope is `verb:resource`.

* **`read`, `create`, `update`, `delete`** work on your own records. `read` changes nothing. `create` makes a new record. `update` changes records that exist, including status changes, accepting and rejecting, linking, and submitting a loan. `delete` removes a record.
* **`order`, `send`, `run`, `submit`** are actions that cost money or reach someone outside your company: a credit bureau, a verification provider, the borrowers' e-signature, the agency's automated underwriting, or the lender's staff. A new credential never has them. Ask your Henge contact for the ones you need.
* **The resource** is the endpoint's first path segment: `/loan-applications/...` needs a `...:loan-applications` scope, `/users/...` a `...:users` scope. An action scope names what is ordered, sent, run or submitted.

## Older names still accepted

Four scopes had other names before this standard. A token with the older name keeps working on the same endpoints as before, so you need to change nothing. A new credential gets the new name. If you check scope names in your own code, accept both.

| Older name                    | New name                       |
| ----------------------------- | ------------------------------ |
| `write:pricing`               | `update:pricing`               |
| `write:notification-settings` | `update:notification-settings` |
| `write:user-reports`          | `create:user-reports`          |
| `write:appraisal-requests`    | `submit:appraisal-requests`    |

An endpoint that still takes an older name says so on its **Required scope** line, and the spec gives the older name as `x-legacy-scope`.

## Every scope

| Scope                          | What it allows                                                                                                                                                                                                                                                                                           | New credential | Cost or reach           | Older name still accepted     |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----------------------- | ----------------------------- |
| `read:loan-applications`       | Find and read loans and everything on them: tasks, conditions, documents and their text, notes, contacts, fees, assets, liabilities, activity, appraisal, e-sign and verification status, print forms and the MISMO export. Evaluate a pre-approval without saving it.                                   | Yes            |                         |                               |
| `create:loan-applications`     | Create a loan (directly or from a MISMO file), start it, and add records to it: tasks, conditions, notes, liabilities, asset accounts and assets, and documents.                                                                                                                                         | Yes            |                         |                               |
| `update:loan-applications`     | Change a loan and the records on it: fields, contacts, tasks, conditions, documents, notes, liabilities and assets. Upload a document to a task or condition, link asset accounts, import liabilities from the credit report, create a bank-linking session, process a pre-approval and submit the loan. | Yes            |                         |                               |
| `delete:loan-applications`     | Delete a loan, or a task, condition, note, liability, asset account, asset or document on it.                                                                                                                                                                                                            | Yes            |                         |                               |
| `read:loans`                   | Query loans across your company with the loan query fields (POST /loans/query).                                                                                                                                                                                                                          | Yes            |                         |                               |
| `read:clients`                 | Find and read borrowers.                                                                                                                                                                                                                                                                                 | Yes            |                         |                               |
| `create:clients`               | Create a borrower.                                                                                                                                                                                                                                                                                       | Yes            |                         |                               |
| `update:clients`               | Change a borrower, and send a borrower their invitation email.                                                                                                                                                                                                                                           | Yes            |                         |                               |
| `delete:clients`               | Delete a borrower.                                                                                                                                                                                                                                                                                       | Yes            |                         |                               |
| `read:users`                   | Find and read users and their licenses.                                                                                                                                                                                                                                                                  | Yes            |                         |                               |
| `create:users`                 | Create a user in your company.                                                                                                                                                                                                                                                                           | Yes            |                         |                               |
| `update:users`                 | Change a user.                                                                                                                                                                                                                                                                                           | Yes            |                         |                               |
| `delete:users`                 | Delete a user.                                                                                                                                                                                                                                                                                           | Yes            |                         |                               |
| `read:pricing`                 | Search pricing, read a product's details and the ineligible products, and read a loan's program registration.                                                                                                                                                                                            | Yes            |                         |                               |
| `update:pricing`               | Register a loan's program (float or lock) and cancel a lock request.                                                                                                                                                                                                                                     | Yes            |                         | `write:pricing`               |
| `read:reports`                 | Read the pipeline, milestone, task, loan and condition reports and their metadata.                                                                                                                                                                                                                       | Yes            |                         |                               |
| `read:types`                   | Read the reference lists: task types, document types, credit report types, rejection reasons and webhook event types.                                                                                                                                                                                    | Yes            |                         |                               |
| `read:notification-settings`   | Read the notification catalog and the settings in effect for a user, client or loan.                                                                                                                                                                                                                     | Yes            |                         |                               |
| `update:notification-settings` | Change notification settings, and apply a user's or client's settings to their clients or loans.                                                                                                                                                                                                         | Yes            |                         | `write:notification-settings` |
| `read:webhooks`                | Read your company's webhook.                                                                                                                                                                                                                                                                             | Yes            |                         |                               |
| `update:webhooks`              | Set your company's webhook, and add or remove its subscriptions.                                                                                                                                                                                                                                         | Yes            |                         |                               |
| `read:user-reports`            | Read the reports you filed with Henge support.                                                                                                                                                                                                                                                           | Yes            |                         |                               |
| `create:user-reports`          | File a report with Henge support.                                                                                                                                                                                                                                                                        | Yes            |                         | `write:user-reports`          |
| `order:credit-reports`         | Order or reissue a credit report on a loan.                                                                                                                                                                                                                                                              | No, ask for it | Billed                  |                               |
| `order:voe-voi`                | Order an income and employment verification on a loan.                                                                                                                                                                                                                                                   | No, ask for it | Billed                  |                               |
| `send:esign-packages`          | Create an e-sign package and send it to the borrowers for signature. Each package spends an e-sign credit.                                                                                                                                                                                               | No, ask for it | Billed                  |                               |
| `run:aus`                      | Submit a loan to the agency's automated underwriting system, check a run, and read the loan's AUS runs and findings.                                                                                                                                                                                     | No, ask for it | Reaches someone outside |                               |
| `submit:broker-requests`       | Read and submit change-of-circumstance, exception and locked-rate-row requests. A submission goes to the lender's underwriting team and cannot be edited or withdrawn.                                                                                                                                   | No, ask for it | Reaches someone outside |                               |
| `submit:appraisal-requests`    | Request an appraisal on a loan. The request emails the lender's processing team.                                                                                                                                                                                                                         | No, ask for it | Reaches someone outside | `write:appraisal-requests`    |

`delete:webhooks` may appear on a credential made before self-serve. No endpoint uses it.


---

# 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/api/guides/scopes.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.
