---
title: "Create a preview request"
method: POST
path: "/matters/{matterId}/documents/files/{fileId}/preview"
tags: ["Files"]
---

# Create a preview request

`POST /matters/{matterId}/documents/files/{fileId}/preview`

Creates a preview for the specified file.

## Path parameters

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

## Response `202`

When request is accepted. Returns a 'PreviewFileInfo' object.

- PreviewFileInfo
  - `fileId` string, nullable — Unique identifier of the requested file
  - `documentVersionId` string, nullable
  - `downloadUrl` string, nullable — Temporary Link to download file
  - `expiry` string, date-time, nullable — Expiry date/time when the download link is no longer accessible

## Other responses

- `400` — When an unsupported request is made.
- `403` — When the file is not associated with the authenticated client.
- `404` — When the file name does not exist or isn't uploaded yet.

---

[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/versions/197984da9b42/schema)
