---
updatedAt: 2025-05-20T20:26:04.000Z
agentTools:
  projectIndex: https://quantemplate.readme.io/llms.txt
---

# Download Dataset

Returns a stream of UTF-8 encoded CSV for the given dataset.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Quantemplate API",
    "version": "0.0.1"
  },
  "servers": [
    {
      "url": "https://api.prod.quantemplate.com/v1"
    }
  ],
  "tags": [
    {
      "name": "FabricAPI"
    }
  ],
  "paths": {
    "/organisations/{organisationId}/datasets/{datasetId}": {
      "get": {
        "tags": [
          "FabricAPI"
        ],
        "summary": "Download Dataset",
        "description": "Returns a stream of UTF-8 encoded CSV for the given dataset.",
        "operationId": "download-dataset",
        "parameters": [
          {
            "name": "X-QT-Trace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organisationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "datasetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "Dataset data as UTF-8 encoded CSV"
                }
              }
            }
          },
          "204": {
            "description": "",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineExecutionOutputNotFound"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PipelineExecutionOutputNotFound": {
        "required": [
          "executionId",
          "outputId"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "$ref": "#/components/schemas/PipelineExecutionId"
          },
          "outputId": {
            "$ref": "#/components/schemas/PipelineExecutionOutputId"
          }
        }
      },
      "PipelineExecutionId": {
        "required": [
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          }
        }
      },
      "PipelineExecutionOutputId": {
        "required": [
          "value"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```