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

# List top rewards by redemptions

> Ranks rewards by redemption count through the Portal API.

See the [Gateway API entry](/api-reference/gateway/analytics/list-top-rewards-by-redemptions) for the full description.



## OpenAPI

````yaml /openapi/kintra-app.json get /tenant/{tenantId}/analytics/top-rewards
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /tenant/{tenantId}/analytics/top-rewards:
    get:
      tags:
        - Analytics
      summary: List top rewards by redemptions
      description: >-
        Ranks rewards by redemption count through the Portal API.


        See the [Gateway API
        entry](/api-reference/gateway/analytics/list-top-rewards-by-redemptions)
        for the full description.
      operationId: GetTenantAnalyticsTopRewardsByRedemptions
      parameters:
        - in: path
          name: tenantId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApiResponse_ITenantTopRewardsByRedemptionsAnalyticsResponseDto_
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Tenant not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security:
        - auth0_jwt: []
components:
  schemas:
    ApiResponse_ITenantTopRewardsByRedemptionsAnalyticsResponseDto_:
      additionalProperties: false
      properties:
        data:
          $ref: >-
            #/components/schemas/ITenantTopRewardsByRedemptionsAnalyticsResponseDto
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ITenantTopRewardsByRedemptionsAnalyticsResponseDto:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/ITenantTopRewardRedemptionsItemDto'
          type: array
        tenant_id:
          type: string
        total_redemptions:
          format: double
          type: number
      required:
        - tenant_id
        - total_redemptions
        - items
      type: object
    ITenantTopRewardRedemptionsItemDto:
      additionalProperties: false
      description: Top rewards by redemption count (tenant portal + gateway analytics).
      properties:
        redemption_count:
          format: double
          type: number
        reward:
          $ref: '#/components/schemas/IRewardResponse'
        share_of_tenant_redemptions_percent:
          format: double
          type: number
      required:
        - reward
        - redemption_count
        - share_of_tenant_redemptions_percent
      type: object
    IRewardResponse:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          type: string
        description:
          nullable: true
          type: string
        id:
          type: string
        is_active:
          type: boolean
        metadata: {}
        min_tier_id:
          description: >-
            Optional tier gate — reward shown/redeemable only at/above this
            tier. `null` = all tiers.
          nullable: true
          type: string
        onchain_asset_id:
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/RewardStatus'
            - type: string
        tenant_id:
          type: string
        title:
          type: string
        updated_at:
          format: date-time
          type: string
        xp_cost:
          type: string
      required:
        - id
        - tenant_id
        - onchain_asset_id
        - title
        - xp_cost
        - is_active
        - status
      type: object
    RewardStatus:
      enum:
        - initialized
        - published
      type: string
  securitySchemes:
    auth0_jwt:
      bearerFormat: JWT
      description: Auth0 access token
      scheme: bearer
      type: http

````