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>",
"operation": "<string>",
"comparison_value": {},
"comparison_value_type": "<string>",
"action_type": "<string>",
"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>",
"operation": "<string>",
"comparison_value": {},
"comparison_value_type": "<string>",
"action_type": "<string>",
"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.
string
All rules in a study.
string
Rules attached to one question.
string
Filter by language.
Response
An array of logic rules:string
Rule ID.
string
The study.
string
The question the rule belongs to.
string
Condition operator:
==, <, <=, >, >=, COUNT_LT, 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.string | null
The value to compare against — or the natural-language condition for
SMART_CONDITION.string
string, int, or smart_condition.string
next_question_id, move_to_question_group, end_interview, redirect_url, or screen_out.string | null
Jump target for
next_question_id actions.string | null
Jump target for
move_to_question_group actions; the interview enters at the group’s first question.string | null
Target URL for
redirect_url actions.boolean
Whether the rule ends the interview.
string
The language the rule applies to.
curl "https://api.getversive.com/api/v1/question-logic?study_id=9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b" \
-H "Authorization: Bearer $VERSIVE_API_KEY"