• See Source Code

Data Management API Beta - Quick Start Guide

  • 1: Try the Viewer Live
  • 2: Sign Up
  • 3: Get Access Token
  • 4: Create Bucket
  • 5: Get Bucket Details
  • 6: Get Supported Formats
  • 7: Upload File
  • 8: Get Bucket Object
  • 9: Set References
  • 10: Encode URN
  • 11: Translate File
  • 12: View Status
  • 13: View Your File
  • Overview
  • Sign Up
  • Get Access Token
  • Create Bucket
  • Get Bucket Details
  • Get Supported Formats
  • Upload File
  • Get Bucket Object
  • Set References
  • Encode URN
  • Translate File
  • View Status
  • View Your File

Step 1: Try the Viewer Live

Click on the image below to try out the viewer on an already translated model.

LMV Live Sample screenshot

Step 2: Sign Up/Sign In

To use Autodesk API, first log in or register an Autodesk ID. Once you are logged in, you can create an app with Autodesk.

  • Click on “Create an App”
  • Select the “Data Management API” checkbox.
  • Enter the app name, description, and your website URL under “Redirect URL”
  • Check if your app will be used for commercial purposes. The API is still in beta, so we’d like to work closely with you if you’d like to put it in a commercial application.

Note: the Callback/Redirect URL is for OAuth2 two-leg authentication. Don’t worry if you do not have a callback/redirect set up yet, but a value is required in this field to proceed. Once you have an application set up, you will see a Consumer Key, Consumer Secret, and the Callback/Redirect URL. Save your Consumer Key and Consumer Secret, you will need them for the next step.

Note: if the Consumer Key and Consumer Secret are struck out, your application is pending approval, and you will not be able to authenticate and use the APIs until it is approved.

Get Keys screenshot

Step 3: Get Your Access Token

To get an access token, pass your Consumer Key (as the client_id parameter) and Consumer Secret (as the client_secret parameter) to the Authentication API. However, this cannot be done from the browser context because it would be a security hole to let your keys "leak out" to an unsafe location. Therefore, you need to setup an Auth Token Service and embed your keys safely in that service. Your browser based app will then call that service to get a valid auth token that it can use to make all API calls. For more information on how to set up your own Auth Token Service, click here

If you use your own custom AuthTokenServer, enter the URL. It must return the full response text that comes back from the call to the Viewing Service's authenticate API.

If you want to quickly authenticate, you can just cut and paste the following command to a Terminal window:

Make sure to relplace MY_CONSUMER_KEY and MY_CONSUMER_SECRET with the keys you obtained in Step 2. When you get the result, cut and paste the "access_token" into the field below and then press the "Use AuthToken" button. This AuthToken will expire after approximately 30 minutes and you will have to do this step again.


Step 4: Create a Bucket

"Buckets" are containers for data used by the Autodesk Data Management API. Before uploading a file, create a bucket and set a retention policy. Briefly, the policies are:

  • Transient: cache-like storage that persists for only 24 hours, ideal for intermittent objects.
  • Temporary: storage that persists for 30 days. Good for data that is uploaded and accessed, then not needed later. This type of bucket storage will save your service money.
  • Persistent: storage that persists until deleted. Items that have not been accessed for 2 years may be archived.

There are also some restrictions on the characters used in the bucket name. It must be between 3 to 128 characters long and contain only lowercase letters, numbers and the symbols . _ -


Step 5: Get Bucket Details

[Optional]

Get the details of a previously defined bucket and verify that it exists.


Step 6: Get Supported Formats

[Optional]

The extensions that have a channel named “Viewing-*” are supported for viewing.


Step 7: Upload File to Bucket

The next step is to put a file into your bucket so that it can be translated and viewed. Currently over 60 file formats are supported, including:

  • Autodesk DWG
  • Autodesk Inventor
  • Fusion 360
  • SIM 360
  • Autodesk Navisworks
  • Autodesk Revit
  • Solidworks
  • CATIA
  • Siemens Parasolid
  • Siemens NX
  • Siemens OpenJT
  • WaveFront Technologies OBJ

The key piece of information returned upon successful upload is the id, which is needed for the next steps.

If your model consists of several files (such as an Inventor Assembly IAM file and several IPT parts files), upload each of those files to your bucket, and note the ID for each one. Then, you will need to do an extra step outlined here: Composite Design Upload and in Step 9 below.

File not loaded


Step 8: Get Bucket Object

[Optional]

Get the details of an object (file) in the bucket.


Step 9: Set References

[Optional]

Set references for a composite design (Xrefs/Assemblies). Use the template below that shows the JSON format for specifying the references. First upload the individual files using Step 7 above. Record each of the id and key values and then paste them into the JSON format below to specify how the files work as an assembly.

The template shows "MYBUCKET", "ROOT_FILE", and "LINKED_FILE" as the placeholders you replace with your own data. This template specifies a single linked file, but you can have multiple dependencies. The reason for specifying the "metadata" section is so that you can temporarily rename one of the files to match what the authoring application would expect. For example, if I had a ROOT file "A" that had a LINKED file "B", the translation process will expect the LINKED file to have that name. But, you may have versioned the file upon upload and given it a new name like "B2". You can then specify "childPath" as "B" so that it retains its original name when resolving within the authoring application during translation.

A null string response of "" means success. Then use the id of the root file of the assembly as the one to register in Steps 10 and 11 below.



Step 10: Encode URN

Once the file has been successfully uploaded, we should have recieved back an id in the form of a URN. It should look something like: "urn:adsk.objects:oss.object:mybucket/myfile.ext"

Subsequent usage of this URN must be base64 encoded. Use the input form below or an online tool (such as this) to convert the URN. Use the entire string value retured for id, including the "urn:" prefix.

Note: Javascript source for the input below is available via the source for this page if you want to programmatically encode the URN in future projects.


Step 11: Translate the File

Have the viewing service translate your file to a neutral format


Step 12: View Translation Status

See what the current status of your translation is


Step 13: View Your File!

See your translated file in the viewer