gamification

Earn Tokens

Award a custom amount of tokens to the user directly.

  • amount: Number of tokens to award
  • source: Label describing the source of the award

This endpoint bypasses reward configuration and awards tokens directly.

post/api/gamification/tokens/earn

Request

Headers

x-user-idstring nullable

Request body

amountinteger required

The number of tokens to award

sourcestring required

The source label for this token award

Response

Successful Response

successboolean required
messagestring required

Changes

No recorded changes to this operation across all 23 revisions of this API.