---
title: "Returns the content of the document file with the specified id."
method: GET
path: "/documents/{documentId}/files/{fileId}/download"
tags: ["documentFiles"]
---

# Returns the content of the document file with the specified id.

`GET /documents/{documentId}/files/{fileId}/download`

Returns the content of the document file. Uses the latest file version.
If the document file is an image and the width and height are set,
the image will be resized before it is returned.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `documentId` string, uuid, required
- `fileId` string, uuid, required

## Query parameters

- `width` number, double
- `height` number, double
- `crop` boolean

## Headers

- `Authorization` string, required

## Response `200`

OK

- string, binary

---

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