Insights

Follow this documentation to see what are the endpoints you can call to get all about Insights.

List all Insights Profile#

This endpoint is used to get all previous profiles created for a specific customer. Profiles are groups of Insights attributes set up to show only some parts of Insights. Once you have the list of profiles, you can do a search by a specific profile id.

Method: POST

Endpoint: {{env}}/api/insights/Profile/filter

{
"statusCode": 200,
"message": "GET Request successful.",
"isError": false,
"result": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 3,
"Items": [
{
"Id": "cc243009-...-e85332a78751",
"Name": "Profile Name",
"CustomerId": "074d593a-...-291eb37b72ed",
"CreatedAt": "2022-08-16T08:36:21.419586Z",
"InsightProfileItems": [
{
"Id": "9d09786b-...-410232caf200",
"DataDictionaryId": "35b1018f-...-14abd3cf0a3a",
"Attribute": "Pension Income",
"Period": "ThreeMonthsAgo",
"InsightsType": "Income"
},
{
"Id": "a3e490b2-...-c766c75b619e",
"DataDictionaryId": "35b1018f-...-14abd3cf0a3a",
"Attribute": "Pension Income",
"Period": "CurrentMonth",
"InsightsType": "Income"
}
]
}
]
}
}

Response

ParameterTypeDescription
CurrentPagenumberThe current page
PageSizenumberThe amount of rows returned in the current page
TotalCountnumberThe total rows the filter returns
ItemsList of profiles
IdguidProfile id
NamestringName
CustomerIdguidCustomer Id
CreatedAtdatetimeWhen the profile was created
InsightProfileItemsList of profile items
IdguidProfile item id
DataDictionaryIdguidData dictionary id
Attributestring* if available
PeriodstringPeriod
InsightsTypestringInsights Type

View the Profile of a User#

This endpoint is used to get a specific group of Insights attributes according to the previous profile created.

Method: POST

Endpoint: {{env}}/api/insights/GetInsightsProfile

{
"UserId": "fe244550-...-d75432a79751",
"ProfileId": "0bc9894d-....-f691024aca19"
}

Response

ParameterTypeDescription
ValueguidThe corresponding value
InsightsTypestringInsights type
PeriodstringInform the period, Use the table below for valid options
TitlestringAttribute title

Period

Period
CurrentMonth
OneMonthAgo
TwoMonthsAgo
ThreeMonthsAgo
FourMonthsAgo
FiveMonthsAgo
SixMonthsAgo
SevenMonthsAgo
EightMonthsAgo
NineMonthsAgo
TenMonthsAgo
ElevenMonthsAgo

Get Insights#

This endpoint is used to get the full Insights from a user in a specific period of time.

Method: POST

Endpoint: {{env}}/api/insights/GetInsights

{
"UserId": "fe244550-...-d75432a79751",
"InsightPeriod": 360
}

InsightPeriod

InsightPeriod
60
90
180
360