Matches
Submit 2v2 results so stored ratings can update.
POST /v1/matches
/v1/matcheswrite:matchesLive key required. Trust tiers partner_attested, tournament_official, and imported complete immediately and update ratings. player_confirmed is stored as pending and does not update ratings in this version. Authority is chosen from the trust tier. Integrators do not send a numeric weight. An official tournament result moves ratings further than an attested or imported result. The response field rating_applied is true only when that update was saved. A failure after the match row exists marks the match disputed.
| Field | Required | Notes |
|---|---|---|
played_at | yes | ISO 8601 datetime |
winning_team | yes | A or B |
participants | yes | Exactly 4. Each needs team, court_position (left/right), and profile_id or username |
trust_tier | no | Defaults to partner_attested |
external_ref | no | 1–128 chars; recommended for safe retries |
set_scores | no | Max 5 sets; must agree with winner; drawn sets rejected |
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" }
]
}'Success body:
{
"id": "55555555-5555-4555-8555-555555555555",
"status": "completed",
"rating_applied": true
}GET /v1/matches
/v1/matcheswrite:matchesread:playersLists matches your partner submitted, newest first. A test key can list them via read:players. Optional query: external_ref (exact), status (pending, completed, disputed, cancelled), limit (max 100), offset (max 10,000).
curl -s "https://api.padelrank.me/v1/matches?limit=20" \ -H "Authorization: Bearer $PADELRANK_API_KEY"
Body: matches plus pagination fields. Another partner's matches are not included.
GET /v1/matches/{id}
/v1/matches/{id}write:matchesread:playersReturns match metadata and participants for matches your partner submitted. Another partner's match is 404.
{
"id": "55555555-5555-4555-8555-555555555555",
"played_at": "2026-06-16T18:30:00.000Z",
"winning_team": "A",
"status": "completed",
"trust_tier": "partner_attested",
"external_ref": "your-app-match-9821",
"created_at": "2026-06-16T19:00:00.000Z",
"participants": [
{
"profile_id": "11111111-1111-4111-8111-111111111111",
"username": "maria_s",
"team": "A",
"court_position": "left",
"won": true
}
]
}Idempotency
Send external_ref or an Idempotency-Key header (8–128 characters: letters, digits, ., _, :, -). A retry with the same ref and the same winner and trust tier returns HTTP 200 with idempotent_replay: true and does not update ratings again. The same ref with a different winner or trust tier returns HTTP 409 idempotency_conflict. Record a corrected result under a new ref if you need a second match row. There is no delete call.