# Capital programs A **capital program** is the pool of capital loans are drawn from: a fund, a mandate, a warehouse. Every loan belongs to exactly one. The program carries the terms that apply across all its loans: domicile, governing law, structure, payment frequency, facility size, and the **fees** charged at program level, such as trustee and management fees. Before you start: read [Data model](../../../concepts/data-model.md) if you haven't. ## Endpoints | What | Method and path | Scope | |------|-----------------|-------| | [List capital programs](list.md) | `GET /api/v1/capital-programs` | `capital-programs:read` | | [Get a capital program](get.md) | `GET /api/v1/capital-programs/{id}` | `capital-programs:read` | Capital programs are read-only through the API; see [Create](#create) and [Update and delete](#update-and-delete) below. ## Reference - **[The capital program object](object.md)**: every field a program returns. - **[Capital program fees](fees.md)**: the fees charged at program level. ## Create There's no standalone create endpoint. A capital program is created the first time a loan names it: - **Inline**, in the `loan.capitalProgram` block of [`POST /api/v1/loans`](../loans/create-program-and-product.md), with an `externalId` and, optionally, `fees`. Later loans with the same `externalId` reuse the program. Its details, fees included, are set when it is first created; sending different ones later has no effect. - **By id**, with `loan.capitalProgramId`, to place a loan in a program that already exists for your lender, including one set up inside the platform. For the fee fields you can send, see [Loans → Fees](../loans/create-program-and-product.md#fees). ## Update and delete Not exposed. Programs are managed inside the platform. ## In the sandbox Each sandbox lender has two programs, both with fees: | `externalId` | Name | Fees | |--------------|------|------| | `program-senior-debt` | Sandbox *Lender* Senior Debt Fund I | Trustee fee (flat, periodic), management fee (0.5% of total notes, periodic) | | `program-construction` | Sandbox *Lender* Construction Warehouse | Arranger fee (0.75% of senior notes, on establishment), trustee fee (flat, periodic) | ```bash curl -sS -H "x-api-key: $SANDBOX_KEY" \ "https://developers.gallantreecapital.com/api/v1/capital-programs?externalId=program-senior-debt" ``` ## What to do next - The loan templates a program offers: **[Products](../products/README.md)**. - Placing a loan in a program: **[Loans → Capital program and product](../loans/create-program-and-product.md)**. - Full field list: **[API reference](../../../reference/openapi.md)**.