[Source](https://decktuner.app/developer/api/files/download-a-workspace-file)

# Download a workspace file

Complete file bytes, including binary 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": {
    "/runs/{run_id}/files/{path}": {
      "get": {
        "operationId": "get-runs-{run_id}-files-{path}",
        "summary": "Download a workspace file",
        "description": "Complete file bytes, including binary files. Responses may be cached for 30 seconds.",
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Run ID"
            },
            "description": "Run ID",
            "example": "5e9dab67eb02"
          },
          {
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "File path within the workspace, including nested directories"
            },
            "description": "File path within the workspace, including nested directories",
            "example": "scripts/autoplay.py"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceFileResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "WorkspaceFileResponse": {
        "type": "string",
        "contentMediaType": "application/octet-stream"
      }
    }
  }
}
```
