curl --request POST \
--url https://api.redem.io/v2/getRespondent \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"surveyName": "Global Vacation Insights 2024",
"respondentId": "RESP497770"
}
'{
"success": true,
"message": "Respondent quality successfully retrieved",
"results": {
"respondentId": "RESP497770",
"status": "COMPLETED",
"respondentQuality": {
"isExcluded": true,
"reasonsForExclusion": [
"Open Ended Score Threshold",
"Coherence Score Threshold"
],
"redemScore": 85,
"qualityScoreSummary": [
{
"qualityCheck": "OES",
"score": 80
},
{
"qualityCheck": "CHS",
"score": 75,
"reason": "The user shows several inconsistencies and contradictions, such as different ..."
},
{
"qualityCheck": "GQS",
"score": 85
},
{
"qualityCheck": "TS",
"score": 70
},
{
"qualityCheck": "BAS",
"score": 75
}
],
"dataPointsSummary": [
{
"qualityCheck": "OES",
"dataPointId": "Q1",
"score": 85,
"category": "VALID_ANSWER"
},
{
"qualityCheck": "TS",
"dataPointId": "durationQ1",
"score": 95
},
{
"qualityCheck": "GQS",
"dataPointId": "Q2",
"score": 90
},
{
"qualityCheck": "OES",
"dataPointId": "Q3",
"score": 75,
"category": "VALID_ANSWER"
},
{
"qualityCheck": "TS",
"dataPointId": "durationQ3",
"score": 50
},
{
"qualityCheck": "CHS",
"dataPointId": "CHS_Question",
"score": 75,
"reason": "The user shows several inconsistencies and contradictions, such as different ..."
},
{
"qualityCheck": "GQS",
"dataPointId": "Q4",
"score": 80
},
{
"qualityCheck": "TS",
"dataPointId": "totalDuration",
"score": 65
},
{
"qualityCheck": "BAS",
"dataPointId": "interactionsQ1",
"score": 75,
"category": "NATURAL_TYPING"
}
]
}
}
}Retrieve the quality check results and status for a specific respondent.
curl --request POST \
--url https://api.redem.io/v2/getRespondent \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"surveyName": "Global Vacation Insights 2024",
"respondentId": "RESP497770"
}
'{
"success": true,
"message": "Respondent quality successfully retrieved",
"results": {
"respondentId": "RESP497770",
"status": "COMPLETED",
"respondentQuality": {
"isExcluded": true,
"reasonsForExclusion": [
"Open Ended Score Threshold",
"Coherence Score Threshold"
],
"redemScore": 85,
"qualityScoreSummary": [
{
"qualityCheck": "OES",
"score": 80
},
{
"qualityCheck": "CHS",
"score": 75,
"reason": "The user shows several inconsistencies and contradictions, such as different ..."
},
{
"qualityCheck": "GQS",
"score": 85
},
{
"qualityCheck": "TS",
"score": 70
},
{
"qualityCheck": "BAS",
"score": 75
}
],
"dataPointsSummary": [
{
"qualityCheck": "OES",
"dataPointId": "Q1",
"score": 85,
"category": "VALID_ANSWER"
},
{
"qualityCheck": "TS",
"dataPointId": "durationQ1",
"score": 95
},
{
"qualityCheck": "GQS",
"dataPointId": "Q2",
"score": 90
},
{
"qualityCheck": "OES",
"dataPointId": "Q3",
"score": 75,
"category": "VALID_ANSWER"
},
{
"qualityCheck": "TS",
"dataPointId": "durationQ3",
"score": 50
},
{
"qualityCheck": "CHS",
"dataPointId": "CHS_Question",
"score": 75,
"reason": "The user shows several inconsistencies and contradictions, such as different ..."
},
{
"qualityCheck": "GQS",
"dataPointId": "Q4",
"score": 80
},
{
"qualityCheck": "TS",
"dataPointId": "totalDuration",
"score": 65
},
{
"qualityCheck": "BAS",
"dataPointId": "interactionsQ1",
"score": 75,
"category": "NATURAL_TYPING"
}
]
}
}
}When a request is successfully processed, the API responds with a 200 OK status code and the expected data. The structure of the response varies based on the respondent's status.
This response mode available when respondent status is COMPLETED.
In this case, the system generates a comprehensive, quality assessment of the respondent.
A variable indicating whether the operation was successful.
true, false A variable that human-readable message providing additional context or confirmation of the requested action.
This variable includes all quality parameters associated with a respondent.
Show child attributes
A variable that indicates the respondent.
A variable that represents the current state of the respondent evaluation. For respondents who have been successfully evaluated, this value will always be COMPLETED.
This variable represents respondent data that has been evaluated based on the quality checks specified in the /addRespondent request.
💡Important: Even if a respondent fails evaluation, the response will still be returned with results with an error code of -999 instead of valid scores.
⭕ Note: The value -999 is a predefined code returned by ReDem whenever a respondent cannot be evaluated. This applies to all quality scores, including ReDem Score (R-Score), OES, GQS, CHS, TS, and BAS.
Show child attributes
Indicates whether a respondent is excluded based on the cleaning settings specified in the request. If cleaning is not activated, the respondent is always included by default.
false
Reasons for exclusion will only be available if the respondent is excluded based on the cleaning settings specified in the request. If the respondent is not excluded, the array will be empty.
A weighted average score (0–100) calculated based on the applied quality scores..
For more information refer to the ReDem Score section.
85
An object containing detailed results for each quality score applied
Show child attributes
The specific type of quality check applied to a respondent.
OES, TS, GQS, CHS, BAS "OES"
A numerical score from 0 to 100 that represents the overall result of a specific quality check. It is calculated based on the combined evaluation of all data point scores of the same quality type.
78
The reason behind the score — available only when the quality score type is set to CHS.
"The user shows several inconsistencies and contradictions, such as different ..."
List of incoherent questions identified during the CHS quality check. This will be only available if the quality score type is set to CHS
⭕ Note: The questions are named in numerical order, reflecting the sequence in which they were presented to the respondent.
["Q1", "Q2"]Detailed results of quality checks performed at the individual data point level.
Show child attributes
Type of quality check performed for the data point
OES, TS, GQS, CHS, BAS "OES"
A unique identifier of the data point
"Q1"
Quality score for the data point, ranging from 0 to 100
85
Quality category for the data point, this will be only available if the quality check type is set to OES or BAS
"VALID_ANSWER"
Explanation for the score, this will be only available if the quality check type is set to GQS
"Straightliner, Partial Straightliner"