Skip to main content

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

https://togacha.com

Authentication

The API uses two authentication methods:

API Key Authentication

Include your app’s API key in the apikey header for all requests:
apikey: tgc_public_1234567890abcdef
Each API key is associated with a specific app and organization.

Bearer Token Authentication

For player-specific operations, include the JWT token obtained from login/register:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

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