Collecting your Dataset Insight
This document outlines the two-step process for accessing dataset insights from the Credolab Portal after the successful client-side integration.
- Get API key: To request insight from Credolab, you need to have the API key which is used to identify who tries to perform an action.
- Request Dataset Insights: After logging in, you can request insights for each dataset. The response can be fully customized based on your request.
1. Obtain API key
The API key - is the key Credolab uses to identify the client who is requesting insight from the Credolab server.
How to get the API key:
- the API key with the Requester role should be provided by Credolab right after the subscription is created.
2. Request Dataset Insights from the Credolab Portal
GET /api/insights/v1/{referencenumber}?codes={code1}&codes={code2}&tags={tag1}&tags={tag2}
Request Description
This API returns scores and insights calculated based on data from a mobile device or a web session.
It is fully modular and supports filtering the response using the following optional parameters: codes (a list of product codes) and/or tags (a list of tags).
Filtering Logic
The filtering mechanism uses an OR condition across all specified items and parameters to select the final set of insights:
- If a filter is provided (either
codesortags), the response will include any insight matching any of the provided codes OR any of the provided tags. - If no filters are provided, the response returns all configured scores and insights for the subscription.
The list of configured productcodes/tagsis available in the subscription settings. Default APIcodes/tagsare described in the data dictionary or can be provided by your CSM manager.
NOTE: if you use v6 API please check documentation here
Request Headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer $API_KEY | The header is used to authorize the request. Remember that you will have to replace $API_KEY with your actual API key from Obtain API key. |
Request Parameters
Name | Description |
|---|---|
| Unique identifier of the dataset registered on the credolab server. |
| A unique set of insight codes configured in the subscription |
| A unique set of insight tags configured in the subscription |
Response Result
The API call returns the Insight Request details for the provided reference number. The result contains the following attributes:
Updated 9 days ago
