Request

Response

    Access Application Settings

    This walkthrough demonstrates how to access your application’s settings. The steps include retrieving your APS applications and its details, accessing collaborator details, and fetching the usage daily totals for a specific application.

    Before you Begin

    • Register and create an application on APS.
    • Acquire a 3-legged OAuth token with application:client:read scope.
    • Invite a user to collaborate on an application you created in bullet one. This will be important for when retrieving the collaborators for an application.

    Step 1: Retrieve an Access Token

    In order to access the Application Management API operations, you need to obtain a valid three-legged access token. To do so, in Postman under the Authorization tab of each request, input a client ID and client secret of an APS application you own or have access to. For the same application, add https://oauth.pstmn.io/v1/callback as a callback URL in the APS application settings. If this is not added, you will receive an error message in your browser when you try to get a new access token.

    Step 2: Get all Application details

    The Get All Applications operation returns a list of clients or APS apps that you own or have access to as a collaborator. The response includes the client ID, name, description, and other pertinent details. For a formal definition of a client, refer to the API Basics documentation.

    You will use the following operation:

    HTTP RequestOperation
    GET /clients Get All Applications

    Request

    curl -v 'https://developer.api.autodesk.com/applications/v1/clients' -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'
    

    Notes:

    • Replace <YOUR_ACCESS_TOKEN> with the token obtained in Step 1.

    Response

    {
        "pagination": {
            "limit": 100,
            "nextUrl": "https://developer.api.autodesk.com/~NEXT_PAGE~",
            "previousUrl": "https://developer.api.autodesk.com/~PREVIOUS_PAGE~"
        },
        "results": [
            {
                "id": "pWPf8f2U2rWJfPgRnj3TnUCKHASOZJpp",
                "createdAt": "2019-01-01T00:00:00.000Z",
                "updatedAt": "2019-01-01T00:00:00.000Z",
                "name": "Internet Widgits Pty Ltd",
                "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vel facilisis ex. Nullam lobortis id lectus ac rutrum.\n",
                "oAuthFlows": [
                    {
                        "clientType": "CONFIDENTIAL",
                        "grantType": "AUTHORIZATION_CODE",
                        "pkce": "OPTIONAL"
                    },
                    {
                        "clientType": "CONFIDENTIAL",
                        "grantType": "CLIENT_CREDENTIALS",
                        "pkce": "UNSUPPORTED"
                    },
                    {
                        "clientType": "PUBLIC",
                        "grantType": "IMPLICIT",
                        "pkce": "UNSUPPORTED"
                    }
                ],
                "jwksUri": "https://example.com/.well-known/jwks.json",
                "secretCreatedAt": "",
                "preparedSecretExpiresAt": "2019-01-01T00:00:00.000Z",
                "callbackUris": [
                    "https://example.com/oauth/callback"
                ],
                "apiProductIds": [
                    "29ce79ba-8e63-411f-b549-44c7174eff93"
                ],
                "owner": {
                    "userId": "389JJQ8PJSMJ",
                    "firstName": "Ada",
                    "lastName": "Lovelace",
                    "email": "ada.lovelace@example.com"
                }
            }
        ]
    }
    
    Show More

    Step 3: Get a Specific Application’s Details

    The Get an Application operation returns details of a single APS application. The response will be similar to the one in Step 2. You will use the following operation:

    HTTP RequestOperation
    GET /clients/{id} Get an Application

    Request

    curl -v 'https://developer.api.autodesk.com/applications/v1/clients/{CLIENT_ID}' -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'
    

    Notes:

    • Replace <YOUR_ACCESS_TOKEN> with the token obtained in Step 1.
    • Replace {CLIENT_ID} with the client ID of the application you want to retrieve details for.

    Response

    {
        "id": "pWPf8f2U2rWJfPgRnj3TnUCKHASOZJpp",
        "createdAt": "2019-01-01T00:00:00.000Z",
        "updatedAt": "2019-01-01T00:00:00.000Z",
        "name": "Internet Widgits Pty Ltd",
        "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vel facilisis ex. Nullam lobortis id lectus ac rutrum.\n",
        "clientType": "WEB",
        "jwksUri": "https://example.com/.well-known/jwks.json",
        "secretCreatedAt": "",
        "preparedSecretExpiresAt": "2019-01-01T00:00:00.000Z",
        "callbackUris": [
            "https://example.com/oauth/callback"
        ],
        "apiProductIds": [
            "29ce79ba-8e63-411f-b549-44c7174eff93"
        ],
        "owner": {
            "userId": "389JJQ8PJSMJ",
            "firstName": "Ada",
            "lastName": "Lovelace",
            "email": "ada.lovelace@example.com"
        }
    }
    
    Show More

    Step 4: Get Collaborators for a Specific Application

    Get All Collaborators operation provides the capability of retrieving a list of collaborators based on a client ID. For a formal definition of a collaborator, refer to the API Basics documentation.

    You will use the following operation:

    HTTP RequestOperation
    GET /clients/{id}/collaborators Get All Collaborators

    Request

    curl -v 'https://developer.api.autodesk.com/applications/v1/clients/:id/collaborators' -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'
    

    Notes:

    • Replace <YOUR_ACCESS_TOKEN> with the token obtained in Step 1.

    Response

    {
        "pagination": {
            "limit": 100,
            "nextUrl": "https://developer.api.autodesk.com/~NEXT_PAGE~",
            "previousUrl": "https://developer.api.autodesk.com/~PREVIOUS_PAGE~"
        },
        "results": [
            {
            "userId": "389JJQ8PJSMJ",
            "firstName": "Ada",
            "lastName": "Lovelace",
            "email": "ada.lovelace@example.com",
            "accessLevel": "VIEWER",
            "createdAt": "2019-01-01T00:00:00.000Z"
            }
        ]
    }
    
    Show More

    Step 5: Get Usage Daily Totals for a Specific Application

    Get Application’s Daily Total Usage operation supports retrieving daily token usage for an application of a given date range.

    You will use the following operation:

    HTTP RequestOperation
    GET /clients/{id}/usage/daily-totals Get Application’s Daily Total Usage

    Request

    curl -v 'https://developer.api.autodesk.com/applications/v1/clients/:id/usage/daily-totals?filter[date]=<SPECIFIED_DATE_RANGE>' -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'
    

    Notes:

    • Replace <YOUR_ACCESS_TOKEN> with the token obtained in Step 1.
    • Replace <SPECIFIED_DATE_RANGE with the date range you want to filter the usage for. The date range must be in the format of YYYY-MM-DD..YYYY-MM-DD.

    Response

    {
        "results": [
            {
                "date": "2063-04-05",
                "usage": [
                    {
                        "service": "REALITY_CAPTURE",
                        "tokens": 47
                    },
                    {
                        "service": "MODEL_DERIVATIVE",
                        "tokens": 35
                    }
                ]
            }
        ]
    }
    
    Show More
     
    ______
    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.