Game Loom
  1. Points
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
        POST
      • Get user points
        GET
      • Get Specific user point
        GET
    • 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
      • Submit score to a leaderboard
      • Get user's leaderboard participation history
      • Get leaderboard details
      • Get leaderboard ranking
      • Get user's record for a leaderboard
      • Get user's entry history for a leaderboard
    • 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. Points

Record user point event

POST
api/v1/rewards/user/{userKey}/points
Records a point transaction event for a user, updating their points balance.
Idempotency Key
Always generate a unique idempotencyKey per logical action
Reusing the same idempotencyKey will prevent duplicate point records
This is especially important when:
Retrying failed requests
Handling network timeouts
Processing webhook or background jobs
Best practice:
Use a UUID (e.g. 550e8400-e29b-41d4-a716-446655440000) as the idempotencyKey.

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'api/v1/rewards/user/{{user-key}}/points' \
--header 'x-api-key:  {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "idempotencyKey": "{{$string.uuid}}",
  "companyId": "{{$string.uuid}}",
  "userKey": "{{$string.uuid}}",
  "pointId": "{{$string.uuid}}",
  "amount": {{$number.int(min=1,max=100000)}},
  "actionSource": 2,
  "actionType": 1
}'
Response Response Example
{"amount":92052,"pointId":"68e3ee00d81b74c5fe9ac28c","userKey":"1765133166042","pointName":"New Pointing system - 1759768062586"}
Modified at 2025-12-23 15:33:29
Previous
Overview
Next
Get user points
Built with