For partner API requirements and webhook implementations, visit the Web Hooks page.
Overview
Stock provides a comprehensive game integration API that allows third-party vendors to seamlessly integrate our games into their websites. This documentation outlines the simple integration process for accessing and displaying our games through iframe embedding.Getting Started
To integrate Stock games into your platform, you’ll need:- A base URL provided by Stock
- An authorization token for API access
Authentication
All API requests must include an authorization token in the request headers. This token will be manually provided by Stock during the onboarding process.Game Integration Flow
Step 1: Request Game URL
To access any game, make a POST request to the external user endpoint:string
required
Game identifier from the available games list
string
required
Player’s display name
string
required
Unique user identifier from your system
Step 2: Receive Game URL
Step 3: Embed Game
Use the returned URL to embed the game in your frontend as an iframe:Available Games
Stock offers the following games for integration:Integration Requirements
iframe Support
Ensure your website can display iframes
Error Handling
Implement proper error handling for API requests
Token Management
Store and securely manage your authorization token
Data Validation
Validate user data before sending requests
Security Considerations
User Authentication
Implement proper user authentication on your platform
HTTPS Required
Ensure HTTPS is used for all API communications