Get Profile Calculated Insights Data

Retrieves calculated insights for a specific profile record. This endpoint allows you to access computed attributes and metrics related to the profile.

Syntax 

  • HTTP Method: GET
  • Availability: Data 360 v1.0, Salesforce v51.0
  • format: REST
  • URI: /api/v1/profile/{dataModelName}/{Id}/calculated-insights/{ci-name}

Path Parameters 

ParameterTypeDescription
dataModelNamestringRequired. The unique identifier of the data model object. Example: Individual__dlm
IdstringRequired. The unique identifier of the record. Example: 123
ci-namestringRequired. The unique identifier of the calculated insight. Example: TotalSales__cio

Query Parameters 

ParameterTypeDescription
fieldsstringComma-separated list of fields to include in the response. Example: TotalAmount__c,LastPurchaseDate__c

Response Structure 

The response includes:

  • data: Array of record objects containing the requested data
  • done: boolean indicating if all results have been returned

Examples 

Request 

1GET https://{TSE}.360a.salesforce.com/api/v1/profile/Individual__dlm/123/calculated-insights/TotalSales__cio?fields=TotalAmount__c,LastPurchaseDate__c

Response 

1{
2  "data": [
3    {
4      "TotalAmount__c": 1500.0,
5      "LastPurchaseDate__c": "2024-03-15T10:30:00Z"
6    }
7  ],
8  "done": true
9}

Notes 

  • You must explicitly specify fields to retrieve more than 10 fields
  • The record ID must be a valid identifier in the data model object
  • The calculated insight must be associated with the data model object
  • The response includes only the specified fields
  • If no fields are specified, up to 10 fields are returned