# API overview

> What you can build on today. The MCP server (market reads and chart tools for your own terminal), a read-only REST API with the same token, a free history endpoint, share images, embeds and a health check. Plus what is not a public API.

What exists today, and is meant to be used from outside, is this. A WebSocket stream is not available yet.

| Interface | Auth | What it gives you |
|---|---|---|
| [MCP server](/api/mcp) | Bearer token from Settings | 17 tools: 11 market reads (coins, snapshot, zones, signals, volume profile, book, OI and funding, house books, lab, macro, ideas) and 6 `chart_*` tools that read or change only your own Deskr terminal |
| [REST API](/api/rest) | The same Bearer token | The 11 market reads as plain GET requests with JSON responses |
| [History](/api/history) | None, CORS-open | Hourly composite open interest and funding at each settlement for any perp, up to 90 days |
| [Share images](/api/images) | None | 1200 × 630 PNG cards for coins, ideas and weekly movers |
| [Embeds](/api/embeds) | None | A funding widget (iframe) and an SVG badge |
| [Health](/api/health) | None | A small JSON summary of engine freshness and venue health |

## Ground rules

- **Read-only.** Nothing you can call places an order or changes market state.
- **Keep the link back.** Free endpoints ask you to link to deskr.trade when you publish their data.
- **Be gentle.** Don't poll faster than once a minute unless an endpoint says otherwise. Rate limits apply.
- **Not advice.** Every number is analytics. Ideas carry "We can be wrong — this is just an idea".

## Internal app routes are not an API

The app itself uses JSON routes such as `/api/feed/board`, `/api/feed/coins`, `/api/feed/candles`, `/api/flow`, `/api/indicators`, `/api/ideas`, `/api/rules` and `/api/paper`. They exist to serve the Deskr UI. They depend on the visitor's session and plan, are rate-limited, and **can change without notice**. Please don't build on them. If you need something they return, use the [REST API](/api/rest), MCP, or tell us what you need.
