HatchedDocs
ReferenceWidgets

League widget

Seasonal tier standing — live cohort board, promotion target, and Boss Fight progress.

Mount

<script src="https://cdn.hatched.live/widget.js" data-embed-token="EMBED_TOKEN" defer></script>

<div data-hatched-mount="league"></div>

The League widget is read-only, so an embed token is enough.

Script attributes

AttributeValuesDefault
data-embed-tokenembed tokenread-only
data-session-tokenwidget session tokenread-only
data-themelight darklight
data-api-base-urlAPI origin + /api/v1https://api.hatched.live/api/v1

Required scopes

  • read renders the tier banner, cohort standings and Boss Fight progress.

Plan & capability

  • Capability: leagues (plan entitlement + a tenant toggle in Settings → Capabilities; on by default).
  • Minimum plan: Growth. The capability is enforced at the controller, so:
    • When the plan does not entitle LEAGUES the endpoints return 403 plan_feature_locked.
    • When the tenant has switched the leagues toggle off the endpoints return 403 capability_disabled.
    • When entitled and enabled but no season is running (or the buddy is not enrolled) the endpoints return an available: false snapshot and the widget renders nothing.

Endpoints

MethodPathPurpose
GET/widget/leagues/meLive tier, cohort standings, promotion target, demotion flag
GET/widget/leagues/boss-fightSeason Boss Fight challenge — progress, target, leaderboard