---
title: "Download a product media file"
method: GET
path: "/api/rest/v1/media-files/{code}/download"
tags: ["Product media file"]
---

# Download a product media file

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

## Request

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

This endpoint allows you to download a given media file that is used as an attribute value of a product or a product model.

## Path parameters

- `code` string, required

## Response `200`

OK

## Other responses

- `401`: Authentication required
- `403`: Access forbidden
- `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)
