This is used by Flex UI and Quality Management to fetch the Flex Insights roles for the user

GET /v1/Insights/UserRoles

This is used by Flex UI and Quality Management to fetch the Flex Insights roles for the user

Headers

  • Authorization string

    The Authorization HTTP request header

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
    • roles array[string] | null

      Flex Insights roles for the user

    • url string(uri) | null
GET /v1/Insights/UserRoles
curl \
 --request GET 'https://flex-api.twilio.com/v1/Insights/UserRoles' \
 --user "username:password" \
 --header "Authorization: string"
Response examples (200)
{
  "url": "https://flex-api.twilio.com/v1/Insights/UserRoles",
  "roles": [
    "wfo.full_access"
  ]
}