---
title: "A file's review state"
method: GET
path: "/v1/workspaces/{workspace}/files/review"
---

# A file's review state

`GET /v1/workspaces/{workspace}/files/review`

## Request

- Base URL: `https://api.uploads.sh`
- URL: `https://api.uploads.sh/v1/workspaces/{workspace}/files/review`
- Auth: HTTP bearer

Whether a file is held, was approved (with who approved it and when), or was never held. For workspace members; the public file API does not return it.

## Query parameters

- `key` string, required

## Response `200`

The file's review state.

- object
  - `key` string, required
  - `hold` 'pending' | 'approved' | 'null', nullable, required
  - `reason` string, nullable, required
  - `by` string, nullable, required
  - `at` string, date-time, nullable, required

## Other responses

- `401`: Missing or invalid credential.
- `403`: The credential lacks the required scope or role.
- `404`: The resource was not found.

---

[API](https://skmtc.dev/uploads/apis/uploads-sh-api.md) · [All operations](https://skmtc.dev/uploads/apis/uploads-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uploads/apis/uploads-sh-api/revisions/6df242babacd?raw)
