Skip to main content
GET
/
currencies
Get app currencies with player balances
curl --request GET \
  --url https://togacha.com/currencies \
  --header 'Authorization: Bearer <token>' \
  --header 'apikey: <api-key>'
{
  "data": [
    {
      "id": "019a7e05-e0d2-734c-ab75-52393c122992",
      "name": "Gold",
      "description": "Primary currency",
      "icon": "🪙",
      "balance": {
        "amount": "100.00"
      }
    },
    {
      "id": "019a7e05-e0d2-734c-ab75-52393c122995",
      "name": "Gems",
      "description": "Premium currency",
      "icon": "💎",
      "balance": {
        "amount": "50.00"
      }
    }
  ]
}

Authorizations

apikey
string
header
required

API key authentication for accessing platform resources.

To authenticate, include your app's API key in the 'apikey' header.

Each API key is associated with a specific app and organization. The API key determines which organization and app context your requests operate within.

Example: apikey: tgc_public_1234567890abcdef

Authorization
string
header
required

JWT token authentication for player-specific operations.

Obtain a JWT token by calling /players/login or /players/register. Include the token in the Authorization header.

Example: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Response

Successfully retrieved app currencies with player balances

data
object[]