---
schema_version: "1"
id: d5e4f1e0f13429a78c6ba160977d282e9e15bc58daced38e7de8d92134633ce0
title: sObject Rich Text Image Get
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-sobject-rich-text-image-retrieve.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-rich-text-image-retrieve.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e5e3e5259d11c9eb54a10a89181ccad4d3ef8289d8dd659e3b02491d64c366b0
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# sObject Rich Text Image Get

Gets the specified image data from a specific rich text area field in a given record. To get an image, you must have a record with an image uploaded to a rich text area field.

**note:** The sObject Rich Text Image Get resource isn’t compatible with Composite API requests, because it returns binary data instead of data in JSON or XML formats. Instead, make individual sObject Blob Get requests to retrieve blob data.

## Syntax

**URI:** `/services/data/vXX.X/sobjects/sObject/id/richTextImageFields/fieldName/contentReferenceId`

**Formats:** Binary data

**HTTP Method:** GET

**Authentication:** `Authorization: Bearer token`

**Parameters**

|Parameter|Description|
|---------|-----------|
|`sObjectName`|Indicates the name of the standard object of the record.|
|`id`|The ID of the object.|
|`fieldName`|The name of the rich text area field.|
|`contentReferenceId`|The reference ID that uniquely identifies an image within a rich text area field. You can obtain the reference by [retrieving information for the object](https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-retrieve.md). The description shows the contents of the rich text area field. The `refid` parameter of the image (`0EMRM00000002Ip` in this example) is the `contentReferenceId`.|

Example rich text area field contents:

```nolang
{
   "attributes" : {
      "type" : "Lead",
      "url" : "/services/data/v68.0/sobjects/Lead/00QRM000003ZfDb2AK"
   },
   "Id" : "00QRM000003ZfDb2AK",
   ...
   "ContactPhoto__c" : 
   "Sarah Loehr and her two dogs.
   <img alt=\"Sarah Loehr.\" 
   src=\"https://MyDomainName.file.force.com/servlet/rtaImage?
   eid=00QRM000003ZfDb&amp;
   feoid=00NRM000001E73j&amp;
   refid=0EMRM00000002Ip\"></img>"
}
```

## Example

For an example of retrieving the blob data from a rich text area field, see [Get an Image from a Rich Text Area Field](https://developer.salesforce.com/docs/platform/api-rest/do-me/dome-sobject-rich-text-image-retrieve.md).

**See Also**  


-   [Object Reference for the Salesforce Platform](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/)

