Skip to content

Matches

Submit 2v2 results so stored ratings can update.

POST /v1/matches

POST/v1/matcheswrite:matches

Live 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.

FieldRequiredNotes
played_atyesISO 8601 datetime
winning_teamyesA or B
participantsyesExactly 4. Each needs team, court_position (left/right), and profile_id or username
trust_tiernoDefaults to partner_attested
external_refno1–128 chars; recommended for safe retries
set_scoresnoMax 5 sets; must agree with winner; drawn sets rejected
cURL
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:

json
{
  "id": "55555555-5555-4555-8555-555555555555",
  "status": "completed",
  "rating_applied": true
}

GET /v1/matches

GET/v1/matcheswrite:matchesread:players

Lists 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
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}

GET/v1/matches/{id}write:matchesread:players

Returns match metadata and participants for matches your partner submitted. Another partner's match is 404.

json
{
  "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.

Matches · PadelRank Developers