API v1 / Start here
Authentication
Scope credentials to the application or user performing the action.
Application credentials
Issue a key from API Keys in the company workspace. Copy it at creation and store it on your server. Revoked keys stop authorizing requests.
Authorization: Bearer spg_<application-secret>User sessions
POST /auth/login returns an access token and a refresh token for API clients. Send the refresh token to POST /auth/refresh and replace it atomically after each successful rotation. Browser sessions use HttpOnly cookies.
Application scopes
Supported application scopes are players:read, players:write, wallets:read, ledger:read, ledger:write and rewards:execute. A key is bound to a single application and tenant.