---
title: "Download the media file associated to a reference entity or a record"
method: GET
path: "/api/rest/v1/reference-entities-media-files/{code}"
tags: ["Reference entity media file"]
---

# Download the media file associated to a reference entity or a record

`GET /api/rest/v1/reference-entities-media-files/{code}`

## Request

- Base URL: `http://demo.akeneo.com`
- URL: `http://demo.akeneo.com/api/rest/v1/reference-entities-media-files/{code}`
- Auth: none declared

This endpoint allows you to download a given media file that is associated with a reference entity or a record.

## Path parameters

- `code` string, required

## Response `200`

OK

## Other responses

- `401`: Authentication required
- `404`: Resource not found

---

[API](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api.md) - [All operations](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/revisions/d8bda9b93b59?raw)
