API key
Every request tohttps://api.pmxt.dev needs a Bearer token. Get one
from pmxt.dev/dashboard — it works
immediately.
X-Api-Key: pmxt_live_... also works as a fallback, but Bearer is
canonical and what every SDK sends.
SDK setup
SetPMXT_API_KEY and the SDK automatically routes to the hosted
endpoint. No code changes versus local development.
- Python
- TypeScript
Venue credentials
Your PMXT API key authenticates you to PMXT. Venue credentials (Polymarket private key, Kalshi API key, etc.) authenticate you to the venue and are passed in the request body for calls that need them:Some venues (Polymarket, Limitless, Probable, Opinion, Baozi) require
raw wallet private keys with full fund control. Use a dedicated
trading wallet and read Security & Credential Handling
before passing private keys to the hosted API.
Rotating keys
- Create a new key from the dashboard.
- Deploy the new key to your application.
- Revoke the old key once traffic has drained.
Errors
| Status | Body | Meaning |
|---|---|---|
401 | {"error": "missing api key"} | No Authorization header on the request. |
401 | {"error": "invalid api key"} | Key unknown, revoked, or expired. |
429 | {"error": "rate_limit_exceeded", ... } | See Plans & Limits. |

