To get all the question for the given categories

GET /v1/Insights/QualityManagement/Questions

To get all the question for the given categories

Headers

  • Authorization string

    The Authorization HTTP request header

Query parameters

  • CategorySid array[string]

    The list of category SIDs

    Minimum length of each is 34, maximum length of each is 34. Format of each should match the following pattern: ^FY[0-9a-fA-F]{32}$.

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • questions array[object]
      Hide questions attributes Show questions attributes object
      • account_sid string | null

        The SID of the Account that created the Flex Insights resource and owns this resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • question_sid string | null

        The SID of the question

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^GE[0-9a-fA-F]{32}$.

      • question string | null

        The question.

      • description string | null

        The description for the question.

      • category

        The Category for the question.

      • answer_set_id string | null

        The answer_set for the question.

      • allow_na boolean | null

        The flag to enable for disable NA for answer.

      • usage integer

        Integer value that tells a particular question is used by how many questionnaires

        Default value is 0.

      • answer_set

        Set of answers for the question

      • url string(uri) | null
    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
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)
{
  "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"
    }
  ]
}