Submit a match
Record a 2v2 result from your tournament or league software so ratings can update.
Prerequisites
- Live API key with
write:matchesand an active subscription - Four participants resolvable by
usernameorprofile_id - A stable
external_reffrom your system for idempotent retries
Recommended sequence
- Ensure players exist (
POST /v1/playersif you manage registration) - Validate roster locally: two teams, left/right on each side
POST /v1/matcheswithtrust_tierthat matches your authority- Persist the returned match
idand checkrating_applied - On timeouts, retry with the same
external_ref
Code
curl -s -X POST "https://api.padelrank.me/v1/matches" \
-H "Authorization: Bearer $PADELRANK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_ref": "your-app-match-9821",
"played_at": "2026-06-16T18:30:00Z",
"winning_team": "A",
"trust_tier": "partner_attested",
"participants": [
{ "username": "maria_s", "team": "A", "court_position": "left" },
{ "username": "joao_p", "team": "A", "court_position": "right" },
{ "username": "ana_r", "team": "B", "court_position": "left" },
{ "username": "pedro_l", "team": "B", "court_position": "right" }
]
}'Errors and retries
409— same ref, different winner/trust tier; use a new ref for a different result422— validation, unknown participant, duplicate players, or set scores that disagree with the winner403— test key or missing scope