---
canonical: https://amplience.com/developers/docs/release-notes/2024/media-mime-type/
title: Media MIME types
description: The mime type for images and video is now returned in the Delivery API response
audience: Business User
image: https://cdn.media.amplience.net/i/ampproduct/svg-mime-type-1?w=1200&h=630
image_width: 1200
image_height: 630
date_published: 2024-05-28
date_modified: 2024-06-02
---

# Dynamic Content: MIME types included in content payload

**Release date: 29th May 2024**

This release features a small, but important update for developers. The MIME type for [images](https://amplience.com/developers/docs/knowledge-center/faqs/assets/#what-image-types-are-supported) and [videos](https://amplience.com/developers/docs/knowledge-center/faqs/assets/#what-video-types-are-supported) is now included in the content payload returned by the [Content Delivery API](https://amplience.com/developers/docs/apis/content-delivery/content-delivery-overview/), allowing developers to check the types of media that is returned in the content.

This update to the content payload is particularly useful if you support media served dynamically, such as PNG or JPEG, as well as images that are usually served statically, such as SVGs. By looking at the MIME type, you can now check if an image is in SVG format and if it is, build up a static URL to render it. Previously users would often have to indicate on the content form if an image is in SVG format, and now this check can be done in your rendering code.

## Updated content payload

When you retrieve content containing media added using [media links](https://amplience.com/developers/docs/schema-reference/media/), a new field is included in the payload returned by the Content Delivery API: `mimeType`. For example, this might be "image/jpeg" for an image, or "video/mp4" for video.

In the example below, an SVG image has been added to a content item.

![An image in SVG format added to a content item](https://cdn.media.amplience.net/i/ampproduct/svg-mime-type-1?w=1880&fmt=png 'An image in SVG format added to a content item')

When this content item is retrieved using its production Content Delivery URL, or the unpublished content with [virtual staging](https://amplience.com/developers/docs/dev-tools/guides-tutorials/virtual-staging/virtual-staging-dynamic-content/#dynamic-content-and-virtual-staging), the image property is returned as shown below:

```json
{
  "content": {
    "_meta": {
      "name": "Media example",
      "schema": "https://example.com/media",
      "deliveryId": "e2153100-f26f-4eb8-92f1-95054484bec6"
    },
    "image": {
      "_meta": {
        "schema": "http://bigcontent.io/cms/schema/v1/core#/definitions/image-link"
      },
      "id": "f6eb6e0e-d3b0-44b0-be54-076b314b7d13",
      "name": "model-content",
      "endpoint": "ampproduct",
      "defaultHost": "cdn.media.amplience.net",
      //highlight-start
      "mimeType": "image/svg+xml"
      //highlight-end
    }
  }
}
```

Because the `mimeType` indicates that the image is in SVG format, we know that it should be rendered using its static URL: `https://ampproduct.a.bigcontent.io/v1/static/model-content`.

If the `mimeType` was an image type that is served dynamically, such as "image/jpeg" or "image/png", we would just build up the dynamic URL from the `name`, `endpoint` and `defaultHost` fields as normal.

> **Info:** `mimeType` is only part of the content playload for content published after this feature was released. If you want to access the `mimeType` of previously published content, you will need to add the media links and publish it again.

## Related pages

- [Supported image formats](https://amplience.com/developers/docs/knowledge-center/faqs/assets/#what-image-types-are-supported)

- [Supported video formats](https://amplience.com/developers/docs/knowledge-center/faqs/assets/#what-video-types-are-supported)

- [Content Delivery](https://amplience.com/developers/docs/concepts/content-delivery/)

- [Media links](https://amplience.com/developers/docs/schema-reference/media/)

- [HTTP Content Delivery API](https://amplience.com/developers/docs/apis/content-delivery/content-delivery-overview/)

- [GraphQL Content Delivery API](https://amplience.com/developers/docs/apis/content-delivery-graphql/overview/)

- [Virtual staging](https://amplience.com/developers/docs/dev-tools/guides-tutorials/virtual-staging/virtual-staging-dynamic-content/#dynamic-content-and-virtual-staging)
