To get all questionnaires with questions

GET /v1/Insights/QualityManagement/Questionnaires

To get all questionnaires with questions

Headers

  • Authorization string

    The Authorization HTTP request header

Query parameters

  • IncludeInactive boolean

    Flag indicating whether to include inactive questionnaires or not

  • 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
    • questionnaires array[object]
      Hide questionnaires attributes Show questionnaires 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}$.

      • questionnaire_sid string | null

        The sid of this questionnaire

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

      • name string | null

        The name of this category.

      • description string | null

        The description of this questionnaire

      • active boolean | null

        The flag to enable or disable questionnaire

      • questions array | null

        The list of questions with category for a questionnaire

      • 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/Questionnaires
curl \
 --request GET 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires' \
 --user "username:password" \
 --header "Authorization: string"
{
  "meta": {
    "key": "questionnaires",
    "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?IncludeInactive=true&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?IncludeInactive=true&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "questionnaires": []
}
{
  "meta": {
    "key": "questionnaires",
    "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?IncludeInactive=true&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?IncludeInactive=true&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "questionnaires": [
    {
      "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires/GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "name": "abc",
      "active": false,
      "questions": [
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        },
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        }
      ],
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "description": "description",
      "questionnaire_sid": "GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    },
    {
      "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires/GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "name": "abc",
      "active": true,
      "questions": [
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        },
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        }
      ],
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "description": "description",
      "questionnaire_sid": "GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }
  ]
}
{
  "meta": {
    "key": "questionnaires",
    "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "questionnaires": [
    {
      "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questionnaires/GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "name": "efg",
      "active": true,
      "questions": [
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        },
        {
          "usage": 0,
          "allow_na": false,
          "category": {
            "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "category_name": "test cat"
          },
          "question": "What is the total time",
          "description": "time spent",
          "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
        }
      ],
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "description": "description",
      "questionnaire_sid": "GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }
  ]
}