PAPI Documentation
Unified prediction market API for Polymarket and Kalshi
Welcome to PAPI
PAPI is a unified REST API for prediction markets. It provides a single interface to trade on Polymarket and Kalshi with consistent response schemas, built-in caching, and encrypted credential management.
Quick Links
- Getting Started -- Sign up, create an API key, and make your first request
- API Reference -- Complete endpoint documentation with request/response examples
- SDK Reference -- Rust SDK for direct and managed exchange access
How It Works
PAPI sits between your application and prediction market exchanges. All exchange responses are normalized into unified types, so you get consistent JSON shapes regardless of which exchange you query.
Your App --> PAPI API --> Polymarket
--> KalshiKey features:
- Unified response schemas -- Markets, orders, positions, and balances share the same shape across exchanges
- Two auth systems -- JWT for the dashboard, API keys for programmatic access
- Encrypted credentials -- Exchange API keys are encrypted with AES-256-GCM at the application layer
- Response caching -- Market data cached with short TTLs (5-60s) to reduce exchange load
- Rate limiting -- 60 requests/minute per API key with standard rate limit headers
- Scope-based access -- API keys can be limited to
read(market data) ortrade(orders, positions, balance)
Supported Exchanges
| Exchange | Market Data | Trading | Status |
|---|---|---|---|
| Polymarket | Yes | Yes | Production |
| Kalshi | Yes | Yes | Production |
Base URL
https://papi.tylerthebuildor.comDashboard
Create your account, manage API keys, and store exchange credentials at:
https://dashboard.tylerthebuildor.com