Salesforce CDP Metadata API

The Salesforce CDP Metadata API response includes metadata about all entities, including Calculated Insights, Engagement, Profile, and other entities, as well as their relationships to other objects.

GET /api/v1/metadata

Returns the metadata for Calculated Insights, Engagement, Profile, and other objects.

Syntax

HTTP method
GET
Availability
Salesforce CDP v1.0, Salesforce API version 51.0 and later
Formats
REST
URI
/api/v1/metadata/

Examples

Request
1http://{TSE}.360a.salesforce.com/api/v1/metadata/
Response
1{
2           "metadata": [
3              {
4                 "fields": [
5                    {
6                       "name": "AccountId__c",
7                          "type": "STRING"
8                          }
9                    {
10                          "name": "DataSourceId__c",
11                          "type": "STRING"
12                          }
13                    {
14                       "name": "IndividualId__c",
15                          "type": "STRING"
16                          }
17                    {
18                          "name": "DataSourceObjectId__c",
19                          "type": "STRING"
20                          }
21                    {
22                       "name": "Id__c",,
23                          "type": "STRING"
24                          }
25                    ],
26                       "category": "Profile",
27                          "name": "AccountContact__dlm",
28                          "relationships": [
29                          {
30                       "fromEntity": "AccountContact__dlm",
31                          "toEntity": "Account__dlm",
32                          "fromEntityAttribute": "AccountId__c",
33                          "toEntityAttribute": "Id__c",
34                          "cardinality": "NTOONE",
35                    }
36                          {
37                       "fromEntity": "AccountContact__dlm",
38                          "toEntity": "Individual__dlm",
39                          "fromEntityAttribute": "IndividualId__c",
40                          "toEntityAttribute": "Id__c",
41                          "cardinality": "NTOONE"
42                    }
43                          {
44                       "fromEntity": "Case__dlm",
45                          "toEntity": "AccountContact__dlm",
46                          "fromEntityAttribute": "AccountContactId__c",
47                          "toEntityAttribute": "Id__c",
48                          "cardinality": "NTOONE"
49                    }
50                 ]

HTTP Responses

Response Reason
200 OK Metadata of the object.