{"code":0,"msg":"API Documentation","data":{"name":"BetsFour Slotopol Aggregator API","version":"1.0.0","base_url":"https://betsfour.com/apifolder/api/webapi/SlotopolAPI.php","auth":"X-API-Key header or api_key in body. Optional: X-Signature + X-Timestamp for HMAC verification","endpoints":[{"method":"GET","path":"?action=health","desc":"Server health check"},{"method":"GET","path":"?action=docs","desc":"This documentation"},{"method":"POST","path":"?action=login","params":"api_key, player_id, username, currency","desc":"Create player session, returns JWT token + balance"},{"method":"POST","path":"?action=getGames","params":"api_key, provider?, search?","desc":"List all available games, filterable by provider/search"},{"method":"POST","path":"?action=launchGame","params":"api_key, token, game (alias like Novomatic/Book of Ra)","desc":"Create game session, returns game URL"},{"method":"POST","path":"?action=balance","params":"api_key, token or player_id","desc":"Get player balance"},{"method":"POST","path":"?action=deposit","params":"api_key, player_id, amount, reference_id?","desc":"Deposit to player wallet"},{"method":"POST","path":"?action=withdraw","params":"api_key, player_id, amount, reference_id?","desc":"Withdraw from player wallet"},{"method":"POST","path":"?action=spin","params":"api_key, gid, bet, sel, slotopol_token","desc":"Execute spin with seamless wallet (auto deduct/payout)"},{"method":"POST","path":"?action=collect","params":"api_key, gid, slotopol_token","desc":"Collect pending gain"},{"method":"POST","path":"?action=doubleup","params":"api_key, gid, mult, slotopol_token","desc":"Gamble (double up) pending gain"},{"method":"POST","path":"?action=gameInfo","params":"api_key, gid, slotopol_token","desc":"Get game session info"}],"seamless_wallet":"All balance is managed on our server. Spin deducts bet, adds winnings automatically. No need for separate wallet sync.","ggr_tracking":"Every spin is logged with bet/win amounts. GGR = total_bets - total_wins calculated per operator/provider/day.","providers":["Novomatic","CT Interactive","AGT","NetEnt","BetSoft","Aristocrat","IGT","Megajack","Playtech","Play'n GO","Slotopol"]}}