Independent Game Platform API
A powerful, independent game platform offering seamless integration for businesses. Built with modern technology and designed for scalability, security, and real-time performance.
Simple REST API and WebSocket integration. Get started in minutes with comprehensive documentation and SDKs.
HMAC-SHA256 webhook signatures, API key authentication, and complete transaction audit logging.
WebSocket-based real-time gameplay with instant bet processing and result notifications.
Crash game with boost mode, player curation, and advanced game mechanics
Mine sweeper style game with 5x5 grid and progressive multipliers
Traditional Pakistani board game with AI opponent
Number guessing game with lucky number 88 bonus
Create a business account on the Business Portal and generate your API keys.
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" }
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); });
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)
Create a new game session for a user
Validate an existing session token
Get list of available games
Get current state of a specific game
Get game configuration
Get game round history