---
title: "Get download url for a file"
method: GET
path: "/matters/{matterId}/documents/files/{fileId}/download"
tags: ["Files"]
---

# Get download url for a file

`GET /matters/{matterId}/documents/files/{fileId}/download`

Retrieves download details for a specified matter file.

## Path parameters

- `matterId` string, required
- `fileId` string, required

## Query parameters

- `versionId` string

## Response `200`

When request is successful. Returns a 'DownloadFileInfo' object.

- DownloadFileInfo
  - `fileId` string, nullable — Unique identifier of the requested file
  - `name` string, nullable — Name of the file, excluding file extension.
  - `fileExtension` string, nullable — Extension of the file.
  - `downloadUrl` string, nullable — Temporary Link to download file
  - `expiry` string, date-time — Expiry date/time when the download link is no longer accessible
  - `sizeBytes` integer — Size of the requested file (in bytes)

## Other responses

- `400` — When an unsupported request is made.
- `403` — When the requested file does not belong to the account making the request.
- `404` — When file or matter with the specified id does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/ffc7fffa0d5c/schema)
