> For the complete documentation index, see [llms.txt](https://docs.redivis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.redivis.com/api/rest-api/exports/download.md).

# download

## Overview

This endpoint is used to download the output file(s) associated with a completed export. Calling download on an incomplete or failed exports will return an error.

## HTTP Request

```http
GET /exports/:exportId/download?filePart=:int
```

{% hint style="success" %}
This endpoint supports [HTTP Range requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests), allowing you to resume interrupted downloads.
{% endhint %}

## Path parameters

<table><thead><tr><th width="302.5">Parameter</th><th></th></tr></thead><tbody><tr><td>exportId</td><td>The unique identifier of the export, returned in the response to <a href="/pages/iXSmN0FZKH7BHWAKIEed">export.post</a>.</td></tr></tbody></table>

## Query parameters

<table><thead><tr><th width="302.5">Parameter</th><th></th></tr></thead><tbody><tr><td>filePart</td><td>The zero-indexed file number for exports that contain multiple files.<br><br>The number of files in the export is known based on the <code>fileCount</code> property returned by <a href="/pages/06sRV3vsbdmx7zgNuRmA">export.get</a>. To for example, if <code>export.fileCount == 2</code> , you would make separate requests to download each file, with <code>?filePart=0</code> and <code>?filePart=1</code></td></tr></tbody></table>

{% hint style="info" %}
This endpoint extends the [general API structure](/api/rest-api/general-structure.md)
{% endhint %}

## Authorization

Data access to all tables referenced by the query is required. If a table's data is not public, your access token must have one of the following scopes:

* data.data
* data.edit

[Learn more about authorization.](/api/rest-api/authorization.md)

## Response body

The response body will contain the contents of the exported file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.redivis.com/api/rest-api/exports/download.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
