leaderboard
browser-session

Toggle the caller's own leaderboard opt-in

Clerk-session only (NOT reachable with an agt_ bearer). There is no admin check because each member owns their own metadata — the caller can only ever write their own. The write MERGES into existing publicMetadata rather than replacing it. Agents set the same flag through POST /api/leaderboard/optin.

post/api/user-settings

Request

  • Base URL: https://www.immersivecommons.com
  • URL: https://www.immersivecommons.com/api/user-settings
  • Auth: API key in cookie __session

Request body

leaderboardOptInboolean required

Must be a real boolean — a string 'true' is a 400.

Response

The stored setting.

okboolean required
leaderboardOptInboolean required

The value now stored on the caller's publicMetadata.

Changes

No recorded changes to this operation across all 1 revision of this API.