🎮 EticmaticGames

Independent Game Platform API

Business Portal

Welcome to EticmaticGames Platform

A powerful, independent game platform offering seamless integration for businesses. Built with modern technology and designed for scalability, security, and real-time performance.

4
Games Available
∞
Platforms Supported
100%
Real-time
Get Started View API Docs

🚀 Easy Integration

Simple REST API and WebSocket integration. Get started in minutes with comprehensive documentation and SDKs.

🔐 Secure & Reliable

HMAC-SHA256 webhook signatures, API key authentication, and complete transaction audit logging.

⚡ Real-time Events

WebSocket-based real-time gameplay with instant bet processing and result notifications.

Available Games

đŸ›Šī¸

Aviator Active RTP: 91%

Crash game with boost mode, player curation, and advanced game mechanics

đŸ’Ŗ

Mines Active RTP: 70%

Mine sweeper style game with 5x5 grid and progressive multipliers

đŸŽĩ

Bead12 (12 Tani) RTP: 70%

Traditional Pakistani board game with AI opponent

📊

High Low Active RTP: 80%

Number guessing game with lucky number 88 bonus

How to Integrate

Step 1: Register Your Business

Create a business account on the Business Portal and generate your API keys.

🔐 New Business Module:
  • Register at /business/register
  • Login to your dashboard at /business/login
  • Create and manage API keys
  • Configure game settings per business
  • Track sessions and analytics

Step 2: Create Game Session

POST /api/auth/create-session
Headers:
  X-Api-Key: your-api-key-here

Body:
{
  "game_slug": "aviator",
  "user_id": "user-uuid",
  "username": "player123",
  "balance": 1000,
  "currency": "PKR"
}

Response:
{
  "success": true,
  "session_token": "abc123...",
  "session_uuid": "session-uuid",
  "game": {
    "uuid": "game-uuid",
    "slug": "aviator",
    "title": "Aviator"
  },
  "websocket_url": "ws://localhost:3000"
}

Step 3: Connect WebSocket

const socket = io(websocket_url);

socket.emit('joinGame', {
    gameUuid: game.uuid,
    userUuid: user.uuid
});

// Listen for game events
socket.on('gameStateUpdate', (state) => {
    console.log('Game state:', state);
});

socket.on('betPlaced', (data) => {
    console.log('Bet confirmed:', data);
});

Step 4: Handle Webhooks

Set up webhook handlers to receive bet and result notifications:

// Webhook events:
- bet_placed    → Deduct user balance
- bet_result    → Credit winnings (if won)

// Signature verification required:
X-Webhook-Signature: HMAC-SHA256(payload, webhook_secret)

API Endpoints

POST /api/auth/create-session

Create a new game session for a user

POST /api/auth/validate-session

Validate an existing session token

GET /api/auth/games

Get list of available games

GET /api/games/:uuid/state

Get current state of a specific game

GET /api/games/:uuid/config

Get game configuration

GET /api/games/:uuid/history

Get game round history

Key Features