Getting Started
Follow these steps in order to integrate the Scout Fantasy Platform. Each step links to the reference page with full details. Your progress is saved in this browser, so you can check off steps as you complete them.
Embed the platform script on your page — add the script tag, using the
data-white-labelvalue provided by your key account manager, and the<view-port>wrapper where the game should render. See Front End → Integration.Build the token generation endpoint — a server-side endpoint that signs a JWT (HS256, with
id,username,expandiatclaims) for the currently logged-in user. Ready-made examples for Node.js, Python, PHP, .NET, Java and Kotlin: Authentication → Implementation Examples.Pass the token to the platform — set
data-tokenon the script tag, or assign it at runtime withwindow.ftWidgets.config.token = token. See Front End → Configuration options.Implement the wallet callback endpoints — the platform sends HTTP POST requests to your endpoints to place, refund and settle bets. A minimum viable implementation accepts these three callbacks, adjusts the user's balance, and responds
200 OKon success or a non-2XX status with an{ "error": "..." }body on failure. See the Payment API introduction and the Fantasy Sports callbacks.Submit your callback URLs to Scout — share the endpoint URLs with your key account manager, who activates them in the platform.
Set up the CSS theme variables — override the theme variables so the games match your brand. See Theming / Styling.