{"openapi":"3.0.3","info":{"title":"0Wallet User API — Mini Games","version":"1.0.0"},"paths":{"/v1/user/mini-games":{"get":{"tags":["Mini Games"],"summary":"List active mini-game operators","description":"Returns all active external operators (mini games) ordered by name. Each operator exposes only its enabled metadata entries, with the authenticated user's player id injected into redirect URLs.\n","operationId":"listMiniGames","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/TenantHeader"}],"responses":{"200":{"description":"List of active mini-game operators","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":true},"message":{"type":"string","nullable":true,"example":null},"data":{"type":"array","items":{"$ref":"#/components/schemas/MiniGame"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"TenantHeader":{"name":"X-Tenant","in":"header","required":true,"description":"Tenant identifier used to resolve the tenant database.","schema":{"type":"string"},"example":"acme"}},"schemas":{"MiniGame":{"type":"object","properties":{"id":{"type":"string","description":"External operator ULID.","example":"01J9X8K2Q3M4N5P6R7S8T9V0W1"},"name":{"type":"string","example":"Acme Games"},"metadata":{"type":"array","description":"Enabled game entries only (entries with a falsy status are omitted).","items":{"$ref":"#/components/schemas/MiniGameEntry"}}}},"MiniGameEntry":{"type":"object","properties":{"name":{"type":"string","nullable":true,"example":"Lucky Spin"},"code":{"type":"string","nullable":true,"example":"lucky_spin"},"image_url":{"type":"string","nullable":true,"description":"Absolute URL. Returned as-is if already absolute, otherwise resolved to a public R2 storage URL. Null when no image is set.\n","example":"https://cdn.example.com/games/lucky_spin.png"},"redirect_url_web":{"type":"string","nullable":true,"description":"Web launch URL with `{player_id}` replaced by the authenticated user's id.","example":"https://games.example.com/web?pid=01J9X8K2Q3M4N5P6R7S8T9V0W1"},"redirect_url_telegram":{"type":"string","nullable":true,"description":"Telegram launch URL with `{player_id}` replaced by the authenticated user's id.","example":"https://t.me/AcmeGamesBot?start=01J9X8K2Q3M4N5P6R7S8T9V0W1"}}}},"responses":{"Unauthorized":{"description":"Missing or invalid authentication token","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":false},"message":{"type":"string","example":"Unauthenticated."}}}}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/novaxsolution/0WalletApiUserResponse/1.0.0"}]}