Launch Games with Authenticated Player Session URLs
Use the /userAuth platform API to generate a signed game launch URL for any player, then redirect the player’s browser to start their session instantly.
To launch a game for a player, you call the GitSlotPark /userAuth endpoint with the player’s ID and the game you want to open. GitSlotPark returns an authenticated gameURL that is valid for that player’s session. You then redirect the player’s browser — or load the URL in an iframe — to start the game.
gameID values come from the /gameList API response. Fetch the game list first to get the IDs for all games available to your players. See the game list API reference.
Once you receive a successful response (result code 0), send the player to the gameURL:
New tab — open gameURL in a new browser tab for a full-page experience
Iframe — embed the URL in an <iframe> on your page to keep players within your platform UI
Same window — redirect the current page to gameURL if your UX calls for it
Launching games in a new tab or a full-screen iframe tends to give players the best experience. Check the game provider’s requirements — some games are not designed for small iframe viewports.