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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# League

> Learn a league's lineup slots and scoring before advising on it.

## Request contract

* **Method and path:** POST /apis/v1/sleeper-com/fantasy-football-leagues/league
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/sleeper-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "sleeper-com.fantasy-football-leagues.league",
  "method": "POST",
  "path": "/apis/v1/sleeper-com/fantasy-football-leagues/league",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "league_id": "1383225688680583168"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "league_id": {
              "description": "Sleeper league id (digits), from a sleeper.com/leagues/<id> URL or the Sleeper app. Pattern: ^[0-9]{6,20}$.",
              "type": "string"
            }
          },
          "required": [
            "league_id"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/sleeper-com.json POST /apis/v1/sleeper-com/fantasy-football-leagues/league
openapi: 3.1.0
info:
  description: ''
  title: Sleeper
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    sleeper-com:
      description: ''
      title: Sleeper
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: cf391ad7187c2c1139d70dff56e65ecde59fc2afb166f2faec300eb1aadaf82f
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/sleeper-com/fantasy-football-leagues/league
    - /apis/v1/sleeper-com/fantasy-football-leagues/league-rosters
    - /apis/v1/sleeper-com/fantasy-football-leagues/league-users
    - /apis/v1/sleeper-com/fantasy-football-leagues/matchups
    - /apis/v1/sleeper-com/fantasy-football-leagues/nfl-schedule
    - /apis/v1/sleeper-com/fantasy-football-leagues/nfl-state
    - /apis/v1/sleeper-com/fantasy-football-leagues/players
    - /apis/v1/sleeper-com/fantasy-football-leagues/transactions
    - /apis/v1/sleeper-com/fantasy-football-leagues/trending-players
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:96728a33ab183da93e74fef5843ff952c020ab49c3c8f8aca34749df62123712
    facts_hash: cf391ad7187c2c1139d70dff56e65ecde59fc2afb166f2faec300eb1aadaf82f
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: sleeper-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/sleeper-com/fantasy-football-leagues/league:
    post:
      tags:
        - Sleeper
      summary: League
      description: Learn a league's lineup slots and scoring before advising on it.
      operationId: sleeper-com.fantasy-football-leagues.league
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  league_id: '1383225688680583168'
            schema:
              additionalProperties: true
              properties:
                league_id:
                  description: >-
                    Sleeper league id (digits), from a sleeper.com/leagues/<id>
                    URL or the Sleeper app. Pattern: ^[0-9]{6,20}$.
                  type: string
              required:
                - league_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-21.
                  summary: Official provider example
                  value:
                    draft_id: '1383225689943048192'
                    league_id: '1383225688680583168'
                    name: '#SFB16 - Forza'
                    observed_at_ms: 1792622184887
                    previous_league_id: null
                    roster_positions:
                      - FLEX
                      - FLEX
                      - FLEX
                      - FLEX
                      - FLEX
                      - FLEX
                      - FLEX
                      - FLEX
                      - SUPER_FLEX
                      - SUPER_FLEX
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                      - BN
                    scoring_settings:
                      blk_kick: 0
                      bonus_fd_te: 1
                      bonus_fd_wr: 0
                      bonus_pass_yd_300: 10
                      bonus_pass_yd_400: 20
                      bonus_rec_rb: 0
                      bonus_rec_te: 1
                      bonus_rec_wr: 0
                      bonus_rec_yd_100: 0
                      bonus_rec_yd_200: 0
                      bonus_rush_rec_yd_100: 10
                      bonus_rush_rec_yd_200: 20
                      bonus_rush_yd_100: 0
                      bonus_rush_yd_200: 0
                      bonus_sack_2p: 0
                      bonus_tkl_10p: 0
                      def_st_ff: 0
                      def_st_fum_rec: 0
                      def_st_td: 6
                      def_td: 0
                      ff: 0
                      fgm_0_19: 0
                      fgm_20_29: 0
                      fgm_30_39: 0
                      fgm_40_49: 0
                      fgm_50p: 0
                      fgm_yds: 0
                      fgmiss: 0
                      fum: 0
                      fum_lost: 0
                      fum_rec: 0
                      fum_rec_td: 6
                      int: 0
                      kr_yd: 0
                      pass_2pt: 2
                      pass_cmp: 0
                      pass_cmp_40p: 10
                      pass_fd: 0
                      pass_int: 0
                      pass_td: 6
                      pass_td_40p: 0
                      pass_yd: 0.04
                      pr_yd: 0
                      pts_allow_0: 0
                      pts_allow_14_20: 0
                      pts_allow_1_6: 0
                      pts_allow_21_27: 0
                      pts_allow_28_34: 0
                      pts_allow_35p: 0
                      pts_allow_7_13: 0
                      rec: 0.5
                      rec_20_29: 10
                      rec_2pt: 2
                      rec_30_39: 10
                      rec_40p: 10
                      rec_fd: 0.5
                      rec_td: 6
                      rec_yd: 0.1
                      rush_2pt: 2
                      rush_40p: 10
                      rush_att: 0
                      rush_fd: 0.5
                      rush_td: 6
                      rush_yd: 0.1
                      sack: 0
                      safe: 0
                      st_ff: 0
                      st_fum_rec: 0
                      st_td: 6
                      st_tkl_solo: 0
                      xpm: 0
                      xpmiss: 0
                    season: '2026'
                    season_type: regular
                    settings:
                      bench_lock: 1
                      best_ball: 0
                      capacity_override: 0
                      commissioner_direct_invite: 0
                      daily_waivers: 1
                      daily_waivers_days: 5888
                      daily_waivers_hour: 8
                      daily_waivers_last_ran: 21
                      disable_adds: 0
                      disable_trades: 0
                      draft_rounds: 3
                      faab_suggestions: 0
                      last_report: 6
                      last_scored_leg: 6
                      league_average_match: 1
                      leg: 7
                      max_keepers: 1
                      max_subs: 0
                      num_teams: 12
                      offseason_adds: 0
                      pick_trading: 0
                      playoff_round_type: 0
                      playoff_seed_type: 0
                      playoff_teams: 6
                      playoff_type: 0
                      playoff_week_start: 0
                      reserve_allow_cov: 0
                      reserve_allow_dnr: 0
                      reserve_allow_doubtful: 0
                      reserve_allow_na: 0
                      reserve_allow_out: 0
                      reserve_allow_sus: 0
                      reserve_slots: 0
                      start_week: 1
                      sub_lock_if_starter_active: 0
                      sub_start_time_eligibility: 0
                      taxi_allow_vets: 0
                      taxi_deadline: 0
                      taxi_slots: 0
                      taxi_years: 0
                      trade_deadline: 9
                      trade_review_days: 3
                      type: 0
                      veto_auto_poll: 0
                      veto_show_votes: 0
                      veto_votes_needed: 6
                      waiver_bid_min: 0
                      waiver_budget: 100
                      waiver_clear_days: 0
                      waiver_day_of_week: 2
                      waiver_type: 2
                    status: in_season
                    total_rosters: 12
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One public Sleeper NFL league: name, season, status, team count,
            starting lineup slots (roster_positions), league settings (waivers,
            trade deadline, playoffs, reserve rules) and scoring settings. An
            unknown league is not_found.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `draft_id` | string |  |

            | `league_id` | string |  |

            | `name` | string |  |

            | `observed_at_ms` | number | When this program observed the
            upstream response (ms since epoch). |

            | `previous_league_id` | string |  |

            | `roster_positions` | string[] | Lineup slots in order; BN is
            bench, IR reserve, TAXI taxi. |

            | `scoring_settings` | object | Points per stat (e.g. rec, pass_td,
            rush_yd). |

            | `season` | string |  |

            | `season_type` | string |  |

            | `settings` | object | Sleeper league settings as published
            (waiver_type, waiver_budget, trade_deadline, playoff_week_start,
            reserve_slots, taxi_slots, ...). |

            | `status` | string | pre_draft, drafting, in_season or complete. |

            | `total_rosters` | number |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.