Authenticated endpoints - trading, portfolio, and WebSocket - require an API key. Public endpoints like market data and events don’t need one.Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.us/llms.txt
Use this file to discover all available pages before exploring further.
Get your API keys
- Download the app - Get the Polymarket US app and create an account.
- Complete identity verification - You’ll be asked to verify your identity before you can trade or access the API. Once approved, you’ll see a confirmation in the app.

- Go to the developer portal - Visit polymarket.us/developer and sign in with the same method you used in the app (Apple, Google, or email).

- Create an API key - Click to create a new key. You’ll get a Key ID and a Secret Key.

Using the SDK
If you’re using the Python or TypeScript SDK, just pass your keys when creating the client - authentication is handled for you automatically.Making raw requests
If you’re not using an SDK, each request needs three headers:| Header | Value |
|---|---|
X-PM-Access-Key | Your Key ID |
X-PM-Timestamp | Current time in milliseconds |
X-PM-Signature | A signature generated from your secret key |
Tips
- Store your keys in environment variables, never in code
- Don’t commit keys to version control
- Revoke compromised keys immediately at polymarket.us/developer