---
title: "Download"
method: GET
path: "/2/drive/{drive_id}/files/{file_id}/download"
tags: ["Drive > Files > File/Directory"]
---

# Download

`GET /2/drive/{drive_id}/files/{file_id}/download`

Download file content or directory as Zip file.

<note>
Please note that this may respond a 302 to actually download the requested content.
</note>

## Path parameters

- `drive_id` integer, required
- `file_id` integer, required

## Query parameters

- `as` 'pdf' | 'text' — Convert file before download

## Headers

- `x-kdrive-file-password` string — File password to open it for conversion, if the file is password-protected

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/158a854b0c7d/schema)
