Skip to content

Errors

Partner errors are JSON with error, message, and request_id. The same id is in the X-Request-Id header. Production omits field-level validation details.

Error envelope

json
{
  "error": "forbidden",
  "message": "API key lacks required scopes.",
  "request_id": "2f0c0b12-6a0e-4d1a-9c2e-0b5a9a1d4e10",
  "required_scopes": ["write:matches"]
}

Send X-Request-Id yourself (8–64 letters, digits, or hyphens) if you want support to use your own id. Otherwise the API generates one.

Status codes

HTTPerrorWhenRetry?
401unauthorizedMissing, unknown, or revoked API keyNo — fix credentials
402payment_requiredLive key without a usable subscription (writes; some reads if canceled)No — fix billing
403forbiddenMissing scope, or test key used for a writeNo — use correct key/scope
404not_foundUnknown, private, or another partner's resourceNo
409idempotency_conflictSame external ref, different winner or trust tierNo — use a new ref
413payload_too_largeBody larger than 256 KiBNo — shrink body
422validation_error (and related codes)Invalid body, query, username, roster, or participantsNo — fix request
429rate_limit_exceededMonthly quota, burst, or auth-failure limiterYes — wait for Retry-After
500internal_error / operation codesUnexpected failure; match rating apply may leave disputedCautious — see below
503service_unavailableTemporary dependency issueYes — bounded backoff
504request_timeoutHandler ran longer than 25 secondsYes for reads; matches need same ref

Related validation codes you may also see: invalid_idempotency_key, unknown_participant, duplicate_players, invalid_teams, unknown_or_private_player, unknown_profiles, unknown_provider, provider_inactive.

Troubleshooting

  • 401 on the first call: use Authorization: Bearer plus the key, or X-API-Key. A revoked key looks the same as a wrong key.
  • 402 with a live key: the subscription is not active or trialing. Past-due subscriptions can still read.
  • 403 with a test key on POST: test keys are read-only. Create a live key after you subscribe.
  • 409 on a match: you reused external_ref for a different winner or trust tier. Use a new ref to record a different result.
  • 422 on predict: the four ids must be distinct public players.
  • 429: wait for the Retry-After header. Reads are safe to retry. Match writes are safe to retry when you send the same external_ref. See rate limits.
  • 504: retry an idempotent read. For a match submit, retry with the same reference so a slow success is not applied twice.
  • Null display_name, country_code, or city: those fields are optional on the profile. Treat null as “not set”.

Client retry guidance

  • Use configurable timeouts under the 25s server limit
  • Retry only transient failures (429, 503, 504) with exponential backoff and jitter
  • Respect Retry-After when present
  • Do not retry 401, 402, 403, 404, 409, 413, or 422 without changing the request
Errors · PadelRank Developers