Authentication
Every partner API request must include a valid API key.
How authentication works
Create keys in the dashboard. The API accepts either header below with the same permissions. Prefer Bearer.
Authorization: Bearer pr_live_YOUR_API_KEY # or X-API-Key: pr_live_YOUR_API_KEY
Missing or unknown credentials return the same 401 unauthorized response. Revoked keys look identical to wrong keys.
Call the API from your backend. Docs use focused samples in JavaScript, Python, PHP, and cURL — enough for Node services, Python workers, and PHP apps (including Laravel or WordPress backends) without a long SDK catalogue.
Credential format
pr_live_…— live key. Includes every scope. Needs an active or trialing subscription for use. Past-due subscriptions can still read; writes return402.pr_test_…— test key. Read-only (players, rankings, predict, and reading your own matches). Works before a subscription. Same host and same data as live keys.
Scopes
Each key carries scopes. Missing scope → 403 forbidden with required_scopes when applicable.
| Scope | Endpoints |
|---|---|
read:players | GET /v1/players/{username}, GET /v1/players/search, and match reads (GET /v1/matches, GET /v1/matches/{id}) |
read:rankings | GET /v1/rankings |
read:intelligence | POST /v1/intelligence/predict, chemistry, session, partners, integrity |
write:players | POST /v1/players (live key) |
write:matches | POST /v1/matches; also authorizes match reads and rating stories |
write:external-ratings | POST /v1/external-ratings/upsert (live key) |
write:webhooks | GET/POST /v1/webhooks, DELETE /v1/webhooks/{id} (live key) |
Quotas and burst limits
Successful responses include monthly quota headers. When burst metering is enabled they also include per-minute headers. Exceeding either limit returns 429 with Retry-After. Full header table: Rate limits.
- Starter — 10,000 requests / month, 60 / minute
- Pro — 100,000 requests / month, 300 / minute
- Scale — 500,000 requests / month, 600 / minute
- Enterprise — custom monthly quota, 1,200 / minute unless agreed otherwise
Rotation and revocation
Create a new key, migrate callers, then revoke the old key from the dashboard. Revocation takes effect for subsequent requests. There is no grace period API beyond keeping both keys active during cutover.
Secure storage
- Store keys in your secret manager or environment variables
- Never commit keys to Git or share them in tickets/chat
- Never expose keys in frontend JavaScript, mobile apps, or public repositories
- Do not print full keys in application logs
- Optional: send
X-Request-Id(8–64 letters, digits, or hyphens) for support correlation