curl --request GET \
--url https://api.questra.ai/surveys/{survey_id_or_slug}/variables \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'[
{
"id": "<string>",
"name": "<string>",
"survey_id": "<string>",
"expression": "<string>",
"attention_required": {
"reason": "<string>",
"dismissed": false
}
}
]curl --request GET \
--url https://api.questra.ai/surveys/{survey_id_or_slug}/variables \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'[
{
"id": "<string>",
"name": "<string>",
"survey_id": "<string>",
"expression": "<string>",
"attention_required": {
"reason": "<string>",
"dismissed": false
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique ID or slug of the survey to list variables for
Unique ID of the variable
Unique name of the variable within the survey
^[a-zA-Z][a-zA-Z0-9_]*[a-zA-Z0-9]$"isTeenager"
"wants_to_be_contacted"
Unique ID of the survey the variable is from
Expression that evaluates to a value that can be used for data analysis or routing logic
Present when the AI flagged this variable as needing human review before export
Show child attributes