> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yield.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Base URLs

> Production hosts for the Earn, Trade and Borrow APIs, the /v1 path prefix, and the health route.

Each product has one production host. All routes except health are prefixed with `/v1`.

| Product | Base URL | Serves |
| - | - | - |
| Earn | `https://api.yield.xyz/v1` | Yields, balances, actions, transactions, validators, networks, providers, tokens, KYC status |
| Trade (Perps API) | `https://perps.yield.xyz/v1` | Providers, markets, positions, orders, actions, activity, events |
| Borrow | `https://borrow.yield.xyz/v1` | Integrations, markets, positions, actions |

The same `x-api-key` works on all three. See [Authentication](https://docs.yield.xyz/api-reference/authentication.md).

The Trade API is served at `https://trade.yield.xyz/v1` once it is live and replaces the Perps API for perps. See [Trade](https://docs.yield.xyz/documentation/trade/index.md).

## Health

`GET /health` on each host returns the service status and a timestamp. It sits outside `/v1` and needs no key.

```bash theme={null}
curl https://api.yield.xyz/health
```

> [card] [Earn](https://docs.yield.xyz/api-reference/YieldsController_getYields.md)
>
> List yields

> [card] [Trade](https://docs.yield.xyz/api-reference/perps-api/discovery/list-providers.md)
>
> List providers

> [card] [Borrow](https://docs.yield.xyz/api-reference/borrow/integrations/list-integrations.md)
>
> List integrations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.