Skip to content

Personal Access Token

A PersonalAccessToken (PAT) allows makers to authenticate with the Ludilol API for programmatic access. PATs are scoped to specific capabilities and can optionally be restricted to a single game.

Properties

PropertyTypeDescription
IdintPrimary key
UserIdintFK → AppUser
GameIdint?FK → Game (optional scope restriction)
ScopePatScopeWhat the token can access
NamestringHuman-readable label
TokenHashstringSHA-256 hash of the token (token itself is shown only once)
ExpiresAtUtcDateTimeWhen the token expires
LastUsedAtUtcDateTime?Last API call timestamp
RevokedAtUtcDateTime?When the token was revoked

Scopes

ValueNameDescription
1ODataRead-only access to the OData order feed (/api/odata/orders)
2GameVersionsUpload, list, and delete game versions via API

API Endpoints

OData Scope

  • GET /api/odata/orders — Query up to 200 orders with OData filters

GameVersions Scope

  • GET /api/games/{gameId}/versions — List versions
  • POST /api/games/{gameId}/versions — Upload a new version (200 MB limit)
  • DELETE /api/games/{gameId}/versions/{versionId} — Delete a non-published version

Security

  • The raw token is displayed only once at creation time.
  • Only the SHA-256 hash is stored in the database.
  • Tokens are sent as Authorization: Bearer {token} headers.
  • Expired or revoked tokens are rejected.

Sell indie games for Bitcoin.