# REST API

## Overview

The REST API enables users to query information on vaults, transactions, and accounts. The data returned is the most current state and data of the protocol and platform.&#x20;

For querying historical information, you will either need to 1) store the data on your system and query from there or 2) use our graphQL API which enables you to specify a data range and return historical data for that range.&#x20;

## REST URLs

Each environment and network has a unique URL&#x20;

<table><thead><tr><th width="197">Environment</th><th width="200">Network</th><th>URL</th></tr></thead><tbody><tr><td>Production</td><td>Ethereum</td><td>https://api.open-trade.io</td></tr><tr><td>Production</td><td>Avalanche</td><td>https://avalancheapi.open-trade.io</td></tr><tr><td>Sandbox</td><td>Ethereum (Sepolia)</td><td>https://api.opentradesandbox.com</td></tr><tr><td>Sandbox</td><td>Avalanche (Fuji)</td><td>https://fujiapi.opentradesandbox.com</td></tr></tbody></table>

## Swagger

View detailed documentation and test the API using our [Swagger site](https://app.swaggerhub.com/apis-docs/OpenTrade/open-trade_api/4.0). &#x20;

## Common Use Cases

{% content-ref url="rest-api/return-a-list-of-vaults" %}
[return-a-list-of-vaults](https://sandboxdocs.opentrade.io/opentrade-sandbox/version-4-integrations/api-integrations-for-flexible-term-vaults-v4/rest-api/return-a-list-of-vaults)
{% endcontent-ref %}

{% content-ref url="rest-api/query-a-specific-vault" %}
[query-a-specific-vault](https://sandboxdocs.opentrade.io/opentrade-sandbox/version-4-integrations/api-integrations-for-flexible-term-vaults-v4/rest-api/query-a-specific-vault)
{% endcontent-ref %}

{% content-ref url="rest-api/query-a-specific-account" %}
[query-a-specific-account](https://sandboxdocs.opentrade.io/opentrade-sandbox/version-4-integrations/api-integrations-for-flexible-term-vaults-v4/rest-api/query-a-specific-account)
{% endcontent-ref %}
