---
title: "List files for a preprint in osfstorage"
method: GET
path: "/preprints/{preprint_id}/files/osfstorage/"
tags: ["Preprints", "Files"]
---

# List files for a preprint in osfstorage

`GET /preprints/{preprint_id}/files/osfstorage/`

Retrieve a list of files stored in the `osfstorage` provider for the specified preprint. Only "osfstorage" is available for preprints.
#### Permissions
 - Public files are accessible to unauthenticated users.
 - Viewing non-public files requires appropriate permissions.

## Path parameters

- `preprint_id` string, required

## Response `200`

Successful retrieval of files in osfstorage.

## Other responses

- `401` — Unauthorized. Authentication is required.
- `403` — Forbidden. You do not have permission to view these files.
- `404` — Not Found. No preprint matches the given ID.

---

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