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

# Authentication

Get an access token for calling the Henge APIs directly.

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

## get\_api\_access\_token

Mint a short-lived (about 15-minute) Bearer token for the Henge Private API so an external script can call it on behalf of the current user, e.g. to upload or download loan-application documents (task documents and vault uploads) that are too large to pass through MCP (upload\_loan\_document takes files up to 5 MB inline; use this for anything larger). Only endpoints explicitly enabled for MCP tokens accept it (currently the loan-task document upload and download endpoints, the loan vault document upload and download, and the loan print form PDF that get\_loan\_print\_form links to when a form is too large to attach); every other endpoint returns 403, and normal loan-access rules still apply. To download any document from get\_loan\_application\_documents, use GET {base}/loanapplications/{loanApplicationId}/vault/documents/{documentId}: it finds task, condition, asset and vault documents by their own id, while the task route only serves the document the task currently holds. The response includes the Private API base URL. Pass the token directly to the calling script; do not print it into the conversation.

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

**Reads or writes:** writes

Takes no inputs.


---

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