If you’re having trouble accessing your project or data stored in Autodesk Docs through API, try these troubleshooting steps, you may find here the solution to your headache:
2-Legged or 3-Legged: that is the question.
- First, make sure you’ve chosen the right authentication type.
- More info: 2-Legged or 3-Legged? – The Field of View
Hub not showing up when using the GET /hubs endpoint?
- Check if provisioning has been completed.
- More info: Getting Started | Autodesk Platform Services Tutorials
Still not seeing the hub or project even after provisioning, and you’re using 3-legged?
- Make sure the user has access to the project you’re trying to retrieve. They must have at least access to Docs >> Files and are able to see a file(s) for the project to appear calling Data Management GET hubs and projects.
- For BIM 360 users, if you still do not see the intended hub/project, double-check if your app does have access in Account Admin > SETTINGS > Custom Integrations. See the following image:
3-legged auth works in localhost but not in production?
- Double-check that your callback URL is correctly configured. It must match exactly with what’s set in your app’s settings.
- More info: Getting Started | Autodesk Platform Services Tutorials
Got an error saying, “You don’t have access to this API”?
- Make sure the API is selected in your app’s configuration.
- For example, if you want to use the Data Management API, it must be explicitly enabled.
- Also, verify that your token includes the correct scopes for the API call, like account:read, data:write, etc.
- More info: Scopes | Authentication (OAuth) | Autodesk Platform Services
Has your company’s domain changed recently and now you get "error 400 - Invalid redirect uri"?
- Verify that your callback URL has been updated to reflect the new domain.
- Also check if the domain change affected user permissions.
- More info: Getting Started | Autodesk Platform Services Tutorials
Token expired?
- Don’t forget to refresh it using the refresh_token grant_type. This avoids forcing users to re-authenticate.
- More info: Authentication | Autodesk Platform Services Tutorials
Are you testing with both Custom Integration and App Gallery installs?
- Avoid duplicate provisioning. If you’re using the same client_id in both Custom Integration and App Gallery, delete one before adding the other. The system does not allow duplicates.
Wow, you hit Rate Limit?
- Follow these best practices: Autodesk Platform Services (APS) API Rate Limits: Best Practices for Developers | Autodesk Platform Services
If none of these checks resolve your access issues, don’t hesitate to reach out to us for support. We’re here to help you get back on track: