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

# API Overview

> Event Contracts API REST API and WebSocket overview.

Event Contracts API provides REST API for market discovery, market data, orders, positions, account data, and claims, plus WebSocket for real-time updates.

## Base URL

```text theme={null}
https://api.dexbuilder.com
```

Public market-data REST endpoints use `/api/v4/event_contracts` and do not require authentication. Private order, position, account, and claim endpoints use `/api/v4/broker/event_contracts`. Call private endpoints with a Broker API Key and pass the target user's wallet address in `X-User-Wallet-Address`. See [Broker API Key and signing](https://dexbuilder.mintlify.site/en/api-reference/common/broker-authentication.md) and [Access on behalf of a user](https://dexbuilder.mintlify.site/en/api-reference/common/sub-user-wallet.md). Private WebSocket subscriptions use the separate [Broker WebSocket authentication](https://dexbuilder.mintlify.site/en/event-contracts/websocket/authentication.md) flow.


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