Get Starting
The iGaming API lets integrators authenticate, manage operator profiles, configure games, create player sessions, and retrieve transactions and webhook logs. It is intended for platforms integrating scratch-card style games into their own ecosystems.
Base URL
Section titled “Base URL”Use the base URL provided by the API provider, for example:
https://sandbox.api.xigsapi.comAll endpoints below are prefixed with /v1.
Main API Usage Flow
Section titled “Main API Usage Flow”- Authenticate with API Key to get
accessTokenandsignatureToken. - Cache tokens securely.
- Create a profile (operator/integrator/demo).
- Create or update game configurations for a profile.
- Authenticate or create users and create game sessions.
- Fetch transactions, user lists, and webhook logs as needed.
Flowchart
Section titled “Flowchart”graph TD
A[API Key] --> B[POST /v1/auth/login]
B --> C[Receive accessToken + signatureToken]
C --> D[Cache tokens securely]
D --> E[Create Profile]
E --> F[Create or Update Games]
F --> G[Authenticate or Create User]
G --> H[Create Game Session]
H --> I[Gameplay + Transactions]
I --> J[Fetch Transactions / Webhook Logs]
C --> K{Token expired?}
K -- Yes --> B
K -- No --> D
Sections
Section titled “Sections”- Authentication: see auth.md
- Profiles: see profiles.md
- Users: see users.md
- Games: see games.md
- Game Sessions: see sessions.md
- Transactions: see transactions.md
- Webhooks: see webhooks.md
- Error Handling: see errors.md
- Best Practices: see best-practices.md