---
updatedAt: 2026-09-02T17:46:54.000Z
agentTools:
  projectIndex: https://docs.huvrdata.app/llms.txt
---

# GET /api/cases/{case_pk}/runs/{id}/output/{filename}/

Stream `case-runs/{run_id}/output/{filename}` for a permitted run.

Required permissions:
- IsAuthenticated
- WorkspaceRequired


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HUVR API",
    "description": "HUVR API for end user clients",
    "contact": {
      "email": "support@huvrdata.com"
    },
    "license": {
      "name": "Commercial"
    },
    "version": "3"
  },
  "security": [
    {
      "BearerToken": []
    }
  ],
  "paths": {
    "/api/cases/{case_pk}/runs/{id}/output/{filename}/": {
      "get": {
        "operationId": "api_cases_runs_output",
        "summary": "GET /api/cases/{case_pk}/runs/{id}/output/{filename}/",
        "description": "Stream `case-runs/{run_id}/output/{filename}` for a permitted run.\n\nRequired permissions:\n- IsAuthenticated\n- WorkspaceRequired\n",
        "parameters": [
          {
            "name": "ordering",
            "in": "query",
            "description": "Which field to use when ordering the results.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of results to return per page.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The initial index from which to return the results.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "count",
                    "results"
                  ],
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "next": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "previous": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CaseRun"
                      }
                    }
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "required": [
                    "count",
                    "results"
                  ],
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "next": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "previous": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CaseRun"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "cases"
        ],
        "x-permissions": [
          "IsAuthenticated",
          "WorkspaceRequired"
        ]
      },
      "parameters": [
        {
          "name": "case_pk",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "filename",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "http",
      "curl",
      "javascript",
      "python",
      "csharp"
    ]
  },
  "servers": [
    {
      "url": "//<subdomain>.huvrdata.app"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerToken": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "short-lived access token from GCP Identity Platform; header pattern: 'Authorization: Token <access-token>'",
        "x-default": "Token <short-lived-access-token>"
      }
    },
    "schemas": {
      "CaseRun": {
        "type": "object",
        "properties": {
          "id": {
            "title": "ID",
            "type": "integer",
            "readOnly": true
          },
          "case": {
            "title": "Case",
            "type": "integer",
            "readOnly": true
          },
          "status": {
            "title": "Status",
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "failed",
              "canceled"
            ],
            "readOnly": true
          },
          "progress": {
            "title": "Progress",
            "description": "Fraction complete, 0.0 to 1.0.",
            "type": "number",
            "readOnly": true
          },
          "progress_message": {
            "title": "Progress message",
            "description": "Human-readable progress update, e.g. 'run 47 of 100'.",
            "type": "string",
            "readOnly": true,
            "minLength": 1,
            "nullable": true
          },
          "started_at": {
            "title": "Started at",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "nullable": true
          },
          "completed_at": {
            "title": "Completed at",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "nullable": true
          },
          "error_message": {
            "title": "Error message",
            "description": "Summary of failure; empty on success.",
            "type": "string",
            "readOnly": true,
            "minLength": 1,
            "nullable": true
          },
          "result_data": {
            "title": "Result data",
            "description": "Calculator output for this run in the module's schema.",
            "type": "object",
            "readOnly": true
          },
          "cloud_task_name": {
            "title": "Cloud task name",
            "description": "Cloud Tasks handle used to cancel queued runs (Optional).",
            "type": "string",
            "readOnly": true,
            "minLength": 1,
            "nullable": true
          },
          "parent_run": {
            "title": "Parent run",
            "description": "Parent run for compound module shapes (obs-l3 seeds, rstreng-batch rows).",
            "type": "integer",
            "readOnly": true,
            "nullable": true
          },
          "variant": {
            "title": "Variant",
            "description": "Per-child variant info, e.g. {'seed': 12345} or {'row_index': 17}.",
            "type": "object",
            "readOnly": true,
            "nullable": true
          },
          "created_on": {
            "title": "Created on",
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_on": {
            "title": "Updated on",
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      }
    }
  }
}
```