> ## 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 schedules

> List live or upcoming schedules for the API key organization. Use query filter=live or filter=upcoming. When present, teamTwoId is looked up like teamOneId.

Use `filter=live` or `filter=upcoming` (default upcoming).

When a schedule has a linked opponent (`teamTwoId`), list items **look up** that team the same way as `teamOneId` (object with `_id`, `name`, and related team fields), instead of returning only a bare id string.


## OpenAPI

````yaml openapi.json GET /v1/blitz-api/schedules
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/schedules:
    get:
      tags:
        - Schedules
      summary: List schedules
      description: >-
        List schedules across the API key owner's teams in the key organization.


        Query `filter`:

        - `upcoming` (default) — future schedules that are not live

        - `live` — in-progress schedules


        Examples: `GET /v1/blitz-api/schedules?filter=upcoming` · `GET
        /v1/blitz-api/schedules?filter=live`
      operationId: listSchedules
      parameters:
        - name: filter
          in: query
          required: false
          description: upcoming (default) = future not live; live = in progress
          schema:
            type: string
            enum:
              - live
              - upcoming
            default: upcoming
            example: upcoming
        - name: pageNo
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            example: 1
        - name: size
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 10
            example: 10
        - name: searchTerm
          in: query
          required: false
          schema:
            type: string
          description: Search by event title or team name
        - name: tournamentId
          in: query
          required: false
          description: Filter by tournament id. Repeat for multiple values.
          schema:
            type: string
            example: 507f1f77bcf86cd799439011
      responses:
        '200':
          description: Schedules listed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SchedulesListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    data:
                      - _id: 66f0a1b2c3d4e5f678901456
                        eventType: game
                        eventTitle: Falcons vs Guest Team
                        startDate: '2026-10-01'
                        endDate: '2026-10-01'
                        teamOneId: 66f0a1b2c3d4e5f678901234
                        teamTwoName: Guest Team
                        isActive: false
                        createdAt: '2026-09-13T18:00:00.000Z'
                    total: 1
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    SchedulesListResponse:
      type: object
      additionalProperties: true
      example:
        data:
          - _id: 66f0a1b2c3d4e5f678901456
            eventType: GAME
            eventTitle: Falcons vs Guest Team
            startDate: '2026-10-01'
            endDate: '2026-10-01'
            teamId: 66f0a1b2c3d4e5f678901234
            teamTwoName: Guest Team
            createdAt: '2026-09-13T18:00:00.000Z'
        total: 1
      properties:
        data:
          type: array
          items:
            type: object
          example:
            - _id: 66f0a1b2c3d4e5f678901456
              eventType: GAME
              eventTitle: Falcons vs Guest Team
              startDate: '2026-10-01'
              endDate: '2026-10-01'
              teamId: 66f0a1b2c3d4e5f678901234
              teamTwoName: Guest Team
              createdAt: '2026-09-13T18:00:00.000Z'
        total:
          type: integer
          example: 1
    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.

````