---
title: "Download records as a CSV file"
method: GET
path: "/sheets/{sheetId}/download"
tags: ["sheets"]
---

# Download records as a CSV file

`GET /sheets/{sheetId}/download`

Returns records from a sheet in a workbook as a csv file

## Path parameters

- `sheetId` string, required — Sheet ID

## Query parameters

- `versionId` string
- `commitId` string — Commit ID
- `sinceVersionId` string — Version ID
- `sinceCommitId` string — Commit ID
- `sortField` string — Name of field by which to sort records
- `sortDirection` 'asc' | 'desc' — Sort direction - asc (ascending) or desc (descending)
- `filter` 'valid' | 'error' | 'all' | 'none' — Options to filter records
- `filterField` string — Use this to narrow the valid/error filter results to a specific field
- `searchValue` string — Search for the given value, returning matching rows. For exact matches, wrap the value in double quotes ("Bob"). To search for null values, send empty double quotes ("")
- `searchField` string — Use this to narrow the searchValue results to a specific field
- `ids` string — Record ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/versions/9d3a9979cd96/schema)
