---
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}`

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.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
