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.

  1. Embed the platform script on your page — add the script tag, using the data-white-label value provided by your key account manager, and the <view-port> wrapper where the game should render. See Front End → Integration.

  2. Build the token generation endpoint — a server-side endpoint that signs a JWT (HS256, with id, username, exp and iat claims) for the currently logged-in user. Ready-made examples for Node.js, Python, PHP, .NET, Java and Kotlin: Authentication → Implementation Examples.

  3. Pass the token to the platform — set data-token on the script tag, or assign it at runtime with window.ftWidgets.config.token = token. See Front End → Configuration options.

  4. 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 OK on success or a non-2XX status with an { "error": "..." } body on failure. See the Payment API introduction and the Fantasy Sports callbacks.

  5. Submit your callback URLs to Scout — share the endpoint URLs with your key account manager, who activates them in the platform.

  6. Set up the CSS theme variables — override the theme variables so the games match your brand. See Theming / Styling.