Skip to content

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.

http
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 return 402.
  • 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.

ScopeEndpoints
read:playersGET /v1/players/{username}, GET /v1/players/search, and match reads (GET /v1/matches, GET /v1/matches/{id})
read:rankingsGET /v1/rankings
read:intelligencePOST /v1/intelligence/predict, chemistry, session, partners, integrity
write:playersPOST /v1/players (live key)
write:matchesPOST /v1/matches; also authorizes match reads and rating stories
write:external-ratingsPOST /v1/external-ratings/upsert (live key)
write:webhooksGET/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
Authentication · PadelRank Developers