Skip to main content
Question

Developer Token POST requests returning 403

  • May 22, 2025
  • 4 replies
  • 31 views

Forum|alt.badge.img

Trying to make a POST request to upload a file to the following endpoint using ajax:

 

url: 'https://upload.box.com/api/2.0/files/content',

headers: {Authorization: 'Bearer DeveloperTokenHere'},

 

I keep getting a 403 error when trying..I have checked permissions in my admin console and they look alright. Any GET request I make is returning a 2xx code but POST are giving me this 403 error.

4 replies

Forum|alt.badge.img

 

 

Can you please provide: 

  • Client ID of your application (found in the configuration tab of the dev console) 
  • Full body response of the 403 
  • Date/time/timezone you receive the error 

I'd like to take a look in our backend logs for more info. Alternatively, you can open a ticket at support.box.com if you aren't comfortable providing the above here. 

 

Best, 

Kourtney 


Forum|alt.badge.img

Hi  ,

  • redacted
  • I was just testing through my browser and I believe console just threw 403 forbidden.
  • 10/6 around 8-10pm Pacific

Please let me know if you need more info. Thank you!


Forum|alt.badge.img

It looks like you're trying to upload content to a folder that's owned by the "admin" of your developer account. However, you have selected application only as the application access level. This only enables you to interact with the applications service account, app users, and their content. Can you please try changing the application access level to enterprise and making the call again? Once you change the app access level you will need to reauthorize the application and obtain a new token. 

 

Best, 

Kourtney


Forum|alt.badge.img

I got it, it was a CORS error. I needed to add localhost to the allowed domains in developer console. I am guessing enterprise access was also needed. Thank you for the help : )🙂