Get Records Using REST API

Retrieve individual records using the get sObject rows endpoints in REST API.

You can use REST API to retrieve many types of records. This table shows the record types that are most relevant to Marketing Cloud.

Record TypeAPI Name
Contact recordsContact
Lead recordsLead
CampaignsCampaign
Marketing segmentsMarketSegment
FlowsFlowRecord
Content workspacesManagedContentSpace
Content itemsManagedContent

Before you send a request to REST API, obtain a bearer token. For more information, see Connect to REST-based APIs.

To retrieve a record, send a GET request to /services/data/v60.0/sobjects/OBJECT_API_NAME/RECORD_ID. Replace OBJECT_API_NAME with the API name of the type of object that you want to retrieve, and replace RECORD_ID with the record ID, as shown in this example.

The response body varies depending on the object type of the record that you retrieved. This example shows a response body for a Flow record.