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

# Quickstart

> Get a test API key and make your first request in under a minute

## 1. Get a test API key

Test keys are free and valid for 10 minutes. No signup required.

```bash theme={"theme":"one-dark-pro"}
curl -X POST https://api.delphiterminal.co/api/v1/test-key
```

You'll get back a response like:

```json theme={"theme":"one-dark-pro"}
{
  "api_key": "dphi_live_a1b2c3d4...",
  "expires_at": "2025-01-01T00:10:00Z",
  "expires_in": "10 minutes"
}
```

Copy the `api_key` value — you'll use it in the next step.

## 2. Make your first request

Use your API key in the `X-API-Key` header to fetch a Kalshi market:

```bash theme={"theme":"one-dark-pro"}
curl -X GET 'https://api.delphiterminal.co/api/v1/klsi/markets' \
  -H 'X-API-Key: dphi_live_a1b2c3d4...'
```

Or search across all markets:

```bash theme={"theme":"one-dark-pro"}
curl -X GET 'https://api.delphiterminal.co/api/v1/events/search?q=bitcoin' \
  -H 'X-API-Key: dphi_live_a1b2c3d4...'
```

## 3. Explore the API

Use the **API Reference** tab to browse all available endpoints. Every endpoint has a built-in playground where you can test requests directly in your browser.

<CardGroup cols={2}>
  <Card title="KLSI (Kalshi)" icon="chart-line" href="/api-reference/klsi">
    Market details, orderbooks, trade history, OHLCV candles, and analytics.
  </Card>

  <Card title="Polymarket" icon="chart-bar" href="/api-reference/polymarket">
    Market details, orderbooks, trade history, and price data.
  </Card>

  <Card title="Events & Search" icon="magnifying-glass" href="/api-reference/events">
    Browse events by category and search across all markets.
  </Card>

  <Card title="WebSockets" icon="bolt" href="/api-reference/kalshi-websocket">
    Real-time streaming for orderbook and ticker updates.
  </Card>
</CardGroup>

## Next steps

<Card title="Authentication" icon="key" href="/authentication">
  Learn about production API keys, rate limits, and error handling.
</Card>

<Card title="Extract parquet data" icon="database" href="/data-extraction">
  Download dataset exports and query them locally with DuckDB or Polars.
</Card>
