> For the complete documentation index, see [llms.txt](https://developers.gallantreecapital.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gallantreecapital.com/readme.md).

# README

Build against Gallantree's loan management platform through a versioned public REST API. Read loans, capital programs, organisations, individuals, collaterals, base rates. Create loans, upload documents. Subscribe to signed webhooks and react to changes as they happen.

* **Base URL:** `https://developers.gallantreecapital.com/api/v1/`
* **Authentication:** [API keys](/guides/authentication.md) (`x-api-key` header) or [OAuth 2.0 client credentials](/guides/oauth.md)
* **Webhooks:** [signed with HMAC-SHA256](/webhooks/verify-signature.md), delivered within seconds of the underlying event, retried on your schedule
* **Environments:** [sandbox and production](/getting-started/environments.md) on the same host — swap the key, not the URL

## Get started in four steps

1. [**Register an app**](/getting-started/register-an-app.md) in the portal.
2. Generate a sandbox API key. The portal shows the full key **once** — copy it into your secret store immediately.
3. Make [**your first request**](/getting-started/first-request.md) against the sandbox — `GET /api/v1/loans` and you'll see seed data.
4. When you're ready to receive events, [**subscribe to a webhook**](/webhooks/subscribe.md) and verify the signature on delivery.

## What's here

* [**Getting started**](/getting-started/overview.md) — orientation, register an app, first request, environments.
* [**Guides**](/guides/authentication.md) — the concepts every integration needs: authentication, key rotation, versioning, rate limits, error model, idempotency, and webhooks.
* [**API reference**](/reference/openapi.md) — every route, request body, response schema, and error, generated from the OpenAPI spec.
* [**Error codes**](/reference/error-codes.md) — the specific strings your integration will see, grouped by HTTP status.
* [**Changelog**](/changelog/changelog.md) — additions and deprecations to the v1 surface.

## A note on style

Every guide ends with a runnable example. Copy, paste, replace the placeholder credentials, and it should work against sandbox. If a snippet doesn't work as documented, the bug is in the docs — [tell us](https://github.com/Token-Gesture/lms/issues/new) so we can fix 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.gallantreecapital.com/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
