curl "https://api.getversive.com/api/v1/question-logic?study_id=9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b" \
-H "Authorization: Bearer $VERSIVE_API_KEY"
{
"id": "<string>",
"study_id": "<string>",
"question_id": "<string>",
"logic_type": "<string>",
"source_question_id": {},
"operation": "<string>",
"comparison_value": {},
"comparison_value_type": "<string>",
"action_type": {},
"next_question_id": {},
"next_question_group_id": {},
"redirect_url": {},
"end_interview": true,
"language": "<string>"
}Question logic
List question logic
List logic rules for a question or study
GET
/
question-logic
curl "https://api.getversive.com/api/v1/question-logic?study_id=9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b" \
-H "Authorization: Bearer $VERSIVE_API_KEY"
{
"id": "<string>",
"study_id": "<string>",
"question_id": "<string>",
"logic_type": "<string>",
"source_question_id": {},
"operation": "<string>",
"comparison_value": {},
"comparison_value_type": "<string>",
"action_type": {},
"next_question_id": {},
"next_question_group_id": {},
"redirect_url": {},
"end_interview": true,
"language": "<string>"
}Lists logic rules. Provide at least one of
question_id or study_id.
Filter by language, using its full name exactly as stored (e.g.
English, not en). The match is case-sensitive.Response
An array of logic rules:The question the rule belongs to: the answered question for a branching rule, the shown/hidden question for a display rule.
branching (changes the path after question_id is answered) or display (shows question_id only when its condition on an earlier answer passes).Condition operator:
==, !=, <, <=, >, >=, COUNT_LT, INCLUDES, NOT_INCLUDES, ALWAYS, or SMART_CONDITION (AI-evaluated natural-language rule). INCLUDE_RESPONSE_IN_NEXT_QUESTION is a legacy operator that may appear on older studies — use question mentions instead.null for display rules. Otherwise next_question_id, move_to_question_group, end_interview, redirect_url, or screen_out.Jump target for
move_to_question_group actions; the interview enters at the group’s first question.curl "https://api.getversive.com/api/v1/question-logic?study_id=9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b" \
-H "Authorization: Bearer $VERSIVE_API_KEY"