403 Forbidden Error When Uploading Files to Bucket Despite Correct Token Scopes

403 Forbidden Error When Uploading Files to Bucket Despite Correct Token Scopes

victorU6HDK
Community Visitor Community Visitor
185 Views
1 Reply
Message 1 of 2

403 Forbidden Error When Uploading Files to Bucket Despite Correct Token Scopes

victorU6HDK
Community Visitor
Community Visitor

Hello Autodesk Forge Team and Community,

I am experiencing a persistent issue when trying to upload files to my bucket using the Forge OSS API. Despite having a valid access token with the correct scopes (data:read, data:create, data:write, bucket:create, bucket:read), I receive a 403 Forbidden error on every upload attempt.

Here are some details of my situation:

  • The bucket exists and is accessible.

  • I have confirmed the token scopes and client ID by decoding the JWT token.

  • I have tested uploading different file types, including a simple .txt file and an .ifc file, but all attempts result in the same 403 error.

  • I am using the official endpoint: https://developer.api.autodesk.com/oss/v2/buckets/{bucketKey}/objects/{objectName} with the required headers (Authorization: Bearer {token} and Content-Type: application/octet-stream).

  • I have verified that the bucket policy is set to persistent.

  • Other API calls such as listing buckets or getting bucket details work fine with the same token.

Could you please help me understand why the upload requests are being forbidden? Is there a known issue, or any additional permission or configuration needed?

Thank you in advance for your support!

Best regards,
Víctor

0 Likes
186 Views
1 Reply
Reply (1)
Message 2 of 2

lejla.s
Autodesk
Autodesk

Hi @victorU6HDK,

 

sorry to hear you are experiencing issues with APS. 

Please note this forum is intended for questions related to the Data Exchange Connectors - for general help around APS APIs please check out this page - the APS support team is providing help through the Stack Overflow community.  

 

Best, 

Lejal

Lejla Secerbegovic
Product Manager - Data Exchange
Autodesk Data Strategy - Link Collection
0 Likes