v4

latestOpenAPI 3.1.02026-08-08221179273.1 KB
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

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