# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
