Skip to main content
Question

404 staus code while downloading the file from box using JWT Rest API

  • May 22, 2025
  • 1 reply
  • 12 views

Forum|alt.badge.img

Hi,

I was trying to download the file from box but getting 404 status code error. plz help me to resolve this issue.
URL: - "https://api.box.com/2.0/files/871324111894/content/

{
"type": "error",
"status": 404,
"code": "not_found",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Could not find the specified resource",
"request_id": "jc6s64gvm13gm0a8"
}

1 reply

Forum|alt.badge.img

This error means that the access token you're using does not have access to this file. 

To verify the user associated with your access token, you can use the get current user endpoint. By default, JWT apps obtain access tokens for the apps service account

Your options are: 

1. add the user associated with your access token as a collaborator on the content 

2. obtain an access access token for a user that already has access

 

Best,

Kourtney, Box Developer Advocate