To get all the question for the given categories
To get all the question for the given categories
Query parameters
-
The list of category SIDs
Minimum length of each is
34
, maximum length of each is34
. Format of each should match the following pattern:^FY[0-9a-fA-F]{32}$
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
GET
/v1/Insights/QualityManagement/Questions
curl \
--request GET 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions' \
--user "username:password" \
--header "Authorization: string"
Response examples (200)
Read empty
{
"meta": {
"key": "questions",
"url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions?CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions?CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"questions": []
}
{
"meta": {
"key": "questions",
"url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions?CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions?CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"questions": [
{
"url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions/GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"usage": 0,
"allow_na": false,
"category": {
"category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"category_name": "test cat"
},
"question": "What is the total time",
"answer_set": {
"id": "a6a8a54f-5305-4aec-b92c-a6e429932f58",
"name": "Yes, No",
"sort": 0,
"type": "select",
"answers": [
{
"id": "4e34f701-8206-4670-b376-c9fe26bb3ca3",
"name": "Yes",
"sort": 0,
"score": 100,
"description": "Yes."
},
{
"id": "5e926651-fa5d-4aba-86e1-8440bb8faa6c",
"name": "No",
"sort": 1,
"score": 0,
"description": "No or a very poor."
}
],
"category_id": "1a8cac56-826c-4f85-ac14-9104811cf184"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "time spent",
"question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
}
]
}