Skip to main content
POST
Explore survey questions

Authorizations

Authorization
string
header
required

Body

application/json
prompt
string
required

Required. Topic to search for in survey questions and attributes.

dataset_codes
null | string[]

Optional. Dataset codes from one tree in GET /datasets.

enforced_audiences
null | string[]

Optional. Up to 10 audience UUIDs to scope the search.

location_codes
null | string[]

Optional. global_filters.location_codes from POST /global-filters.

wave_codes
null | string[]

Optional. global_filters.wave_codes from POST /global-filters.

questions_k
null | integer

Optional. Number of questions to return (default 5).

attributes_k
null | integer

Optional. Number of attributes to return (default 10).

Response

Successful response.

dataset
object
required

Root dataset used for the search

audiences
object[]
required

Audiences applied to scope the search

questions
object[]
required

Matching survey questions

attributes
object[]
required

Matching attributes

message
string
required

Explanation when no questions or attributes matched

error
string

Set when no questions or attributes matched