[Source](https://decktuner.app/developer/api/files/list-workspace-files-for-a-game)

# List workspace files for a game

Files from the latest successful non-fresh run with saved workspace files. Responses may be cached for 30 seconds.

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "DeckTuner API",
    "version": "1.0.0",
    "description": "Public, read-only API for extracted game settings, benchmark recommendations and workspace files. No authentication required. Honor response Cache-Control headers; see /developer/api/usage for terms and caching."
  },
  "servers": [
    {
      "url": "https://api.decktuner.app/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/games/{steam_id}/files": {
      "get": {
        "operationId": "get-games-{steam_id}-files",
        "summary": "List workspace files for a game",
        "description": "Files from the latest successful non-fresh run with saved workspace files. Responses may be cached for 30 seconds.",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "steam_id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Steam app ID"
            },
            "description": "Steam app ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceFilesResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "WorkspaceFilesResponse": {
        "type": "object",
        "properties": {
          "run_id": {
            "type": "string"
          },
          "source_run_id": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Size in bytes"
                },
                "mode": {
                  "type": "integer"
                },
                "sha256": {
                  "type": "string"
                },
                "runtime": {
                  "type": "boolean"
                },
                "download_url": {
                  "type": "string",
                  "format": "uri",
                  "description": "Public API URL for the complete file bytes"
                }
              },
              "required": [
                "path",
                "size",
                "mode",
                "sha256",
                "runtime",
                "download_url"
              ]
            }
          }
        },
        "required": [
          "run_id",
          "source_run_id",
          "files"
        ]
      }
    }
  }
}
```
