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

# Get a product media file

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

## Request

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

This endpoint allows you to get the information about 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

- object
  - `_links` object
    - `download` object
      - `href` string: URI to download the binaries of the media file
  - `code` string: Media file code
  - `original_filename` string: Original filename of the media file
  - `mime_type` string: Mime type of the media file
  - `size` integer: Size of the media file
  - `extension` string: Extension of the media file

## Other responses

- `401`: Authentication required
- `403`: Access forbidden
- `404`: Resource not found
- `406`: Not Acceptable

---

[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)
