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
{
"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
| HTTP | error | When | Retry? |
|---|---|---|---|
| 401 | unauthorized | Missing, unknown, or revoked API key | No — fix credentials |
| 402 | payment_required | Live key without a usable subscription (writes; some reads if canceled) | No — fix billing |
| 403 | forbidden | Missing scope, or test key used for a write | No — use correct key/scope |
| 404 | not_found | Unknown, private, or another partner's resource | No |
| 409 | idempotency_conflict | Same external ref, different winner or trust tier | No — use a new ref |
| 413 | payload_too_large | Body larger than 256 KiB | No — shrink body |
| 422 | validation_error (and related codes) | Invalid body, query, username, roster, or participants | No — fix request |
| 429 | rate_limit_exceeded | Monthly quota, burst, or auth-failure limiter | Yes — wait for Retry-After |
| 500 | internal_error / operation codes | Unexpected failure; match rating apply may leave disputed | Cautious — see below |
| 503 | service_unavailable | Temporary dependency issue | Yes — bounded backoff |
| 504 | request_timeout | Handler ran longer than 25 seconds | Yes 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
401on the first call: useAuthorization: Bearerplus the key, orX-API-Key. A revoked key looks the same as a wrong key.402with a live key: the subscription is not active or trialing. Past-due subscriptions can still read.403with a test key onPOST: test keys are read-only. Create a live key after you subscribe.409on a match: you reusedexternal_reffor a different winner or trust tier. Use a new ref to record a different result.422on predict: the four ids must be distinct public players.429: wait for theRetry-Afterheader. Reads are safe to retry. Match writes are safe to retry when you send the sameexternal_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, orcity: 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-Afterwhen present - Do not retry 401, 402, 403, 404, 409, 413, or 422 without changing the request