Skip to main content

What is Togacha?

Togacha is a modern Backend-as-a-Service (BaaS) platform designed for game developers. It provides essential backend infrastructure including player authentication, currency management, and gacha systems. Togacha handles the backend complexity so you can focus on creating amazing gameplay.

Core Features

Quick Start (Unity)

// Initialize the client
var client = new TogachaClient("https://togacha.com", "tgc_public_your_api_key");

// Register a new player
var response = await client.RegisterPlayerAsync(
    "[email protected]",
    "password123",
    "password123"
);
client.SetAuthToken(response.Token);

// Get currencies with player balances
var currencies = await client.GetCurrenciesAsync();

// Credit currency to player
await client.CreditCurrencyAsync(currencyId, 100.00m);

API Overview

Players API

Manage player accounts with secure authentication:
  • Register - Create new player accounts with email and password
  • Login - Authenticate players and receive JWT tokens

Currencies API

Handle in-game currencies and player balances:
  • Get Currencies - Retrieve all app currencies with player balances
  • Credit Balance - Add currency to player balances

Authentication

All API requests require an API key in the apikey header. Player-specific operations also require a JWT bearer token obtained from login or registration.
# API Key authentication
apikey: tgc_public_your_api_key

# Bearer token for player operations
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Community & Support

Each app gets its own isolated environment at https://togacha.com with a unique API key.