> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ekiden.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Get apiv1userrewards



## OpenAPI

````yaml /v2/api-reference/openapi.json get /api/v1/user/rewards
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.dev.ekiden.fi/
    description: Production (Canton Mainnet)
security: []
paths:
  /api/v1/user/rewards:
    get:
      tags:
        - User
      operationId: get_rewards_summary
      parameters:
        - name: limit
          in: query
          description: Ledger page size (default 20, max 100).
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int32
            minimum: 0
        - name: cursor
          in: query
          description: Opaque cursor from a previous response's `next_cursor`.
          required: false
          schema:
            type:
              - string
              - 'null'
      responses:
        '200':
          description: Reward summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RewardSummaryResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    RewardSummaryResponse:
      type: object
      description: '`GET /user/rewards` response (spec §10).'
      required:
        - xp_balance
        - closed_tournament_eligible
        - breakdown
        - ledger
        - referral
      properties:
        breakdown:
          $ref: '#/components/schemas/XpBreakdown'
        closed_tournament_eligible:
          type: boolean
          description: |-
            Closed-tournament eligibility: XP at/above the configured floor
            (`gateway.closed_tournament_min_xp`). Ranks removed 2026-07-20.
        ledger:
          type: array
          items:
            $ref: '#/components/schemas/RewardsLedgerEntry'
          description: One ledger page, newest first.
        next_cursor:
          type:
            - string
            - 'null'
          description: Cursor for the next ledger page; null when this page is the last.
        referral:
          $ref: '#/components/schemas/ReferralStatus'
        season:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SeasonStatus'
              description: >-
                Season-1 starting multiplier (season1-conversion §5); omitted
                entirely

                when the wallet's active-season multiplier is 1.0× (no positive
                band).
        xp_balance:
          type: string
    XpBreakdown:
      type: object
      description: |-
        Lifetime XP per source group (spec §10 `breakdown`). String-encoded
        integers like every XP amount on the wire.
      required:
        - taker
        - maker
        - position
        - quest
        - referral
      properties:
        maker:
          type: string
        position:
          type: string
        quest:
          type: string
        referral:
          type: string
        taker:
          type: string
    RewardsLedgerEntry:
      type: object
      description: One instant-XP ledger entry.
      required:
        - reason
        - delta_xp
        - created_at
      properties:
        created_at:
          type: string
          description: RFC 3339 UTC timestamp.
        delta_xp:
          type: string
        reason:
          type: string
    ReferralStatus:
      type: object
      description: Referral program status for the viewer as a referrer.
      required:
        - l1_bps_effective
        - downline_count
      properties:
        downline_count:
          type: integer
          format: int64
          description: Direct (L1) referrals.
          minimum: 0
        l1_bps_effective:
          type: integer
          format: int32
          description: L1 cut in bps — flat for everyone (ranks removed 2026-07-20).
          minimum: 0
    SeasonStatus:
      type: object
      description: >-
        Season-1 starting-multiplier block for `GET /user/rewards`

        (season1-conversion §5). Present only when the wallet's active-season

        multiplier is above 1.0× (a positive band); the whole block is omitted
        at

        1.0×.
      required:
        - name
        - multiplier_bps
        - source
      properties:
        multiplier_bps:
          type: integer
          format: int32
          description: >-
            The wallet's Season-1 starting multiplier in bps (always > 0 when
            the

            block is present).
          minimum: 0
        name:
          type: string
          description: Active season label (config `active_season`, e.g. `season1`).
        source:
          type: string
          description: >-
            The band the wallet's merged Total XP fell into, e.g. `band_2000bps`
            —

            the source of the multiplier.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.