---
schema_version: "1"
id: 6d01a8497c3b10ef25cb3f8650cae9a7b00ef33b8299003b679eb08ca2e569b7
title: ConnectApi.MediaReference
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_media_reference.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_media_reference.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fcd20fb0695f672db6e0f54b64d3c992670c84cf556c1ebbf66cdf73b1763b62
description: A media reference.
---
# ConnectApi.MediaReference

A media reference.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| mediaUrl | String | URL to stream or download the media. | 41.0 |
| thumbnailUrl | String | If one exists, URL of the media’s thumbnail. | 41.0 |

#### See Also

- [ConnectApi.FeedElementCapabilities](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capabilities.htm "A container for all capabilities that can be included with a feed element.")
- [ConnectApi.MediaReferenceCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_media_reference_capability.htm "If a feed element has this capability, it has one or more media references.")