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

# REST API Overview (premium)

> Introduction to the BetDEX REST API for managing events, markets, sessions, wallets, and orders.

The BetDEX REST API lets you interact with the BetDEX Exchange programmatically. Use it to manage events, markets, sessions, wallets, and orders.

## Base URLs

<CodeGroup>
  ```text Sandbox theme={null}
  https://sandbox.api.btdx.io/
  ```

  ```text Production theme={null}
  https://prod.api.btdx.io/
  ```
</CodeGroup>

## Authentication

All requests require an `Authorization` header containing a session `accessToken`:

```http theme={null}
Authorization: Bearer <accessToken>
```

To obtain a token, create a session using your **App ID** and **API key** via the Session Management endpoints.

## What you can do

<CardGroup cols={2}>
  <Card title="Sessions" icon="key" href="https://developers.betdex.com/api-reference/session-management/create-a-session">
    Authenticate your application and obtain access tokens.
  </Card>

  <Card title="Events & Markets" icon="calendar">
    Browse categories, event groups, events, and markets.
  </Card>

  <Card title="Orders" icon="receipt" href="https://developers.betdex.com/api-reference/orders/create-order">
    Place, cancel, and inspect orders against open markets.
  </Card>

  <Card title="Wallets" icon="wallet">
    Manage balances and review wallet activity.
  </Card>
</CardGroup>

## Real-time updates

For real-time event, market, order, and wallet updates, use the [Stream API](/stream-api) over WebSocket.
