Skip to main content
Question

list folder items

  • May 22, 2025
  • 5 replies
  • 39 views

Forum|alt.badge.img

I uploaded a folder to my account, which is the same account that I created the developer account with (ACCESS_TOKEN). But when trying to view the files in the folder using:
curl https://api.box.com/2.0/folders/FOLDER_ID/items 
-H "Authorization: Bearer ACCESS_TOKEN"
every time an error appears:
"type": "error", "status": 404, "code": "not_found",
"context_info": { "errors": [{ "reason": "invalid_parameter", "name": "folder",
"message": "Invalid value 'd_XXX'. 'folder' with value 'd_XXX' not found" }] }
what is wrong ??

5 replies

Forum|alt.badge.img

Hey Amr, 

Can you send me the client ID of the application? 

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

App Client ID: 0r7u6s1xvng1xisixnr2e66g5zq4gtrt


Forum|alt.badge.img

Can you confirm what type of application you set up? It looks to be our App Token which has very limited endpoints available to it. I recommend JWT or client credentials. 

 

Alex


Forum|alt.badge.img

You are right it solved the problem 👍 
Thank you very much
Another question. Is there any way to download the file directly using its id, Or using any of the data that appears in the results of this previous request for list folder items?


Forum|alt.badge.img

You should be able to use this endpoint to do so passing in the ids from the items returned in the first call.