{
  "openapi": "3.1.0",
  "info": {
    "title": "Puckera API",
    "version": "1.0.0",
    "summary": "Read-only access to your own pools.",
    "description": "Read-only API for the pools you belong to: standings, rosters, moves, draft, players, points, matchups and calendar. It serves pool data only, not raw NHL data. Within v1 only additions are made (new fields, routes, filters): ignore fields you do not know. Any breaking change ships as v2, and v1 keeps being served for 6 months with Deprecation and Sunset headers.",
    "x-fr": {
      "summary": "Accès en lecture à tes propres pools.",
      "description": "API en lecture seule pour les pools dont tu es membre : classement, effectifs, mouvements, repêchage, joueurs, points, duels et calendrier. Elle sert les données de tes pools, pas des données brutes de la LNH. Dans v1, seulement des ajouts (champs, routes, filtres) : ignore les champs que tu ne connais pas. Tout changement cassant sort en v2, et v1 reste servie 6 mois avec les en-têtes Deprecation et Sunset."
    },
    "x-rate-limit": {
      "per_minute": 60,
      "per_day": 10000
    }
  },
  "servers": [
    {
      "url": "/api/v1"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getIndex",
        "summary": "API index",
        "description": "Version and links. No token needed.",
        "x-fr": {
          "summary": "Index de l'API",
          "description": "Version et liens. Sans jeton."
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "name",
                    "version",
                    "read_only",
                    "openapi",
                    "documentation"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "read_only": {
                      "type": "boolean"
                    },
                    "openapi": {
                      "type": "string"
                    },
                    "documentation": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          }
        },
        "security": []
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "summary": "This document",
        "description": "The OpenAPI 3.1 description of the API. No token needed.",
        "x-fr": {
          "summary": "Ce document",
          "description": "La description OpenAPI 3.1 de l'API. Sans jeton."
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          }
        },
        "security": []
      }
    },
    "/pools": {
      "get": {
        "operationId": "listPools",
        "summary": "Pools this token can read",
        "description": "Pools in the token's scope where you are an active member. The demo pool is never listed.",
        "x-fr": {
          "summary": "Pools lisibles par ce jeton",
          "description": "Pools dans la portée du jeton où tu es membre actif. Le pool de démonstration n'y est jamais."
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Pool"
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/pools/{pool}": {
      "get": {
        "operationId": "getPool",
        "summary": "One pool",
        "description": "Type, format, season and league day of a pool.",
        "x-fr": {
          "summary": "Un pool",
          "description": "Type, format, saison et journée de ligue d'un pool."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Pool"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/pools/{pool}/standings": {
      "get": {
        "operationId": "getStandings",
        "summary": "Standings",
        "description": "Season standings, plus one table per division and the multi-season standings when the pool uses them. Same table as the standings export. 404 for pools without teams.",
        "x-fr": {
          "summary": "Classement",
          "description": "Classement de la saison, plus un tableau par division et le classement pluriannuel si le pool les utilise. Même tableau que l'export du classement. 404 pour un pool sans équipes."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Standing"
                      }
                    },
                    "divisions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "data"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "data": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/DivisionStanding"
                            }
                          }
                        }
                      }
                    },
                    "multi_season": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "object",
                          "required": [
                            "seasons",
                            "data"
                          ],
                          "properties": {
                            "seasons": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Season codes; each row has one numeric field per code."
                            },
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/pools/{pool}/rosters": {
      "get": {
        "operationId": "getRosters",
        "summary": "Rosters",
        "description": "Every active team's current roster, one row per player. Salary fields only in pools with a salary cap.",
        "x-fr": {
          "summary": "Effectifs",
          "description": "Effectif actuel de chaque équipe active, une ligne par joueur. Salaires seulement dans un pool avec plafond."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RosterPlayer"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/moves": {
      "get": {
        "operationId": "getMoves",
        "summary": "Moves",
        "description": "The season's latest roster moves (up to 500), newest first.",
        "x-fr": {
          "summary": "Mouvements",
          "description": "Les derniers mouvements de la saison (500 au plus), du plus récent au plus ancien."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Move"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/draft": {
      "get": {
        "operationId": "getDraft",
        "summary": "Draft",
        "description": "The season's draft picks, made or not.",
        "x-fr": {
          "summary": "Repêchage",
          "description": "Les choix du repêchage de la saison, faits ou non."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DraftPick"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/players": {
      "get": {
        "operationId": "getPlayers",
        "summary": "Players",
        "description": "The pool's Players list: pool points, pool salary, owner in this pool and projection, with the page's filters. A stats view adds a \"stats\" object.",
        "x-fr": {
          "summary": "Joueurs",
          "description": "La liste Joueurs du pool : points du pool, salaire du pool, propriétaire dans ce pool et projection, avec les filtres de la page. Une vue de stats ajoute un objet « stats »."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Position group.",
            "x-fr": "Groupe de position.",
            "schema": {
              "type": "string",
              "enum": [
                "F",
                "D",
                "G"
              ]
            }
          },
          {
            "name": "team",
            "in": "query",
            "required": false,
            "description": "NHL team abbreviation (MTL).",
            "x-fr": "Abréviation de l'équipe LNH (MTL).",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            }
          },
          {
            "name": "free",
            "in": "query",
            "required": false,
            "description": "1 = free agents only, 0 = owned players only.",
            "x-fr": "1 = joueurs libres, 0 = joueurs pris.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "View: pool (default) or a stats view.",
            "x-fr": "Vue : pool (défaut) ou une vue de stats.",
            "schema": {
              "type": "string",
              "enum": [
                "pool",
                "scoring",
                "usage",
                "goalies"
              ]
            }
          },
          {
            "name": "span",
            "in": "query",
            "required": false,
            "description": "Stats period of a stats view.",
            "x-fr": "Période des stats d'une vue de stats.",
            "schema": {
              "type": "string",
              "enum": [
                "season",
                "last",
                "playoffs",
                "l10",
                "d14",
                "d30"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort column (pts, ppg, proj, name, team, age, cap, club, or a stat of the view).",
            "x-fr": "Colonne de tri (pts, ppg, proj, name, team, age, cap, club, ou une stat de la vue).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "x-fr": "Sens du tri.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search by name.",
            "x-fr": "Recherche par nom.",
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Player"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    },
                    "total": {
                      "type": "integer"
                    },
                    "filters": {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string"
                        },
                        "span": {
                          "type": "string"
                        },
                        "sort": {
                          "type": "string"
                        },
                        "dir": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/points/daily": {
      "get": {
        "operationId": "getDailyPoints",
        "summary": "Points by team and day",
        "description": "Each team's points per league day. Retroactive days are flagged.",
        "x-fr": {
          "summary": "Points par équipe et par journée",
          "description": "Points de chaque équipe par journée de ligue. Les journées rétroactives sont marquées."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First day (YYYY-MM-DD).",
            "x-fr": "Première journée (AAAA-MM-JJ).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last day (YYYY-MM-DD).",
            "x-fr": "Dernière journée (AAAA-MM-JJ).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DailyPoints"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/points/players": {
      "get": {
        "operationId": "getPlayerPoints",
        "summary": "Dressed players of a day",
        "description": "Players dressed on a league day and the points they earned for their team.",
        "x-fr": {
          "summary": "Joueurs habillés d'une journée",
          "description": "Joueurs habillés une journée de ligue et les points rapportés à leur équipe."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "League day (YYYY-MM-DD); defaults to today.",
            "x-fr": "Journée de ligue (AAAA-MM-JJ) ; aujourd'hui par défaut.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PlayerPoints"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    },
                    "date": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    },
    "/pools/{pool}/matchups": {
      "get": {
        "operationId": "getMatchups",
        "summary": "Head-to-head matchups",
        "description": "Weeks, matchups and results. 404 when the pool's format has no matchups.",
        "x-fr": {
          "summary": "Duels du tête-à-tête",
          "description": "Semaines, duels et résultats. 404 si le format du pool n'a pas de duels."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MatchupWeek"
                      }
                    },
                    "format": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/pools/{pool}/calendar": {
      "get": {
        "operationId": "getCalendar",
        "summary": "Calendar",
        "description": "The pool's calendar events (rule dates, free-agent runs, playoffs, polls and bets), in your language.",
        "x-fr": {
          "summary": "Calendrier",
          "description": "Les événements du calendrier du pool (dates des règles, traitements des agents libres, séries, sondages et paris), dans ta langue."
        },
        "parameters": [
          {
            "name": "pool",
            "in": "path",
            "required": true,
            "description": "Pool slug, as in the pool's address (/p/{pool}).",
            "x-fr": "Identifiant du pool, comme dans son adresse (/p/{pool}).",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page (1 to 200, default 100).",
            "x-fr": "Nombre de lignes par page (1 à 200, 100 par défaut).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The \"next\" value of the previous response.",
            "x-fr": "Valeur « next » de la réponse précédente.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pool",
                    "season",
                    "data",
                    "next"
                  ],
                  "properties": {
                    "pool": {
                      "type": "string"
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "examples": [
                        "2026-27"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CalendarEvent"
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Cursor of the next page, or null on the last page."
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match)."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Personal token created in your profile (\"pk_…\"). Header only, never in the URL."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing, unknown, revoked or expired token, or token sent in the URL.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Unknown pool, pool outside the token's scope, or data this pool does not have. Never 403.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Rate limit reached (60 per minute, 10,000 per day, per token).",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Invalid query parameter.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthorized",
                  "token_in_url",
                  "not_found",
                  "method_not_allowed",
                  "invalid_parameter",
                  "rate_limited"
                ]
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "Pool": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "type",
          "role",
          "season",
          "format",
          "salary_cap",
          "timezone",
          "today"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "examples": [
              "KEEPER"
            ]
          },
          "role": {
            "type": "string",
            "examples": [
              "GOVERNOR"
            ]
          },
          "season": {
            "type": [
              "string",
              "null"
            ]
          },
          "format": {
            "type": [
              "string",
              "null"
            ]
          },
          "salary_cap": {
            "type": "boolean"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          },
          "today": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Current league day."
          }
        }
      },
      "Standing": {
        "type": "object",
        "required": [
          "club_id",
          "abbreviation",
          "rank",
          "club",
          "manager",
          "points",
          "behind",
          "yesterday",
          "last_7_days",
          "last_30_days"
        ],
        "properties": {
          "club_id": {
            "type": "integer"
          },
          "abbreviation": {
            "type": [
              "string",
              "null"
            ]
          },
          "rank": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "manager": {
            "type": [
              "string",
              "null"
            ]
          },
          "points": {
            "type": "number",
            "description": "Two decimals."
          },
          "behind": {
            "type": "number",
            "description": "Two decimals."
          },
          "yesterday": {
            "type": "number",
            "description": "Two decimals."
          },
          "last_7_days": {
            "type": "number",
            "description": "Two decimals."
          },
          "last_30_days": {
            "type": "number",
            "description": "Last 30 completed league days (today excluded). Two decimals.",
            "x-fr": {
              "description": "30 dernières journées de ligue terminées (sans aujourd’hui). Deux décimales."
            }
          }
        }
      },
      "DivisionStanding": {
        "type": "object",
        "required": [
          "club_id",
          "division_rank",
          "club",
          "manager",
          "points",
          "gap",
          "rank"
        ],
        "properties": {
          "club_id": {
            "type": "integer"
          },
          "division_rank": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "manager": {
            "type": [
              "string",
              "null"
            ]
          },
          "points": {
            "type": "number",
            "description": "Two decimals."
          },
          "gap": {
            "type": "number",
            "description": "Two decimals."
          },
          "rank": {
            "type": "integer"
          }
        }
      },
      "RosterPlayer": {
        "type": "object",
        "required": [
          "club_id",
          "player_id",
          "club",
          "player",
          "position",
          "nhl_team",
          "status",
          "lineup",
          "games",
          "season_points",
          "club_points"
        ],
        "properties": {
          "club_id": {
            "type": "integer"
          },
          "player_id": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "player": {
            "type": "string"
          },
          "position": {
            "type": [
              "string",
              "null"
            ]
          },
          "nhl_team": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "examples": [
              "ROSTER"
            ]
          },
          "lineup": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "ACTIVE"
            ]
          },
          "salary": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Whole dollars; pools with a salary cap only."
          },
          "contract_end": {
            "type": [
              "string",
              "null"
            ]
          },
          "games": {
            "type": "integer"
          },
          "season_points": {
            "type": "number",
            "description": "Two decimals."
          },
          "club_points": {
            "type": "number",
            "description": "Two decimals."
          }
        }
      },
      "Move": {
        "type": "object",
        "required": [
          "id",
          "created_at",
          "club_id",
          "player_id",
          "date",
          "club",
          "type",
          "player",
          "position",
          "amount"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "club_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "player_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "club": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string",
            "examples": [
              "ADDED"
            ]
          },
          "player": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Whole dollars."
          }
        }
      },
      "DraftPick": {
        "type": "object",
        "required": [
          "id",
          "club_id",
          "original_club_id",
          "player_id",
          "picked_at",
          "round",
          "extra_pick",
          "overall",
          "club",
          "original_club",
          "player",
          "position",
          "nhl_team",
          "picked_on"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "club_id": {
            "type": "integer"
          },
          "original_club_id": {
            "type": "integer"
          },
          "player_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "picked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "kind": {
            "type": "string",
            "enum": [
              "MAIN",
              "ROOKIE"
            ],
            "description": "Only when the pool holds a rookie draft before its main draft: ROOKIE for a rookie-draft pick, MAIN for a main-draft pick. Rookie picks come first."
          },
          "round": {
            "type": "integer"
          },
          "extra_pick": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "EXTRA",
              null
            ],
            "description": "EXTRA for an extra pick in the round (given to the last teams of the final standings), otherwise null."
          },
          "overall": {
            "type": [
              "integer",
              "null"
            ]
          },
          "club": {
            "type": "string"
          },
          "original_club": {
            "type": [
              "string",
              "null"
            ],
            "description": "Set when the pick was traded."
          },
          "player": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": [
              "string",
              "null"
            ]
          },
          "nhl_team": {
            "type": [
              "string",
              "null"
            ]
          },
          "picked_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "Player": {
        "type": "object",
        "required": [
          "id",
          "first_name",
          "last_name",
          "position",
          "group",
          "nhl_team",
          "birth_date",
          "salary",
          "contract_end",
          "expiry_status",
          "entry_level",
          "injured",
          "owner",
          "games",
          "points",
          "points_per_game",
          "projected_points",
          "projected_games"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "group": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "F",
              "D",
              "G",
              null
            ]
          },
          "nhl_team": {
            "type": [
              "string",
              "null"
            ]
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "salary": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Pool salary, whole dollars."
          },
          "contract_end": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiry_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "entry_level": {
            "type": "boolean"
          },
          "injured": {
            "type": "boolean"
          },
          "owner": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "required": [
                  "club_id",
                  "club"
                ],
                "properties": {
                  "club_id": {
                    "type": "integer"
                  },
                  "club": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "games": {
            "type": "integer"
          },
          "points": {
            "type": "number",
            "description": "Two decimals."
          },
          "points_per_game": {
            "type": "number",
            "description": "Two decimals."
          },
          "projected_points": {
            "type": [
              "number",
              "null"
            ]
          },
          "projected_games": {
            "type": [
              "integer",
              "null"
            ]
          },
          "stats": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "number",
                "null"
              ]
            },
            "description": "Stats view only."
          }
        }
      },
      "DailyPoints": {
        "type": "object",
        "required": [
          "date",
          "club_id",
          "club",
          "points",
          "players",
          "retroactive"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "club_id": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "points": {
            "type": "number",
            "description": "Two decimals."
          },
          "players": {
            "type": "integer"
          },
          "retroactive": {
            "type": "boolean"
          }
        }
      },
      "PlayerPoints": {
        "type": "object",
        "required": [
          "date",
          "club_id",
          "club",
          "player_id",
          "player",
          "position",
          "games",
          "points"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "club_id": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "player_id": {
            "type": "integer"
          },
          "player": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "games": {
            "type": "integer"
          },
          "points": {
            "type": "number",
            "description": "Two decimals."
          }
        }
      },
      "MatchupWeek": {
        "type": "object",
        "required": [
          "week",
          "starts_on",
          "ends_on",
          "matchups"
        ],
        "properties": {
          "week": {
            "type": "integer"
          },
          "starts_on": {
            "type": "string",
            "format": "date"
          },
          "ends_on": {
            "type": "string",
            "format": "date"
          },
          "matchups": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "home",
                "away",
                "ties",
                "status"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "home": {
                  "$ref": "#/components/schemas/MatchupSide"
                },
                "away": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/MatchupSide"
                    }
                  ],
                  "description": "null = bye week."
                },
                "ties": {
                  "type": "integer"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "LIVE",
                    "FINAL"
                  ]
                }
              }
            }
          }
        }
      },
      "MatchupSide": {
        "type": "object",
        "required": [
          "club_id",
          "club",
          "score"
        ],
        "properties": {
          "club_id": {
            "type": "integer"
          },
          "club": {
            "type": "string"
          },
          "score": {
            "type": "number",
            "description": "Two decimals."
          }
        }
      },
      "CalendarEvent": {
        "type": "object",
        "required": [
          "id",
          "title",
          "all_day",
          "date",
          "starts_at",
          "ends_at",
          "description",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean"
          },
          "date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}
