Overview
The Togacha Platform API provides endpoints for player authentication and economy management. All API requests require authentication via API key, and player-specific operations also require a JWT bearer token.Base URL
Authentication
The API uses two authentication methods:API Key Authentication
Include your app’s API key in theapikey header for all requests:
Bearer Token Authentication
For player-specific operations, include the JWT token obtained from login/register:Available Endpoints
Players
- POST /players/register - Register a new player account
- POST /players/login - Login to an existing player account
Currencies
- GET /currencies - Get all app currencies with player balances
- POST /currencies//credit - Credit a player’s currency balance