Game Loom
  1. Leaderboard
Game Loom
  • Game Loom
    • 👋 Welcome to Game Loom
  • Getting started
    • Introduction
    • 👤 Authentication
  • User Registration
    • Introduction
    • Single user registration
      POST
    • Bulk Register Users
      POST
  • Notifications
    • Overview
    • Receiving Event Notifications via Webhooks
    • Get All notifications for specific user
      GET
  • Rewards
    • Overview
    • Points
      • Record user point event
      • Get user points
      • Get Specific user point
    • Levels
      • Record user level event
      • Get user levels
      • Get Specific user level
    • Badges
      • Award badge to user
      • Get user badges
      • Get Specific user badge
  • Challenges (Gamification elements)
    • Introduction
    • Leaderboard
      • Get available leaderboards for user
        GET
      • Submit score to a leaderboard
        POST
      • Get user's leaderboard participation history
        GET
      • Get leaderboard details
        GET
      • Get leaderboard ranking
        GET
      • Get user's record for a leaderboard
        GET
      • Get user's entry history for a leaderboard
        GET
    • Survey
      • Overview
      • Get available surveys for user
      • Start a new survey participation
      • Get detailed user participation
      • Get user's survey participation history
      • Abandon survey participation
      • Save individual answer to survey question
      • Submit completed survey
      • Submit Survey with answers (One-Step Submission)
    • Open Challenge
      • Overview
      • Get available open challenges for user
      • Complete an open challenge
      • Get user's open challenge participation history
      • Get user open challenge by ID
    • Schemas
      • Survey Schame
  1. Leaderboard

Submit score to a leaderboard

POST
api/v1/user/{userKey}/leaderboards/{leaderboardId}/score
Submits a score entry to the leaderboard. Creates a user record if first entry, updates high score if applicable.

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'api/v1/user/{{user-key}}/leaderboards/{{leaderboard_id}}/score' \
--header 'x-api-key: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "score": 30,
  "metadata": null
}'
Response Response Example
{
    "entryId": "cc2ece8b-54d9-4717-964e-b1fb220887de",
    "score": 30,
    "isNewHighScore": false,
    "previousHighScore": 44,
    "currentRank": 1,
    "totalEntries": 4,
    "submittedAt": "2025-12-23T14:21:52.8271065Z"
}
Modified at 2025-12-23 14:24:01
Previous
Get available leaderboards for user
Next
Get user's leaderboard participation history
Built with