Migration Overview
The ReDem API uses versioned endpoints to ensure backward compatibility while introducing new features:- v1: Legacy endpoints
- v2: Introduced consistent CHS question IDs
- v3: Enhanced OES with improved categories and effort scale
Migration from v1 to v2
Key Changes
-
Endpoint paths: All endpoints now use the
/v2prefixPOST /addRespondent→POST /v2/addRespondentPOST /getRespondent→POST /v2/getRespondentPOST /getAllRespondents→POST /v2/getAllRespondentsPOST /stopSurvey→POST /v2/stopSurveyPOST /restartSurvey→POST /v2/restartSurveyPOST /creditCalculation→POST /v2/creditCalculation
-
CHS questionId requirement: Each CHS interview entry must include a
questionIdfield
Step-by-Step Migration
Step 1: Update Endpoint URLs
Update your base URL construction to include the/v2 prefix:
Step 2: Add questionId to CHS Data Points
For each CHS data point, add thequestionId field to the interviewData array:
The
questionId should be consistent across all respondents for the same question. Use meaningful identifiers like “Q1”, “Q2”, or custom IDs that match your survey structure.Step 3: Important: Create New Survey
Step 4: Test Your Integration
- Test adding a single respondent with the new v2 endpoint
- Verify CHS results include consistent question IDs
- Confirm all other endpoints work correctly with v2 paths
Migration from v2 to v3
Key Changes
-
Endpoint paths: All endpoints now use the
/v3prefixPOST /v2/addRespondent→POST /v3/addRespondentPOST /v2/getRespondent→POST /v3/getRespondentPOST /v2/getAllRespondents→POST /v3/getAllRespondentsPOST /v2/stopSurvey→POST /v3/stopSurveyPOST /v2/restartSurvey→POST /v3/restartSurveyPOST /v2/creditCalculation→POST /v3/creditCalculationPOST /v2/deleteRespondents→POST /v3/deleteRespondentsPOST /v2/deleteSurveys→POST /v3/deleteSurveysPOST /v2/updateRespondentsExcludedStatus→POST /v3/updateRespondentsExcludedStatus
-
OES categories: Updated category names in cleaning settings
GENERIC_ANSWER→VALID_ANSWERNO_INFORMATION→NO_ANSWERFAKE_ANSWER→AI_SUSPECT- New categories:
OFF_TOPIC,GIBBERISH
-
New optional fields:
surveyDescriptionfor CHS data pointsrespondentAttributesfor additional respondent metadata
Step-by-Step Migration
Step 1: Update Endpoint URLs
Update your base URL construction to include the/v3 prefix:
Step 2: Update OES Categories in Cleaning Settings
Update the OES category names in your cleaning settings request:These cleaning settings are examples and can be customized for each survey. Review and adjust the activation status and minimum data points thresholds according to your specific survey requirements and quality standards.
Step 3: Optional: Add Survey Description for CHS
You can now provide asurveyDescription when submitting CHS data points to improve accuracy:
Step 4: Optional: Add Respondent Attributes
You can add metadata about respondents:Step 5: Important: Create New Survey
Step 6: Test Your Integration
- Test adding respondents with the new v3 endpoint
- Verify responses use the new category names
- Confirm all category names in cleaning settings are updated correctly
Migration from v1 to v3
If you’re migrating directly from v1 to v3, follow both migration paths:- First, apply all changes from v1 → v2 (especially adding
questionIdto CHS) - Then, apply all changes from v2 → v3 (OES categories, etc.)
Best Practices
- Test with a sample survey before migrating production surveys. Do not test with production surveys.
- Important: You cannot update a running survey to a new API version. Create new surveys with the updated endpoints.
- Check responses in your tests to ensure category mappings work correctly
Need Help?
If you encounter issues during migration or have questions:- Review the API Change Log for detailed version history
- Check the endpoint documentation for v3 specifics
- Contact support at [email protected]

