---
title: "retrieve a file from the file store"
method: PUT
path: "/mockserver/files/retrieve"
tags: ["files"]
---

# retrieve a file from the file store

`PUT /mockserver/files/retrieve`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/files/retrieve`
- Auth: none declared

returns the raw bytes of a previously stored file

## Request body

- object
  - `name` string, required

## Response `200`

file content returned

## Other responses

- `400`: request body missing the required 'name' field
- `404`: file not found

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
