HatchedDocs
ReferenceWidgets

Badges widget

A shelf of the buddy's earned and locked badges.

Mount

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

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

Required scopes

  • read

Badges are included in the shared /widget/state snapshot, so the widget stays in sync with the buddy widget without a second token.