So I wanted to download a file inside a project. And I went through the following steps for the same -
I'm attaching the JWT details of the token(step-4) that I've generated.
{
"scope": [
"data:read"
],
"client_id": "___MY_CLIENT_ID_WAS_HERE___",
"iss": "https://developer.api.autodesk.com",
"aud": "https://autodesk.com",
"jti": "___HIDDEN___",
"exp": 1730795145,
"userid": "3L5JHG3YLRVJ6AFN"
}
(Please note that above are the decoded JWT token details from jwt.io)
The final response -
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": {
"href": "https://developer.api.autodesk.com/project/v1/hubs"
}
},
"data": [],
"meta": {
"warnings": [
{
"Id": null,
"HttpStatusCode": "**403**",
"ErrorCode": "BIM360DM_ERROR",
"Title": "Unable to get hubs from BIM360DM US.",
"Detail": "**You don't have permission to access this API**",
"AboutLink": null,
"Source": null,
"meta": null
},
...
}
Requesting help. I have all the account accesses but not sure what more needs to be done here.
I also tried using 2-legged token instead of 3-legged. But the result was same. I've followed the documentation from here -
Kindly make sure you are atleast a member of a project in the hub. Also make sure your app was added in the custom integrations as below