> For the complete documentation index, see [llms.txt](https://docs.forepaas.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.forepaas.org/v2/api-reference/api-reference.md).

# Overview

Complete API reference for all endpoints with interactive documentation

This section provides a detailed reference for all the available endpoints in the ForeGate PaaS API.

## Endpoint Categories

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>User</strong></td><td>Register users, manage sessions, and look up profiles</td><td><a href="/v2/api-reference/api-reference/user.md">User</a></td></tr><tr><td><strong>MFA</strong></td><td>Configure TOTP and email OTP, verify codes, and inspect MFA status</td><td><a href="/v2/api-reference/api-reference/mfa.md">MFA</a></td></tr><tr><td><strong>Deposit</strong></td><td>Deposit addresses, history, and on-chain transaction status</td><td><a href="/v2/api-reference/api-reference/deposit.md">Deposit</a></td></tr><tr><td><strong>Withdraw</strong></td><td>Request withdrawals and query history and limits</td><td><a href="/v2/api-reference/api-reference/withdraw.md">Withdraw</a></td></tr><tr><td><strong>Account</strong></td><td>User assets, positions, and wallet history</td><td><a href="/v2/api-reference/api-reference/account.md">Account</a></td></tr><tr><td><strong>Markets</strong></td><td>Browse markets, view details, holders, and live volume</td><td><a href="/v2/api-reference/api-reference/markets.md">Markets</a></td></tr><tr><td><strong>Search</strong></td><td>Global market search</td><td><a href="/v2/api-reference/api-reference/search.md">Search</a></td></tr><tr><td><strong>Orderbook</strong></td><td>CLOB snapshots, quotes, midpoint, spread, tick size, and price history</td><td><a href="/v2/api-reference/api-reference/orderbook.md">Orderbook</a></td></tr><tr><td><strong>Public Market Data</strong></td><td>Unauthenticated historical prices and public market WebSocket events</td><td><a href="/v2/api-reference/api-reference/public-market-data.md">Public Market Data</a></td></tr><tr><td><strong>Ordering</strong></td><td>Create and cancel orders, track open orders, claim winnings</td><td><a href="/v2/api-reference/api-reference/ordering.md">Ordering</a></td></tr><tr><td><strong>Trades</strong></td><td>User trading activity with rich filtering</td><td><a href="/v2/api-reference/api-reference/trades.md">Trades</a></td></tr></tbody></table>

## What's Included

Each endpoint documentation includes:

* Interactive OpenAPI specification with "Try it" capability
* Complete request/response examples in cURL, Node.js, and Python
* Detailed parameter tables with types and requirements
* Gateway behavior notes (upstream mapping, parameter handling)
* HTTP status codes and verbatim error examples
* Best practices and performance tips

> **Developer Tip:** PaaS endpoints require the [gateway HMAC signature](/v2/getting-started/authentication.md), and user-scoped endpoints additionally need the session cookie from `POST /user/register`. Public operations on `openapiws.foregate.com` require neither. Use the interactive OpenAPI blocks to explore endpoints, see the [OpenAPI specification](/v2/resources/openapi-specification.md) for HTTP operations, or use the [AsyncAPI specification](/v2/resources/asyncapi-specification.md) for public market events.
