Skip to content

DoCurious API Reference / types / LeaderboardEntry

Interface: LeaderboardEntry

Defined in: types/gamification.types.ts:288

A single row in a leaderboard ranking (community, school, or global).

Properties

avatarUrl?

optional avatarUrl: string

Defined in: types/gamification.types.ts:293


badgeCount

badgeCount: number

Defined in: types/gamification.types.ts:297


displayName

displayName: string

Defined in: types/gamification.types.ts:292


rank

rank: number

Defined in: types/gamification.types.ts:290

1-based rank position


totalXp

totalXp: number

Defined in: types/gamification.types.ts:296


userId

userId: string

Defined in: types/gamification.types.ts:291


value

value: number

Defined in: types/gamification.types.ts:295

The metric value being ranked (could be XP, completions, or badges depending on board type)

DoCurious Platform Documentation