v4

latestOpenAPI 3.1.02026-08-08221179273.1 KB
gamification

Earn Reward

Award tokens to the user for completing a reward source.

  • reward_key: The reward key identifier (e.g., 'quest_daily_reading', 'achievement_bible_read_10')

This endpoint is called when a user completes a quest, achievement, daily login, etc. The token amount is determined by the reward configuration in the database.

post/api/gamification/rewards/earn

Headers

x-user-idstring nullable

Request body

reward_keystring required

The reward key to earn tokens from (e.g., 'quest_daily_reading')

Response

Successful Response

successboolean required
messagestring required