Casino System Integration
The Casino Integration APIs provide external access for casino operators to integrate tournament functionality into their platforms. These are the primary APIs used for tournament management, player registration, results access, and event handling.Overview
Casino System Integration focuses on external APIs that enable casino operators to:- Create and manage tournaments
- Register and manage players
- Access real-time leaderboards and results
- Receive webhook notifications for tournament events
- Handle player transactions (buy-ins, rebuys, refunds)
Integration Pattern: Casino System ↔ Tournament System via external APIs with operator authentication and role-based permissions.
API Categories
Authentication & Security
API key management, role-based permissions, and security best practices.
Tournament Management
Create, update, cancel, and monitor tournaments across your platform.
Player Management
Register players, handle rebuys, manage sessions, and track participation.
Results & Leaderboards
Access real-time rankings, final results, prize distributions, and historical data.
Authentication Model
All Casino Integration APIs use operator API keys with role-based permissions:Permission Structure
tournaments.read- View tournaments and statustournaments.write- Create and update tournamentstournaments.delete- Cancel tournamentsplayers.read- View player data and registrationsplayers.write- Register and manage playersresults.read- Access results and leaderboard data
Common Integration Patterns
1. Tournament Lifecycle Management
1
Create Tournament
Casino System creates tournament via
POST /api/tournaments2
Player Registration
Players register through
POST /api/tournaments/{id}/players3
Tournament Monitoring
Monitor status via
GET /api/tournaments/{id}/status4
Results Access
Retrieve results via
GET /api/tournaments/{id}/results2. Real-time Event Handling
- Webhook Events
- SQS Events
HTTP Webhooks for real-time notifications:
- Tournament started/completed events
- Player registration/elimination notifications
- Results and prize distribution updates
- System status changes and alerts
API Endpoints Overview
Tournament Management
Player Management
Results & Leaderboards
Data Flow Architecture
Communication Patterns
- Casino → Tournament: External APIs with operator authentication
- Tournament → Casino: SQS events and HTTP webhooks
- UI Integration: postMessage events between game and casino interfaces
- Real-time Updates: WebSocket connections for live leaderboards
Error Handling & Best Practices
HTTP Status Codes
200 OK- Successful operation201 Created- Resource created successfully400 Bad Request- Invalid request parameters401 Unauthorized- Invalid or missing API key403 Forbidden- Insufficient permissions404 Not Found- Tournament or resource not found409 Conflict- Resource conflict (duplicate registration)429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Server error
Rate Limiting
- Standard Operations: 100 requests per minute per API key
- Tournament Creation: 10 requests per minute per API key
- Player Registration: 200 requests per minute per API key
- Results Access: 500 requests per minute per API key
Retry Logic
Integration Examples
Basic Tournament Creation
Player Registration
Multi-Tenant Architecture
All APIs are scoped to your operator account. You can only access tournaments and players within your operator tenant.
Operator Isolation
- Data Scoping: All data automatically filtered by operator ID
- API Key Scoping: Keys only access data within operator boundaries
- Resource Isolation: No cross-operator data access or interference
- Independent Configuration: Webhook URLs, settings, and preferences per operator

