Authentication
Get an API key and send it with every request.
Every request carries an API key, except GET /v1/plans, which is public.
Get an API key
- Sign up at app.predictorsdk.com.
- Open API Keys and click Create API Key.
- Copy the key. It is shown only once.
The same page lets you revoke a key or roll it to a new value.
Send it
Put the key in the Authorization header as a Bearer token. The SDKs do this
for you once you pass the key in:
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.predictorsdk.com/v1/matching-markets/sports"A request without a key, or with an unknown one, gets 401. Keep keys out of
browser code and public repositories: anyone holding a key can spend your
plan's requests.
Permissions
Keys created in the dashboard can call every endpoint in these docs. Each
endpoint checks one permission, and a key without it gets 403:
| Permission | Endpoints |
|---|---|
markets.matching.read | GET /v1/matching-markets/sports, GET /v1/matching-markets/sports/lookup |
markets.read | GET /v1/markets, GET /v1/categories, GET /v1/markets/{market_id} |
events.read | GET /v1/events/{event_id} |
crypto.prices.read | GET /v1/crypto-prices/binance |
polymarket.wallet.read | GET /v1/polymarket/wallet |
polymarket.positions.read | GET /v1/polymarket/wallet/positions |
Rate limits
Your plan sets how many requests a key can make per minute
(rate_limit_per_min on GET /v1/plans). Every authenticated
response reports it:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in any rolling 60 seconds. Pace against this one. |
X-RateLimit-Remaining | A rough guide only: it can repeat or even go up while you spend it. |
X-RateLimit-Reset | A Unix time in seconds. |
Over the limit, the API answers 429 with Retry-After in seconds. The budget
refills gradually rather than all at once, so count your own requests over the
last 60 seconds instead of trusting X-RateLimit-Remaining.
Error handling shows a
limiter that works, and when to retry.