{"openapi":"3.1.0","info":{"title":"ESPN API (Bowmark)","version":"e833508f87ff","description":"ESPN sports data. injuries reads a league's full injury report — the NFL injury report by default, also NBA, WNBA, MLB and NHL — with each injured player's team, position, status (Questionable, Out, Injured Reserve…), body part, expected return date and latest note, optionally for one team.\n\nEvery function Bowmark has for ESPN (espn.com) as one HTTP call. Each runs on Bowmark's infrastructure with the same billing, rules and response envelope as `POST /v1/run`. The whole API: https://api.bowmark.ai/openapi.json. Guide: https://bowmark.ai/docs/api.","contact":{"email":"support@bowmark.ai","url":"https://bowmark.ai/docs/api"}},"servers":[{"url":"https://api.bowmark.ai"}],"security":[{"bearer":[]},{"apiKeyHeader":[]}],"paths":{"/v1/sites/espn/listLeagues":{"post":{"operationId":"listLeagues","summary":"Every sport ESPN's core API tracks (call with no arguments), or every league slug under one sport (pass `sport`) — the door for a caller holding only a league's common name, before calling any other f","description":"Every sport ESPN's core API tracks (call with no arguments), or every league slug under one sport (pass `sport`) — the door for a caller holding only a league's common name, before calling any other function.\n\nCalls `bowmark.providers.espn.listLeagues`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<EspnLeagueCatalog>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListLeaguesArgs","description":"TypeScript: `ListLeaguesArgs`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/scoreboard":{"post":{"operationId":"scoreboard","summary":"A league's scoreboard for today, a date, a date range, or a football week — every game with teams, score, status, venue, broadcast and event id for getGame.","description":"A league's scoreboard for today, a date, a date range, or a football week — every game with teams, score, status, venue, broadcast and event id for getGame.\n\nCalls `bowmark.providers.espn.scoreboard`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ScoreboardResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ScoreboardArgs","description":"TypeScript: `ScoreboardArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getGame":{"post":{"operationId":"getGame","summary":"One game in full, with score by period, every player's box-score line, team stats, scoring plays, play-by-play, game leaders, venue, attendance, weather and officials.","description":"One game in full, with score by period, every player's box-score line, team stats, scoring plays, play-by-play, game leaders, venue, attendance, weather and officials. Takes an event id from scoreboard or teamSchedule.\n\nCalls `bowmark.providers.espn.getGame`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GameDetail>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetGameArgs","description":"TypeScript: `GetGameArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/standings":{"post":{"operationId":"standings","summary":"A league's current standings by conference and division — wins, losses, ties, win percentage, games back, streak, home and away records, points for and against, and playoff seed per team.","description":"A league's current standings by conference and division — wins, losses, ties, win percentage, games back, streak, home and away records, points for and against, and playoff seed per team.\n\nCalls `bowmark.providers.espn.standings`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<StandingsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/StandingsArgs","description":"TypeScript: `StandingsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/injuries":{"post":{"operationId":"injuries","summary":"The ESPN injury report for a league — NFL by default — every injured player with team, position, status, body part, expected return date and the latest news note.","description":"The ESPN injury report for a league — NFL by default — every injured player with team, position, status, body part, expected return date and the latest news note. Pass `team` to narrow to one team. Call with no arguments for the full NFL injury report.\n\nCalls `bowmark.providers.espn.injuries`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<EspnInjuryReport>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/InjuriesArgs","description":"TypeScript: `InjuriesArgs`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/listTeams":{"post":{"operationId":"listTeams","summary":"Every team in a league with its ESPN id, abbreviation, name, location, colours and logo — the door a caller holding a team's name (\"Chiefs\", \"KC\", \"Kansas City\") needs before asking for that team's sc","description":"Every team in a league with its ESPN id, abbreviation, name, location, colours and logo — the door a caller holding a team's name (\"Chiefs\", \"KC\", \"Kansas City\") needs before asking for that team's schedule, roster or stats.\n\nCalls `bowmark.providers.espn.listTeams`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListTeamsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListTeamsArgs","description":"TypeScript: `ListTeamsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/teamSchedule":{"post":{"operationId":"teamSchedule","summary":"One team's full season schedule — every game with date, opponent, home or away, TV, result and score once played, and the event id for getGame.","description":"One team's full season schedule — every game with date, opponent, home or away, TV, result and score once played, and the event id for getGame. Takes a season and season type (preseason, regular, postseason).\n\nCalls `bowmark.providers.espn.teamSchedule`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<TeamScheduleResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TeamScheduleArgs","description":"TypeScript: `TeamScheduleArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/teamRoster":{"post":{"operationId":"teamRoster","summary":"One team's current roster, grouped as ESPN groups it (offense, defense, special teams; injured reserve; practice squad) — every player with jersey number, position, age, height, weight, experience, co","description":"One team's current roster, grouped as ESPN groups it (offense, defense, special teams; injured reserve; practice squad) — every player with jersey number, position, age, height, weight, experience, college, status and the ESPN athlete id getPlayer takes.\n\nCalls `bowmark.providers.espn.teamRoster`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<TeamRosterResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TeamRosterArgs","description":"TypeScript: `TeamRosterArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/search":{"post":{"operationId":"search","summary":"ESPN's own site search — players, teams, leagues and articles matching free text, each with its ESPN id and sport.","description":"ESPN's own site search — players, teams, leagues and articles matching free text, each with its ESPN id and sport. The door for getPlayer: a caller holding \"Mahomes\" gets the athlete id here.\n\nCalls `bowmark.providers.espn.search`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SearchResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SearchArgs","description":"TypeScript: `SearchArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getPlayer":{"post":{"operationId":"getPlayer","summary":"One player's page — team, position, jersey, age, height, weight, college, status and headshot.","description":"One player's page — team, position, jersey, age, height, weight, college, status and headshot. Takes an athlete id from search or teamRoster.\n\nCalls `bowmark.providers.espn.getPlayer`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Player>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetPlayerArgs","description":"TypeScript: `GetPlayerArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/news":{"post":{"operationId":"news","summary":"The latest ESPN headlines for a league, optionally narrowed to one team — headline, description, byline, published time and article id for getArticle.","description":"The latest ESPN headlines for a league, optionally narrowed to one team — headline, description, byline, published time and article id for getArticle.\n\nCalls `bowmark.providers.espn.news`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<NewsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/NewsArgs","description":"TypeScript: `NewsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getTeam":{"post":{"operationId":"getTeam","summary":"One team's page header — record, standing in its division, next game, coach, venue and links — by name, abbreviation or ESPN id.","description":"One team's page header — record, standing in its division, next game, coach, venue and links — by name, abbreviation or ESPN id.\n\nCalls `bowmark.providers.espn.getTeam`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GetTeamResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetTeamArgs","description":"TypeScript: `GetTeamArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/teamStats":{"post":{"operationId":"teamStats","summary":"One team's season statistics, team totals and per-game, with its league rank in each category.","description":"One team's season statistics, team totals and per-game, with its league rank in each category.\n\nCalls `bowmark.providers.espn.teamStats`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<TeamStatsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TeamStatsArgs","description":"TypeScript: `TeamStatsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/statLeaders":{"post":{"operationId":"statLeaders","summary":"A league's season leaderboard — every stat category (passing yards, points per game, home runs, goals, …) with its ranked leaders, each player's team and value.","description":"A league's season leaderboard — every stat category (passing yards, points per game, home runs, goals, …) with its ranked leaders, each player's team and value. Pass `category` to narrow to one.\n\nCalls `bowmark.providers.espn.statLeaders`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<StatLeadersResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/StatLeadersArgs","description":"TypeScript: `StatLeadersArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/fantasyPlayers":{"post":{"operationId":"fantasyPlayers","summary":"ESPN Fantasy's public player board for fantasy football, baseball, basketball or hockey — each player's projected and season points, position rank, ADP, percent rostered and started, and injury status","description":"ESPN Fantasy's public player board for fantasy football, baseball, basketball or hockey — each player's projected and season points, position rank, ADP, percent rostered and started, and injury status. What a person reads before a draft or a waiver claim; no league needed.\n\nCalls `bowmark.providers.espn.fantasyPlayers`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyPlayersResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/FantasyPlayersArgs","description":"TypeScript: `FantasyPlayersArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/playerStats":{"post":{"operationId":"playerStats","summary":"One player's full statistics — season-by-season career totals in every category, plus this season's splits (home, away, by outcome, by victory margin, …).","description":"One player's full statistics — season-by-season career totals in every category, plus this season's splits (home, away, by outcome, by victory margin, …). Takes an athlete id from search or teamRoster.\n\nCalls `bowmark.providers.espn.playerStats`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<PlayerStatsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/PlayerStatsArgs","description":"TypeScript: `PlayerStatsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/playerGameLog":{"post":{"operationId":"playerGameLog","summary":"One player's game-by-game log for the current season — opponent, home or away, result, score and the full stat line for every game played, with the event id for getGame.","description":"One player's game-by-game log for the current season — opponent, home or away, result, score and the full stat line for every game played, with the event id for getGame. Takes an athlete id from search or teamRoster.\n\nCalls `bowmark.providers.espn.playerGameLog`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<PlayerGameLogResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/PlayerGameLogArgs","description":"TypeScript: `PlayerGameLogArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getArticle":{"post":{"operationId":"getArticle","summary":"The full text of one ESPN story — headline, byline, published and updated times, body paragraphs, images and the teams and players it is tagged with.","description":"The full text of one ESPN story — headline, byline, published and updated times, body paragraphs, images and the teams and players it is tagged with. Takes an article id from news, or an espn.com story URL.\n\nCalls `bowmark.providers.espn.getArticle`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<Article>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetArticleArgs","description":"TypeScript: `GetArticleArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getFantasyLeague":{"post":{"operationId":"getFantasyLeague","summary":"One ESPN fantasy league — settings, standings, this week's matchups and every team with its owner's display name.","description":"One ESPN fantasy league — settings, standings, this week's matchups and every team with its owner's display name. Reads a public league logged out; a private league answers 401 without the caller's own ESPN session. Takes a league id or a fantasy.espn.com league URL.\n\nCalls `bowmark.providers.espn.getFantasyLeague`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyLeagueResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetFantasyLeagueArgs","description":"TypeScript: `GetFantasyLeagueArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/listVideos":{"post":{"operationId":"listVideos","summary":"ESPN's latest highlight and analysis video clips for a league, optionally one team's — headline, description, duration, published time, thumbnail, the espn.com watch page and the teams and players eac","description":"ESPN's latest highlight and analysis video clips for a league, optionally one team's — headline, description, duration, published time, thumbnail, the espn.com watch page and the teams and players each clip is tagged with. Newest first.\n\nCalls `bowmark.providers.espn.listVideos`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListVideosResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListVideosArgs","description":"TypeScript: `ListVideosArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/getFantasyTeam":{"post":{"operationId":"getFantasyTeam","summary":"One team in an ESPN fantasy league — its roster with each player's lineup slot, projected and actual points this scoring period, and the team's record.","description":"One team in an ESPN fantasy league — its roster with each player's lineup slot, projected and actual points this scoring period, and the team's record. Same league access as getFantasyLeague: a public league reads logged out. Takes a league id and a team id from getFantasyLeague.\n\nCalls `bowmark.providers.espn.getFantasyTeam`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyTeamResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetFantasyTeamArgs","description":"TypeScript: `GetFantasyTeamArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/setFantasyLineup":{"post":{"operationId":"setFantasyLineup","summary":"Moves players between the CALLER's starting lineup and bench in one of their own ESPN fantasy leagues — each move a playerId with its from/to lineup slot ids (as getFantasyTeam returns them).","description":"Moves players between the CALLER's starting lineup and bench in one of their own ESPN fantasy leagues — each move a playerId with its from/to lineup slot ids (as getFantasyTeam returns them). Changes only the caller's own team; needs their ESPN sign-in.\n\nCalls `bowmark.providers.espn.setFantasyLineup`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyTransactionResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SetFantasyLineupArgs","description":"TypeScript: `SetFantasyLineupArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/addDropFantasyPlayer":{"post":{"operationId":"addDropFantasyPlayer","summary":"Adds a free agent to and/or drops a player from the CALLER's own team in one of their ESPN fantasy leagues.","description":"Adds a free agent to and/or drops a player from the CALLER's own team in one of their ESPN fantasy leagues. Needs their ESPN sign-in.\n\nCalls `bowmark.providers.espn.addDropFantasyPlayer`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyTransactionResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/AddDropFantasyPlayerArgs","description":"TypeScript: `AddDropFantasyPlayerArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/proposeFantasyTrade":{"post":{"operationId":"proposeFantasyTrade","summary":"Proposes a trade from the CALLER's own team to another team in their ESPN fantasy league — players sent and players asked for.","description":"Proposes a trade from the CALLER's own team to another team in their ESPN fantasy league — players sent and players asked for. The other owner must accept on ESPN. Needs the caller's ESPN sign-in.\n\nCalls `bowmark.providers.espn.proposeFantasyTrade`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<FantasyTransactionResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ProposeFantasyTradeArgs","description":"TypeScript: `ProposeFantasyTradeArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/createFantasyLeague":{"post":{"operationId":"createFantasyLeague","summary":"Creates a new free, private ESPN fantasy league (football, baseball, basketball or hockey) owned by the CALLER, with its name, size, scoring and draft type, and returns its id, page and invite link.","description":"Creates a new free, private ESPN fantasy league (football, baseball, basketball or hockey) owned by the CALLER, with its name, size, scoring and draft type, and returns its id, page and invite link. Needs the caller's ESPN sign-in.\n\nCalls `bowmark.providers.espn.createFantasyLeague`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<CreateFantasyLeagueResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/CreateFantasyLeagueArgs","description":"TypeScript: `CreateFantasyLeagueArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/submitPicks":{"post":{"operationId":"submitPicks","summary":"Enters the CALLER's picks in one of ESPN's free prediction games (NFL Pick'em, Survivor, college Pick'em, Bowl Mania, Tournament Challenge) by challenge key, each pick a proposition id and the chosen ","description":"Enters the CALLER's picks in one of ESPN's free prediction games (NFL Pick'em, Survivor, college Pick'em, Bowl Mania, Tournament Challenge) by challenge key, each pick a proposition id and the chosen outcome id. Needs the caller's ESPN sign-in.\n\nCalls `bowmark.providers.espn.submitPicks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<SubmitPicksResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SubmitPicksArgs","description":"TypeScript: `SubmitPicksArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/addFavorite":{"post":{"operationId":"addFavorite","summary":"Adds a team, league or player to the CALLER's My ESPN favourites and returns the updated list.","description":"Adds a team, league or player to the CALLER's My ESPN favourites and returns the updated list. Needs the caller's own ESPN sign-in.\n\nCalls `bowmark.providers.espn.addFavorite`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListFavoritesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/AddFavoriteArgs","description":"TypeScript: `AddFavoriteArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/removeFavorite":{"post":{"operationId":"removeFavorite","summary":"Removes one favourite (by its id from listFavorites) from the CALLER's My ESPN favourites and returns the updated list.","description":"Removes one favourite (by its id from listFavorites) from the CALLER's My ESPN favourites and returns the updated list. Needs the caller's own ESPN sign-in.\n\nCalls `bowmark.providers.espn.removeFavorite`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListFavoritesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/RemoveFavoriteArgs","description":"TypeScript: `RemoveFavoriteArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/listFavorites":{"post":{"operationId":"listFavorites","summary":"The CALLER's My ESPN favourites — the teams, leagues, players and fantasy teams they follow, each with ESPN's preference id, kind, display name and link.","description":"The CALLER's My ESPN favourites — the teams, leagues, players and fantasy teams they follow, each with ESPN's preference id, kind, display name and link. Needs the caller's own ESPN sign-in.\n\nCalls `bowmark.providers.espn.listFavorites`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListFavoritesResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/listMyFantasyTeams":{"post":{"operationId":"listMyFantasyTeams","summary":"The CALLER's own ESPN fantasy teams across every game (football, baseball, basketball, hockey) — sport, season, league id, league name, team id, team name and abbreviation.","description":"The CALLER's own ESPN fantasy teams across every game (football, baseball, basketball, hockey) — sport, season, league id, league name, team id, team name and abbreviation. The door for getFantasyLeague and every fantasy write when the caller holds only \"my league\". Needs the caller's own ESPN sign-in.\n\nCalls `bowmark.providers.espn.listMyFantasyTeams`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<ListMyFantasyTeamsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/teamDepthChart":{"post":{"operationId":"teamDepthChart","summary":"One team's depth chart — every formation ESPN publishes (offense, base defense, special teams), each position with its athletes in depth order (1 = starter) and their latest injury status.","description":"One team's depth chart — every formation ESPN publishes (offense, base defense, special teams), each position with its athletes in depth order (1 = starter) and their latest injury status.\n\nCalls `bowmark.providers.espn.teamDepthChart`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<TeamDepthChartResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TeamDepthChartArgs","description":"TypeScript: `TeamDepthChartArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/transactions":{"post":{"operationId":"transactions","summary":"A league's recent transactions — signings, releases, trades, waivers and injured-list moves — newest first, with date, team and the description ESPN prints.","description":"A league's recent transactions — signings, releases, trades, waivers and injured-list moves — newest first, with date, team and the description ESPN prints. Paged; optionally narrowed to one team.\n\nCalls `bowmark.providers.espn.transactions`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<TransactionsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TransactionsArgs","description":"TypeScript: `TransactionsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/odds":{"post":{"operationId":"odds","summary":"The betting lines ESPN shows for a league's games — spread, total and moneyline from each sportsbook it lists.","description":"The betting lines ESPN shows for a league's games — spread, total and moneyline from each sportsbook it lists. Pass gameId for one game, or omit it for every game on the current scoreboard. Read only; nothing is wagered.\n\nCalls `bowmark.providers.espn.odds`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<OddsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/OddsArgs","description":"TypeScript: `OddsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/draftPicks":{"post":{"operationId":"draftPicks","summary":"A league's draft pick by pick — round, pick, overall number, drafting team, the player with position, school, height and weight, and any trade note.","description":"A league's draft pick by pick — round, pick, overall number, drafting team, the player with position, school, height and weight, and any trade note. Pass season for a past year, round or team to narrow.\n\nCalls `bowmark.providers.espn.draftPicks`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<DraftPicksResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/DraftPicksArgs","description":"TypeScript: `DraftPicksArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/espn/rankings":{"post":{"operationId":"rankings","summary":"College polls — the AP Top 25, the Coaches Poll and (in season) the playoff rankings for college football and men's college basketball, with rank, previous rank, movement, points, first-place votes an","description":"College polls — the AP Top 25, the Coaches Poll and (in season) the playoff rankings for college football and men's college basketball, with rank, previous rank, movement, points, first-place votes and record. Pass poll to narrow to one.\n\nCalls `bowmark.providers.espn.rankings`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<RankingsResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/RankingsArgs","description":"TypeScript: `RankingsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your Bowmark API key."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-Bowmark-Key"}},"responses":{"NotFound":{"description":"No such site or function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}},"schemas":{"RunEnvelope":{"type":"object","description":"What a run returns. `status` says whether the SCRIPT succeeded. A script that threw or paused for a login is still HTTP 200. Branch on `status`, not on the HTTP code.","required":["ok","status","result","logs","error","ms"],"properties":{"runId":{"type":"string","description":"Stable id for this run. Quote it in a support or `report` message."},"ok":{"type":"boolean","description":"False only when the run produced nothing usable."},"status":{"type":"string","enum":["ok","error","partial","needs_user"],"description":"`partial`: the result is real but some calls failed (see `incomplete`); `ok` stays true. `needs_user`: a person must sign in to a site first. Relay `meta.handoff.url` to them, then run again."},"egress":{"type":"string","enum":["default","link"],"description":"The egress the run was given, present only when the request asked for one. `link`: every request went through the caller's own Chrome (Bowmark Buddy)."},"result":{"description":"Whatever the script `return`ed. Any JSON value."},"logs":{"type":"array","items":{"type":"string"},"description":"Lines the script wrote with `log(...)`."},"error":{"type":["string","null"],"description":"Why the run failed, in plain words. Null on success."},"ms":{"type":"integer","description":"How long the script itself ran, in milliseconds."},"queuedMs":{"type":"integer","description":"How long the run waited for a worker before starting. Present only when it was a second or more."},"needs":{"type":"array","description":"The sign-ins this script is waiting on. Present when `status` is `needs_user`.","items":{"type":"object","required":["capability","provider","providerTitle","kind"],"properties":{"capability":{"type":"string"},"provider":{"type":"string"},"providerTitle":{"type":"string","description":"The site's name, to show a person."},"kind":{"type":"string"}}}},"incomplete":{"type":"object","description":"Present only when `status` is `partial`: which calls did not answer.","properties":{"summary":{"type":"string"},"totalCalls":{"type":"integer"}},"additionalProperties":true},"emptyHanded":{"type":"object","description":"Present when the script returned nothing while its calls returned rows, usually a filter that matched none of the site's own labels. Lists the label values the calls actually returned.","additionalProperties":true},"notes":{"type":"array","description":"Caveats a call attached to a complete answer. Never changes `status`.","items":{"type":"object","properties":{"path":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}}}},"meta":{"type":"object","properties":{"handoff":{"type":"object","description":"A single-use sign-in link for a person to open. Expires at `expiresAt`.","properties":{"ref":{"type":"string"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"concurrency":{"type":"object","description":"On a 429: how many runs are in flight and when to retry.","properties":{"limit":{"type":"integer"},"inFlight":{"type":"integer"},"retryAfterSeconds":{"type":"integer"}}}},"additionalProperties":true},"notice":{"type":"object","description":"Set when the account owner has not accepted the current Terms. Relay it to them.","additionalProperties":true}}},"AddDropFantasyPlayerArgs":{"type":"object","properties":{"sport":{"type":"string"},"leagueId":{"anyOf":[{"type":"string"},{"type":"number"}]},"teamId":{"type":"number"},"season":{"type":"number"},"scoringPeriodId":{"type":"number"},"addPlayerId":{"type":"number"},"dropPlayerId":{"type":"number"}},"required":["sport","leagueId","teamId"],"additionalProperties":true},"AddFavoriteArgs":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"}},"required":["id","kind"],"additionalProperties":true},"CreateFantasyLeagueArgs":{"type":"object","properties":{"sport":{"anyOf":[{"const":"football"},{"const":"baseball"},{"const":"basketball"},{"const":"hockey"}]},"name":{"type":"string"},"size":{"type":"number"},"scoringType":{"type":"string"},"draftType":{"type":"string"},"draftDate":{"type":"string"},"season":{"type":"number"}},"required":["sport","name"],"additionalProperties":true},"DraftPicksArgs":{"type":"object","properties":{"league":{"type":"string"},"season":{"type":"number"},"round":{"type":"number"},"team":{"type":"string"}},"required":["league"],"additionalProperties":true},"FantasyPlayersArgs":{"type":"object","properties":{"sport":{"type":"string"},"season":{"type":"number"},"limit":{"type":"number"}},"required":["sport"],"additionalProperties":true},"GetArticleArgs":{"type":"object","properties":{"articleId":{"type":"string"}},"required":["articleId"],"additionalProperties":true},"GetFantasyLeagueArgs":{"type":"object","properties":{"sport":{"type":"string"},"leagueId":{"anyOf":[{"type":"string"},{"type":"number"}]},"season":{"type":"number"}},"required":["sport","leagueId"],"additionalProperties":true},"GetFantasyTeamArgs":{"type":"object","properties":{"sport":{"type":"string"},"leagueId":{"anyOf":[{"type":"string"},{"type":"number"}]},"teamId":{"anyOf":[{"type":"string"},{"type":"number"}]},"season":{"type":"number"}},"required":["sport","leagueId","teamId"],"additionalProperties":true},"GetGameArgs":{"type":"object","properties":{"eventId":{"type":"string"},"league":{"type":"string"}},"required":["eventId","league"],"additionalProperties":true},"GetPlayerArgs":{"type":"object","properties":{"league":{"type":"string"},"athleteId":{"type":"string"}},"required":["league","athleteId"],"additionalProperties":true},"GetTeamArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"}},"required":["league","team"],"additionalProperties":true},"InjuriesArgs":{"type":"object","properties":{"league":{"anyOf":[{"const":"nfl"},{"const":"nba"},{"const":"wnba"},{"const":"mlb"},{"const":"nhl"}]},"team":{"type":"string"}},"additionalProperties":true},"ListLeaguesArgs":{"type":"object","properties":{"sport":{"type":"string"}},"additionalProperties":true},"ListTeamsArgs":{"type":"object","properties":{"league":{"type":"string"}},"required":["league"],"additionalProperties":true},"ListVideosArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"},"limit":{"type":"number"}},"required":["league"],"additionalProperties":true},"NewsArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"}},"required":["league"],"additionalProperties":true},"OddsArgs":{"type":"object","properties":{"league":{"type":"string"},"gameId":{"type":"string"}},"required":["league"],"additionalProperties":true},"PlayerGameLogArgs":{"type":"object","properties":{"league":{"type":"string"},"athleteId":{"type":"string"}},"required":["league","athleteId"],"additionalProperties":true},"PlayerStatsArgs":{"type":"object","properties":{"league":{"type":"string"},"athleteId":{"type":"string"}},"required":["league","athleteId"],"additionalProperties":true},"ProposeFantasyTradeArgs":{"type":"object","properties":{"sport":{"type":"string"},"leagueId":{"anyOf":[{"type":"string"},{"type":"number"}]},"teamId":{"type":"number"},"season":{"type":"number"},"scoringPeriodId":{"type":"number"},"toTeamId":{"type":"number"},"sendPlayerIds":{"type":"array","items":{"type":"number"}},"receivePlayerIds":{"type":"array","items":{"type":"number"}}},"required":["sport","leagueId","teamId","toTeamId","sendPlayerIds","receivePlayerIds"],"additionalProperties":true},"RankingsArgs":{"type":"object","properties":{"league":{"type":"string"},"poll":{"type":"string"}},"additionalProperties":true},"RemoveFavoriteArgs":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":true},"ScoreboardArgs":{"type":"object","properties":{"league":{"type":"string"},"date":{"type":"string"},"dates":{"type":"string"},"seasonType":{"anyOf":[{"const":"preseason"},{"const":"regular"},{"const":"postseason"}]},"week":{"type":"number"}},"required":["league"],"additionalProperties":true},"SearchArgs":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"],"additionalProperties":true},"SetFantasyLineupArgs":{"type":"object","properties":{"sport":{"type":"string"},"leagueId":{"anyOf":[{"type":"string"},{"type":"number"}]},"teamId":{"type":"number"},"season":{"type":"number"},"scoringPeriodId":{"type":"number"},"moves":{"type":"array","items":{"type":"object","properties":{"playerId":{"type":"number"},"fromLineupSlotId":{"type":"number"},"toLineupSlotId":{"type":"number"}},"required":["playerId","fromLineupSlotId","toLineupSlotId"],"additionalProperties":true}}},"required":["sport","leagueId","teamId","moves"],"additionalProperties":true},"StandingsArgs":{"type":"object","properties":{"league":{"type":"string"},"season":{"type":"number"}},"required":["league"],"additionalProperties":true},"StatLeadersArgs":{"type":"object","properties":{"league":{"type":"string"},"category":{"type":"string"}},"required":["league"],"additionalProperties":true},"SubmitPicksArgs":{"type":"object","properties":{"challenge":{"type":"string"},"picks":{"type":"array","items":{"type":"object","properties":{"propositionId":{"type":"string"},"outcomeId":{"type":"string"}},"required":["propositionId","outcomeId"],"additionalProperties":true}},"entryName":{"type":"string"}},"required":["challenge","picks"],"additionalProperties":true},"TeamDepthChartArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"}},"required":["league","team"],"additionalProperties":true},"TeamRosterArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"}},"required":["league","team"],"additionalProperties":true},"TeamScheduleArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"},"season":{"type":"number"},"seasonType":{"type":"string"}},"required":["league","team","season"],"additionalProperties":true},"TeamStatsArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"}},"required":["league","team"],"additionalProperties":true},"TransactionsArgs":{"type":"object","properties":{"league":{"type":"string"},"team":{"type":"string"},"page":{"type":"number"},"limit":{"type":"number"}},"required":["league"],"additionalProperties":true}}}}