Base URL
https://gamavas.fun/api/pass/v1/openapi.json.
Three kinds of calls
Sign-in
OAuth 2.1 and OpenID Connect, under
/auth/oauth2/…. PKCE (S256) is required. The SDKs do this for you.Game API
Called by your game with the player’s access token. Achievements, level and ownership.
Server API
Called by your server with a secret key. Verify players, check ownership, unlock any achievement.
Authentication
- Player access token
- Secret key
The token your game gets when the player signs in, sent as a bearer token:Access tokens are short-lived (the token response’s
expires_in says for how long). The SDKs refresh them for you with the refresh token, which rotates on every use. /me and the achievement endpoints need the progress scope; the SDKs ask for it.Errors
Errors are JSON with a human-readable message:Webhooks
Gamavas can call your server when a player buys your game, gets a refund, loses access or unlocks an achievement. Add an endpoint on your app’s Webhooks page. Each request is a signedPOST:
Gamavas-Signature
v1 is the hex HMAC-SHA256 of <t>.<raw body> with your endpoint’s whsec_ secret. Refuse requests older than 5 minutes. Answer any 2xx within 10 seconds; otherwise Gamavas retries after 1 minute, 5 minutes, 30 minutes, then 2, 6 and 12 hours. The event id stays the same on every retry, so skip IDs you’ve already handled. Each event’s fields are under Webhooks in the menu.
