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

# Invest API

### DeFi Index Fund

ThirdFi presents Invest API with DeFi Index Funds with top cryptocurrencies in decentralized finance. These funds employ an indexing investment approach carefully designed to track the performance of the major cryptocurrencies with respective themes.

ThirdFi DeFi Index Funds are made purely with ThirdFi Invest API to demonstrate the full suite of what ThirdFi API can offer. These funds are working investment strategies that investors can invest in real-time, also an investment product that developers can integrate into their existing product.

ThirdFi also offers portfolio management and notification in real-time for all investment transactions. User can check out their portfolio balances on Portfolio and notifications on  Notification History.

### How to use Invest API?

1. Sign up for the ThirdFi app
2. Log in, and generate the API key.
3. Create customers through the Customer API.
4. Use the customer email address to create the transaction session via Session API, and redirect the user to the webview.
5. Users can do the transaction by connecting web3 wallet and confirming the transaction.&#x20;
6. ThirdFi sends the webhook event to the developer's backend server after configuring the webhook setting.&#x20;

Visit here to try the Invest API for free!

{% embed url="<https://thirdfi.readme.io/reference/create-index-fund-session>" %}


---

# 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://thirdfi.gitbook.io/thirdfi.org/product/invest-api.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.
