> For the complete documentation index, see [llms.txt](https://perena.gitbook.io/perena/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://perena.gitbook.io/perena/developers/perena-api.md). Agents can also search and read this documentation through its [MCP server](https://perena.gitbook.io/perena/~gitbook/mcp).

# Perena API

Public REST API for prices, yields, earnings and transparency data

The Perena API serves off-chain snapshots and history for USD\*, USD\*P, USD\*J and curator vaults. It is what powers the charts in the Perena app.

```
https://api.perena.org
```

* Every endpoint is under `/api` and returns JSON.
* **No authentication.** All endpoints listed here are public and read-only. CORS is enabled.
* Prices are sampled from chain every 10 minutes. APY is computed from those samples on request.
* Treat it as a reporting feed. For a live number to settle against, read the vault account with the [Vault SDK](https://perena.gitbook.io/perena/developers/vault-sdk.md).

## Endpoint families

| Family                    | Base path                                                     | Page                                                                                                                          |
| ------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| USD\*, USD\*P, USD\*J     | `/api/usdstar`, `/api/usdstarProtected`, `/api/usdstarJunior` | [USD\* endpoints](https://perena.gitbook.io/perena/developers/perena-api/usdstar-endpoints.md)                                |
| Curator vaults            | `/api/vault/curator/:address`                                 | [Curator vault endpoints](https://perena.gitbook.io/perena/developers/perena-api/curator-vault-endpoints.md)                  |
| Transparency and insights | `/api/transparency`, `/api/insights`                          | [Transparency endpoints](https://perena.gitbook.io/perena/developers/perena-api/transparency-endpoints.md)                    |
| RWA adapters              | separate service                                              | [RWA endpoints](https://perena.gitbook.io/perena/protocol/rwa-real-world-asset-repository/list-an-rwa-on-perena/endpoints.md) |

The original [API Reference](https://perena.gitbook.io/perena/api-reference/usd.md) pages carry OpenAPI definitions for the four core USD\* endpoints.

## Time parameters

All `time`, `start` and `end` parameters are UTC and accept:

| Format          | Example                     | Interpreted as        |
| --------------- | --------------------------- | --------------------- |
| Date only       | `2025-10-29`                | 00:00:00 UTC that day |
| Local datetime  | `2025-10-29T12:00:00`       | 12:00:00 UTC          |
| UTC datetime    | `2025-10-29T12:00:00Z`      | 12:00:00 UTC          |
| Offset datetime | `2025-10-29T20:00:00-07:00` | Converted to UTC      |

## Errors

Endpoints return one of two shapes depending on the family:

```json
{ "error": "Invalid period. Valid values are: 24h, 3d, 7d, 1m", "status": 400 }
```

```json
{ "success": false, "error": "Invalid vault address" }
```

The HTTP status matches `status` where present. Some USD\* endpoints return `200` with an `error` body on validation failure, so check the body, not only the status code.

## Caching and limits

Responses are cached server-side for a few minutes (APY: 5 minutes, curator vault APY: 20 minutes). Poll no faster than once a minute per endpoint. There is no published rate limit; sustained high-volume use should be agreed with the team.
