🟢 API Online & Operational

Toto4D API Engine

Secure RESTful backend powering the Toto4D lottery platform. Handles authentication, betting, draws, payments, and real-time settlement.

v1.0 | Laravel 12.55.1 | PHP 8.3.6
System Status ✓ All Systems Go
Environment LOCAL
Current Time (WIB) --:--:--
🔗 https://api-totobaru.majestyenerbion.dev/api
PHP 8.3 Laravel 12.55.1 MySQL / Sanctum 🔐 JWT via Sanctum ⚡ RESTful API
🔐 Authentication
POST
/api/login
Authenticate user, returns Bearer token
POST
/api/logout
Invalidate current session token
GET
/api/me
Get authenticated user profile
🎮 Player
POST
/api/bet
Place batch bets (1D/2D/3D/4D/Side)
POST
/api/deposit
Submit deposit request with proof
POST
/api/withdraw
Request fund withdrawal
GET
/api/user/settings
Profile + support link
PATCH
/api/user/profile
Update player display name
PATCH
/api/user/password
Change account password
👤 Agent
GET
/api/agent/pending-requests
Pending deposit/WD for action cards
POST
/api/agent/deposit/{id}/approve
Approve player deposit
POST
/api/agent/deposit/{id}/reject
Reject player deposit request
GET
/api/agent/players
List all players in network
POST
/api/agent/players
Register new player account
GET
/api/agent/reports
Transaction & bet history report
⚡ Supermaster
POST
/api/master/draws
Submit draw result, auto-settle all bets
PATCH
/api/master/draws/{id}/resettle
Recalculate winners with corrected logic
GET
/api/master/agents
Manage agent network
GET
/api/master/banks
Bank account configuration
GET
/api/master/stats
Platform-wide financial statistics
GET
/api/master/bets
Global bet monitor with filters
👥 Role Architecture
👑
Supermaster
Full platform control. Submit draws, manage agents, view all financials.
📊
Accounting
Financial reports, transaction verification, commission tracking.
🤝
Agent
Manage players, approve deposits/withdrawals, daily reports.
🎮
Player
Place bets (1D–4D), deposit/withdraw funds, view history.