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.

API Reference

Complete REST API documentation

Unity SDK

Official SDK for Unity games

Dashboard

Manage your app and API keys

Core Features

Player Authentication

Complete authentication system with email/password registration and login

Economy System

Flexible currency management with balance tracking and credit operations

Analytics

Track player engagement and monitor economy health with balance analytics

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(
    "player@example.com",
    "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

Website

Visit our website

Issues & Feedback

Report bugs and request features

Contact

Get in touch with our team
Each app gets its own isolated environment at https://togacha.com with a unique API key.