Support for regionalization
The Automation API runs in the United States, India and Germany. Each region is a separate deployment of the service with its own engines, AppBundles, Activities and WorkItems. You choose the region for each request.
Not every engine is available in every region. Today, only the Fusion engine is available outside the United States. It runs in India and Germany so that you can automate Fusion hubs that are stored in those regions. For the scope of Autodesk’s regional offerings, see Autodesk regional offerings.
Engine availability by region
| Engine | United States | India | Germany |
|---|---|---|---|
| Fusion | Available | Available | Available |
| AutoCAD | Available | No | No |
| Revit | Available | No | No |
| Inventor | Available | No | No |
| 3ds Max | Available | No | No |
Engine IDs are the same in every region where an engine is available. For example, Autodesk.Fusion+Latest identifies the latest Fusion engine in all three regions. To list the engines in a region, call GET engines in that region.
Endpoint and region header
Send requests for any region to the same base URL:
https://developer.api.autodesk.com/da/v3
Set the region request header to select the region. Requests without a region header use the United States region.
| Region | region header | Requirement |
|---|---|---|
| United States | US |
Optional |
| India | IND |
Required |
| Germany | DEU |
Required |
For example, to list the engines in Germany:
curl -X GET \
'https://developer.api.autodesk.com/da/v3/engines' \
-H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
-H 'region: DEU'
Regional base URLs
As an alternative, each region has its own base URL. These URLs don’t need the region header.
| Region | Base URL |
|---|---|
| United States | https://api.aps.usa.autodesk.com/da/v3 |
| India | https://api.aps.ind.autodesk.com/da/v3 |
| Germany | https://api.aps.deu.autodesk.com/da/v3 |
Authentication
Authentication is the same for every region. Get your access token from https://developer.api.autodesk.com/authentication/v2/token with the same Client ID and Client Secret, and use it in any region.
Set up your app in another region
Regions don’t share data. The nickname, AppBundles, Activities and Aliases that you created in one region don’t exist in the others, and a WorkItem can only use an Activity from the region it’s submitted to.
To use an app in another region, repeat your setup there. In every request, use the base URL and region header for that region:
- Set your app’s nickname. Do this before you create any AppBundles or Activities in the region. If you skip this step, the fully qualified IDs in that region start with your Client ID. See Create a Nickname for the app.
- Upload your AppBundle and create its Alias. See Upload an AppBundle to the Automation Service.
- Create your Activity and its Alias. See Publish an Activity.
- Submit your WorkItems. See Submit a WorkItem.
If you use the same nickname, AppBundle, Activity and Alias names in every region, the fully qualified IDs are the same everywhere and only the region header changes. For how IDs are formed, see Aliases and IDs.
For example, to submit a WorkItem in Germany:
curl -X POST \
'https://developer.api.autodesk.com/da/v3/workitems' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
-H 'region: DEU' \
-d '{
"activityId": "<YOUR_NICKNAME>.CreateBoxActivity+my_current_version",
"arguments": {
"TaskParameters": "{\"width\": \"50mm\", \"height\": \"30mm\"}"
}
}'
Use the same region for every later request about that WorkItem, such as GET workitems/:id.
Fusion hubs and regions
Each Fusion hub belongs to one region. A Fusion WorkItem works with the hubs in the region it runs in, so submit the WorkItem to the region of the hub that holds your data.
Changing the region header doesn’t move a hub or its data.
To find the region of each hub a user can access, use the hubBasicInfoAcrossRegions query of the Manufacturing Data Model API. See Support for Regionalization in the Manufacturing Data Model API documentation. For how a Fusion WorkItem gets access to hub data, see Fusion Team Integration.
Existing integrations
Existing integrations don’t need to change. The base URL https://developer.api.autodesk.com/da/us-east/v3 keeps working and always uses the United States region. It ignores the region header.
To add India or Germany, switch to https://developer.api.autodesk.com/da/v3 with the region header, or to a regional base URL, and set up your app in that region.