> For the complete documentation index, see [llms.txt](https://www.bluegamma.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.bluegamma.io/documentation/integrations/api.md).

# API

Programmatic access to live and historical swap rates, forward curves, discount factors, zero rates, FX and government bond yields over a REST API authenticated with an API key.

The BlueGamma API gives you programmatic access to real-time interest rate data, including forward curves, swap rates, discount factors and more.

{% hint style="info" %}
The curves returned by the API are **not** the same as the curves shown on the public [bluegamma.io](https://www.bluegamma.io) marketing pages. See [Public Website Curves vs. Platform Curves](/documentation/methodology/public-website-curves-vs-platform-curves.md) for details.
{% endhint %}

#### ⚙️ What You Can Do

* **Swap Rates** – Get par swap rates for SOFR, EURIBOR, CORRA, SONIA, NIBOR, and others.
* **Forward Rates** – Retrieve implied rates between any two future dates or tenors.
* **Forward Curves** – Generate a full forward curve over custom periods and tenors.
* **Discount Factors** – Pull discount factors or curves to power PV and risk models.
* **FX & Government Yields** – Access FX spot/forward rates and government zero curves.

#### 🔐 Authentication

All API requests must include your API key in the `x-api-key` header.

```
GET /v1/swap_rate
Host: api.bluegamma.io
x-api-key: your_api_key_here
```

#### 📚 Explore the Docs

Use the guides in the sidebar to learn how to:

* Fetch live or historical swap rates
* Get forward curves and forward rates
* Validate results against Bloomberg
* Integrate BlueGamma into your internal tools

Or jump straight to the [API Reference](/documentation/integrations/api/api-reference.md) for full details.

#### 🚀 Get Access

Issue your own key from the app: sign in at [app.bluegamma.io](https://app.bluegamma.io), open **API Keys** under Developer, and click **Create API key**. Trial accounts and plans that include API access can issue one. See [Authentication](/documentation/integrations/api/authentication.md) for the walkthrough.

For questions about limits or licensing, [book a call](https://app.lemcal.com/@alivohra/discuss-data-license?back=1) or email <support@bluegamma.io>.


---

# 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://www.bluegamma.io/documentation/integrations/api.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.
