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

# Authentication

> API key authentication for Hyperliquid REST and order endpoints.

Hyperliquid REST endpoints (`/api/v1/hyperliquid/*`) and order endpoints (`/api/v1/orders`, `/api/v1/simpleOrders/*`) require an API key passed in the `x-api-key` request header.

```bash theme={null}
curl -H "x-api-key: YOUR_API_KEY" https://api.vatic.trading/api/v1/orders?walletId=...
```

Example for Hyperliquid discovery:

```bash theme={null}
curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.vatic.trading/api/v1/hyperliquid/targets/active?slug=btc-above-78213-yes-may-04-0600"
```

Vatic price, market, fee, and history endpoints remain public unless otherwise noted.

## Wallet IDs

Order endpoints also require a `walletId` (a UUID from the `user_trading_wallets` table). This identifies which of your Polymarket trading wallets to use for signing and submitting orders.

The `walletId` must belong to your API key's user account and must be fully provisioned (`allowances_ready = true`, `clob_api_key` set).
