> For the complete documentation index, see [llms.txt](https://docs.tesseract.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tesseract.fi/earn-direct-and-earn-api/earn-api.md).

# Earn API

Earn API lets partners embed Tesseract yield directly into their own product. Your backend books deposits and withdrawals against Tesseract's accounting system, settles outstanding balances once per day per currency, and pulls daily reports to sync interest to user accounts.

This section covers the integration as a partner engineer would approach it:

* [**Overview**](/earn-direct-and-earn-api/earn-api/overview.md) — the two deliverables of a successful integration (deposit/withdrawal integration + daily settlement).
* [**Calculating Interest**](/earn-direct-and-earn-api/earn-api/calculating-interest.md) — how interest accrues, when it's distributed, the compounding formula, and worked examples.
* [**Settlements**](/earn-direct-and-earn-api/earn-api/settlements.md) — how netted per-currency daily settlements work and how to read the outstanding balance.
* [**Solution Architecture**](/earn-direct-and-earn-api/earn-api/solution-architecture.md) — the eight integration tasks and dependencies.
* [**Data Model Mapping**](/earn-direct-and-earn-api/earn-api/data-model-mapping.md) — how to map your users / accounts to Tesseract's data model when you receive two credential sets, one per product line.
* [**Process and Environments**](/earn-direct-and-earn-api/earn-api/process-and-environments.md) — Development / Test / Production environments and the end-to-end integration process.
* [**Acceptance Testing**](/earn-direct-and-earn-api/earn-api/acceptance-testing.md) — test cases run in Production before go-live.
* [**Working with Reports**](/earn-direct-and-earn-api/working-with-reports.md) — daily reports published by the accounting cycle and their schema.

Interactive API reference: [earn-api.partner.env.tesseractinvestment.dev/docs](https://earn-api.partner.env.tesseractinvestment.dev/docs/)

**Estimated integration time:** 14–21 days.


---

# 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://docs.tesseract.fi/earn-direct-and-earn-api/earn-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.
