# Open API

The APIs below are used by FlatQube itself to facilitate user interfaces.\
Please refer to the attached Swagger schemes.

## FlatQube indexer

{% embed url="<https://api.flatqube.io/v1/swagger.yaml>" %}
Swagger scheme
{% endembed %}

## Farming indexer

{% embed url="<https://farming.flatqube.io/v1/swagger.yaml>" %}
Swagger scheme
{% endembed %}

## Function calls

{% hint style="info" %}
The information below will allow you to familiarize yourself with the various function calls, as well as examples of their use.

All of the API call methods below are divided into 2 sections: FlatQube Dex Indexer (CMC, currencies, pairs and transactions APIs) and FlatQube Farming Indexer (Farming pools, transactions and graphics APIs).
{% endhint %}

## Node.js code snippets

The following examples use the libraries:

* [*Express (Node.js)* ](https://expressjs.com/en/4x/api.html)\_\_
* [***Axios***](https://axios-http.com/docs/intro)
* [***body-parser***](https://www.npmjs.com/package/body-parser)


---

# Agent Instructions: 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:

```
GET https://docs.flatqube.io/integrate/open-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
