---
title: "Earn Tokens"
method: POST
path: "/api/gamification/tokens/earn"
tags: ["gamification"]
---

# Earn Tokens

`POST /api/gamification/tokens/earn`

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.

## Headers

- `x-user-id` string, nullable

## Request body

- EarnTokensRequest — Request to earn a custom amount of tokens directly.
  - `amount` integer, required — The number of tokens to award
  - `source` string, required — The source label for this token award

## Response `200`

Successful Response

- EarnTokensResponse — Response for earning tokens.
  - `success` boolean, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/versions/523833f9e819/schema)
