API Access to APS not showing projects in ACC

API Access to APS not showing projects in ACC

jonathan10
Contributor Contributor
967 Views
2 Replies
Message 1 of 3

API Access to APS not showing projects in ACC

jonathan10
Contributor
Contributor

Hello everyone,

I'm currently working on an application that interacts with the Autodesk API, and I've run into a bit of a roadblock. I'm trying to access the projects in my Autodesk Construction Cloud (ACC) account, but I'm having some trouble.

Here's what I've done so far:

  1. I've set up an application with Autodesk and ensured it has the necessary permissions.
  2. I've successfully performed a 3-legged authentication using the 'https://developer.api.autodesk.com/authentication/v2/authorize' endpoint.
  3. After authentication, I've used the 'https://developer.api.autodesk.com/project/v1/hubs' endpoint to see which data hubs I have access to.

However, I'm not seeing my ACC account listed among the hubs.

 

To try and work around this, I looked up the Account ID for my ACC account (for which I'm an administrator) and attempted to list the projects within that account using the 'https://developer.api.autodesk.com/project/v1/hubs/{hub_id}/projects' endpoint. I used the Account ID from the Account Admin section of ACC, and added a "b." prefix to convert it into a hub ID.

 

Unfortunately, this resulted in a 403 error with the following message: "'status': '403', 'code': 'BIM360DM_ERROR', 'detail': 'Failed to get projects with hub id b.xxxxxxxxxxxxxxxxxxxxx'}]}"

 

I'm sure there's something I'm missing here. Could anyone provide some guidance on how to access the project information for my ACC projects using the API?

 

Thanks in advance for your help!

0 Likes
Accepted solutions (1)
968 Views
2 Replies
Replies (2)
Message 2 of 3

jonathan10
Contributor
Contributor
Accepted solution

As usually happens, as soon as I post to the forums I find the answer on my own.

 

For those with the same problem, the missing information that I needed was that you have to enable your  integration manually from ACC.

 

Here is a helpful guide:

https://fieldofviewblog.wordpress.com/2017/01/19/bim-360-activating-api-access-to-docs/

 

Cheers!

Message 3 of 3

donaldroper670
Community Visitor
Community Visitor

If the API isn’t returning projects from ACC, make sure the scopes and permissions are correctly set up in your APS app. Also double-check that the account has access to those specific projects—sometimes it’s just a missing role or incorrect hub ID.

It’s kind of like Path of Building—you can have all the right pieces, but if one passive node (or in this case, permission) is off, the whole setup doesn’t work like it should. Worth going back through the docs and verifying each step.

0 Likes