Complete API documentation
Everything you need to integrate your clients with the Game API Platform: secure authentication, player management, wallet flows, game launches, and webhook callbacks.
Authentication
Clients authenticate using an active API key generated from the client portal. All requests must include the key in the Authorization header.
Authorization: Bearer YOUR_API_KEY
Player management
Create, credit, debit, and query player balances using API calls designed for fast integration.
- POST /api/player/create - Register a new player.
- POST /api/player/credit - Add balance to a player account.
- POST /api/player/debit - Subtract balance from a player account.
- GET /api/player/balance - Check current player balance.
Game launch and session flow
Use the game API to launch sessions, place bets, and process cashouts. Each game request is validated for client balance and game rules.
- POST /api/game/launch - Start a new game round.
- POST /api/game/bet - Place a bet for the player.
- POST /api/game/cashout - Close a bet and collect winnings.
Wallet and payment events
Manage deposit and withdrawal activity through API or portal actions. The wallet API keeps player and client balances synchronized.
- POST /api/wallet/deposit - Notify a new deposit transaction.
- POST /api/wallet/withdraw - Request a withdrawal from client balance.
- GET /api/wallet/balance - Retrieve wallet balance and stats.
Webhooks and notifications
Configure a webhook URL in the settings page to receive deposit updates, withdrawal events, and game results in real time.
The platform sends JSON payloads to your webhook endpoint when transactions change status or when API events occur.
Example integration
Use the code below as a reference when integrating game launches from your application.
fetch('https://api.yourdomain.com/api/game/launch', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
player_id: 1234,
game_code: 'aviator',
amount: 10.00
})
});