Request

Response

    GET

    /usage-queries/:queryId

    Retrieve query status and results.

    Resource Information

    Method and URI
    GET
    https://developer.api.autodesk.com/insights/v1/usage-queries/:queryId
    Required OAuth Scopes
    data:read
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is obtained via a three-legged OAuth flow.
    Accept-Language
    string
    For Excel output, specifies the language used to localize worksheet names. For other output formats this parameter is not currently used. en-US: (example)
    * Required

    Request

    Path Parameters

    queryId
    string
    Limits the results to the specified queryId.

    Request

    URI Parameters

    limit
    integer
    For paging through results, this is the number of results that will be returned. Defaults to 100.
    offset
    integer
    For paging through results, this is the first result that will be returned. Defaults to 0.

    Response

    HTTP Status Code Summary

    200
    OK
    Request succeeded.
    400
    Bad Request
    The API request was invalid/improper/etc.
    401
    Unauthorized
    The API request was not authenticated.

    Response

    Body Structure (200)

    pagination
    object
    pagination.pagination[i].totalResults
    integer
    Total number of records available.
    pagination.pagination[i].offset
    integer
    Offset (from zero) representing the start of the current result set.
    pagination.pagination[i].limit
    integer
    Number of results in the current result set.
    id
    string
    Unique identifier for this query.
    status
    string
    Status of the query. Possible values: SUBMITTED, RUNNING, COMPLETED, EXPIRED, ERROR
    columns
    array of strings
    Array of column names (which can be both Fields and/or Metrics) returned in the results.
    rows
    array of strings
    The query results, in the same order as result.columns.

    columns and rows can be any values from Fields and Metrics.

    Example

    OK (200). Successful processing request.

    Request

    curl  -X GET \
          'https://developer.api.autodesk.com/insights/v1/usage-queries/6162f82d13b04dae36251a1dd78c790aedb99a75be4776f4871db117f344108d?offset=0&limit=100' \
          -H 'Content-Type: application/json' \
          -H 'Authorization: Bearer eyJhbGciOiJIUzI1N'
    

    Response

    {
      "id": "6162f82d13b04dae36251a1dd78c790aedb99a75be4776f4871db117f344108d",
      "status": "COMPLETED",
      "columns": [
          "productName",
          "uniqueUsers"
      ],
      "pagination": {
          "totalResults": 5,
          "offset": 0,
          "limit": 100
      },
      "rows": [
          [
              "3ds Max",
              1
          ],
          [
              "AutoCAD",
              2
          ],
          [
              "AutoCAD Electrical",
              2
          ],
          [
              "Maya",
              1
          ],
          [
              "Product Design & Manufacturing Collection",
              3
          ]
      ]
    }
    
    Show More

    Example

    OK (200). With Error in the request processing.

    Request

    curl  -X GET \
          'https://developer.api.autodesk.com/insights/v1/usage-queries/8ff2510db9d1a2d4e9e35cedace73502127cde22e37417316565a5350704f4a2?offset=0&limit=100' \
          -H 'Content-Type: application/json' \
          -H 'Authorization: Bearer eyJhbGciOiJIUzI1N'
    

    Response

    {
      "id": "8ff2510db9d1a2d4e9e35cedace73502127cde22e37417316565a5350704f4a2",
      "status": "ERROR"
    }
    

    Example

    Forbidden (403)

    Request

    curl  -X GET \
          'https://developer.api.autodesk.com/insights/v1/usage-queries/8ff2510db9d1a2d4e9e35cedace73502127cde22e37417316565a5350704f4a2?offset=0&limit=100' \
          -H 'Content-Type: application/json' \
          -H 'Authorization: Bearer eyJhbGciOiJIUzI1N'
    

    Response

    {
      "title": "ACCESS_DENIED",
      "detail": "No further detail provided"
    }
    
     
    ______
    icon-svg-close-thick

    Cookie preferences

    Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

    May we collect and use your data?

    Learn more about the Third Party Services we use and our Privacy Statement.

    Strictly necessary – required for our site to work and to provide services to you

    These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

    Improve your experience – allows us to show you what is relevant to you

    These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

    Customize your advertising – permits us to offer targeted advertising to you

    These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

    icon-svg-close-thick

    THIRD PARTY SERVICES

    Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

    icon-svg-hide-thick

    icon-svg-show-thick

    Strictly necessary – required for our site to work and to provide services to you

    Qualtrics
    W
    Akamai mPulse
    W
    Digital River
    W
    Dynatrace
    W
    Khoros
    W
    Launch Darkly
    W
    New Relic
    W
    Salesforce Live Agent
    W
    Wistia
    W
    Tealium
    W
    Upsellit
    W
    CJ Affiliates
    W
    Commission Factory
    W
    Google Analytics (Strictly Necessary)
    W
    Typepad Stats
    W
    Geo Targetly
    W
    SpeedCurve
    W
    Qualified
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Improve your experience – allows us to show you what is relevant to you

    Google Optimize
    W
    ClickTale
    W
    OneSignal
    W
    Optimizely
    W
    Amplitude
    W
    Snowplow
    W
    UserVoice
    W
    Clearbit
    #
    YouTube
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Customize your advertising – permits us to offer targeted advertising to you

    Adobe Analytics
    W
    Google Analytics (Web Analytics)
    W
    AdWords
    W
    Marketo
    W
    Doubleclick
    W
    HubSpot
    W
    Twitter
    W
    Facebook
    W
    LinkedIn
    W
    Yahoo! Japan
    W
    Naver
    W
    Quantcast
    W
    Call Tracking
    W
    Wunderkind
    W
    ADC Media
    W
    AgrantSEM
    W
    Bidtellect
    W
    Bing
    W
    G2Crowd
    W
    NMPI Display
    W
    VK
    W
    Adobe Target
    W
    Google Analytics (Advertising)
    W
    Trendkite
    W
    Hotjar
    W
    6 Sense
    W
    Terminus
    W
    StackAdapt
    W
    The Trade Desk
    W
    RollWorks
    W

    Are you sure you want a less customized experience?

    We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

    Your experience. Your choice.

    We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

    May we collect and use your data to tailor your experience?

    Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.