> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.sandbox.blitzboardstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List seasons

> List available seasons. Use `_id` as `season` when creating a team. Optional filters: year, season name.



## OpenAPI

````yaml openapi.json GET /v1/blitz-api/seasons
openapi: 3.0.3
info:
  title: BlitzBoard Public API
  version: 1.0.0
  description: >-
    Organization-scoped public integration API for seasons, teams, players,
    schedules, and team player statistics.

    Authenticate with `Authorization: Bearer bb_live_...` (API key, not a login
    JWT).

    Generate keys from Organizations → organization detail at
    https://live.blitzboardstats.com/organizations.

    List seasons via GET /v1/blitz-api/seasons and pass `_id` as `season` when
    creating a team.
servers:
  - url: https://sandbox.blitzboardstats.com/api
    description: Sandbox
security:
  - ApiKeyBearer: []
tags:
  - name: Seasons
    description: List seasons to use when creating teams
  - name: Teams
    description: Team CRUD scoped to the API key organization
  - name: Players
    description: Players under a team
  - name: Schedules
    description: Schedule events under a team
paths:
  /v1/blitz-api/seasons:
    get:
      tags:
        - Seasons
      summary: List seasons
      description: >-
        List available seasons. Use `_id` as `season` when creating a team.
        Optional filters: year, season name.
      operationId: listSeasons
      parameters:
        - name: year
          in: query
          required: false
          schema:
            type: integer
            example: 2026
          description: Filter by year
        - name: season
          in: query
          required: false
          schema:
            type: string
            enum:
              - spring
              - summer
              - fall
              - winter
            example: fall
          description: Filter by season name
      responses:
        '200':
          description: Seasons listed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SeasonsListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    data:
                      - _id: 66f0a1b2c3d4e5f678901789
                        year: 2026
                        season: fall
                      - _id: 66f0a1b2c3d4e5f678901790
                        year: 2026
                        season: spring
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    SeasonsListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/SeasonItem'
      example:
        data:
          - _id: 66f0a1b2c3d4e5f678901789
            year: 2026
            season: fall
    SeasonItem:
      type: object
      required:
        - _id
        - year
        - season
      properties:
        _id:
          type: string
          example: 66f0a1b2c3d4e5f678901789
        year:
          type: integer
          example: 2026
        season:
          type: string
          enum:
            - spring
            - summer
            - fall
            - winter
          example: fall
      example:
        _id: 66f0a1b2c3d4e5f678901789
        year: 2026
        season: fall
    ErrorResponse:
      type: object
      properties:
        error:
          type: number
        message:
          type: string
        timestamp:
          type: string
          format: date-time
        traceId:
          type: string
      example:
        error: 40101
        message: Invalid API key
        timestamp: '2026-09-13T14:45:41.317Z'
        traceId: req_41f0e6c8a5ea232a
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Outside API key organization scope or insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Public integration API key (`bb_live_...`). Not a login JWT.

````