{
    "openapi": "3.0.0",
    "info": {
      "title": "NAVI Protocol Pool Configuration API",
      "description": "API for retrieving pool configurations, including pool and reserve IDs, borrowing and supply balances, incentives, and oracle data.",
      "version": "1.0.0"
    },
    "servers": [
      {
        "url": "https://open-api.naviprotocol.io"
      }
    ],
    "paths": {
      "/api/navi/pools": {
        "get": {
          "summary": "Get Pool Configuration",
          "operationId": "getPoolConfiguration",
          "tags": ["Pool Configuration"],
          "responses": {
            "200": {
              "description": "Successful response with pool configuration data",
              "content": {
                "application/json": {
                  "schema": {
                    "type": "object",
                    "properties": {
                      "data": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "poolId": {
                              "type": "string",
                              "description": "ID of the lending pool"
                            },
                            "reserveId": {
                              "type": "string",
                              "description": "ID of the reserve"
                            },
                            "borrowBalanceParentId": {
                              "type": "string",
                              "description": "Parent ID for borrow balance"
                            },
                            "supplyBalanceParentId": {
                              "type": "string",
                              "description": "Parent ID for supply balance"
                            },
                            "borrowCapCeiling": {
                              "type": "string",
                              "description": "Borrow cap ceiling for the pool"
                            },
                            "coinType": {
                              "type": "string",
                              "description": "Coin type for the pool"
                            },
                            "currentBorrowIndex": {
                              "type": "string",
                              "description": "Current borrow index in the pool"
                            },
                            "currentBorrowRate": {
                              "type": "string",
                              "description": "Current borrow rate in the pool"
                            },
                            "currentSupplyIndex": {
                              "type": "string",
                              "description": "Current supply index in the pool"
                            },
                            "currentSupplyRate": {
                              "type": "string",
                              "description": "Current supply rate in the pool"
                            },
                            "id": {
                              "type": "integer",
                              "description": "Unique identifier of the pool configuration"
                            },
                            "isIsolated": {
                              "type": "boolean",
                              "description": "Indicates whether the pool is isolated"
                            },
                            "lastUpdateTimestamp": {
                              "type": "string",
                              "description": "Timestamp of the last update"
                            },
                            "ltv": {
                              "type": "string",
                              "description": "Loan-to-value ratio"
                            },
                            "oracleId": {
                              "type": "integer",
                              "description": "ID of the oracle used in the pool"
                            },
                            "reserveFieldA": {
                              "type": "string",
                              "description": "Additional reserve field A"
                            },
                            "reserveFieldB": {
                              "type": "string",
                              "description": "Additional reserve field B"
                            },
                            "reserveFieldC": {
                              "type": "string",
                              "description": "Additional reserve field C"
                            },
                            "supplyCapCeiling": {
                              "type": "string",
                              "description": "Supply cap ceiling for the pool"
                            },
                            "treasuryBalance": {
                              "type": "string",
                              "description": "Balance of the treasury"
                            },
                            "treasuryFactor": {
                              "type": "string",
                              "description": "Treasury factor"
                            },
                            "totalSupplyAmount": {
                              "type": "string",
                              "description": "Total supply amount in the pool"
                            },
                            "minimumAmount": {
                              "type": "string",
                              "description": "Minimum required amount"
                            },
                            "leftSupply": {
                              "type": "string",
                              "description": "Remaining supply amount"
                            },
                            "validBorrowAmount": {
                              "type": "string",
                              "description": "Valid amount available for borrowing"
                            },
                            "borrowedAmount": {
                              "type": "string",
                              "description": "Amount that has been borrowed"
                            },
                            "leftBorrowAmount": {
                              "type": "string",
                              "description": "Remaining borrowable amount"
                            },
                            "availableBorrow": {
                              "type": "string",
                              "description": "Amount available for borrowing"
                            },
                            "oracle": {
                              "type": "object",
                              "properties": {
                                "decimal": {
                                  "type": "integer",
                                  "description": "Number of decimals in the oracle price"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Oracle value"
                                },
                                "price": {
                                  "type": "string",
                                  "description": "Price of the asset"
                                },
                                "oracleId": {
                                  "type": "integer",
                                  "description": "ID of the oracle"
                                },
                                "valid": {
                                  "type": "boolean",
                                  "description": "Indicates if the oracle data is valid"
                                }
                              }
                            },
                            "supplyIncentiveApyInfo": {
                              "type": "object",
                              "properties": {
                                "vaultApr": {
                                  "type": "string",
                                  "description": "Vault APR for supply incentives"
                                },
                                "boostedApr": {
                                  "type": "string",
                                  "description": "Boosted APR for supply incentives"
                                },
                                "rewardCoin": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Reward coins for supply incentives"
                                },
                                "apy": {
                                  "type": "string",
                                  "description": "Annual percentage yield for supply"
                                }
                              }
                            },
                            "borrowIncentiveApyInfo": {
                              "type": "object",
                              "properties": {
                                "vaultApr": {
                                  "type": "string",
                                  "description": "Vault APR for borrow incentives"
                                },
                                "boostedApr": {
                                  "type": "string",
                                  "description": "Boosted APR for borrow incentives"
                                },
                                "rewardCoin": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Reward coins for borrow incentives"
                                },
                                "apy": {
                                  "type": "string",
                                  "description": "Annual percentage yield for borrowing"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "404": {
              "description": "Pool configuration not found"
            }
          }
        }
      }
    }
  }