Predict
Estimate how balanced a proposed 2v2 pairing is before the match starts.
POST /v1/intelligence/predict
Body: four player UUIDs in proposed teams order (A-left, A-right, B-left, B-right).
curl -s -X POST "https://api.padelrank.me/v1/intelligence/predict" \
-H "Authorization: Bearer $PADELRANK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"player_ids": [
"uuid-a", "uuid-b", "uuid-c", "uuid-d"
],
"format": "2v2"
}'Response:
{
"draw_probability": 0.11,
"balance_rating": "high",
"team_a": ["uuid-a", "uuid-b"],
"team_b": ["uuid-c", "uuid-d"]
}balance_rating is high, medium, or low. Higher draw probability → more even match. Use it to sort candidate pairings in matchmaking UIs.