PAPI

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.

  • 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
                     --> Kalshi

Key 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) or trade (orders, positions, balance)

Supported Exchanges

ExchangeMarket DataTradingStatus
PolymarketYesYesProduction
KalshiYesYesProduction

Base URL

https://papi.tylerthebuildor.com

Dashboard

Create your account, manage API keys, and store exchange credentials at:

https://dashboard.tylerthebuildor.com

On this page