Skip to main content

Hello Box Community,


I am currently working on a project that involves downloading audio files from Box using an audio URL. My process involves authorizing with Box using OAuth2 and then attempting to download the file. Here are the steps I am following:



  1. Authorization:


    • I am using a POST request to authenticate with Box using OAuth2. The request includes the following parameters: grant_type, client_id, client_secret, box_subject_id, and box_subject_type.

    • The authorization process completes successfully, and I receive the access token.



  2. Retrieving File Information:


    • I use a GET request to the following endpoint to retrieve the file information: https://api.box.com/2.0/shared_items?shared_link=${shared_link}

    • This request works correctly, and I am able to obtain the file ID and other details.



  3. Downloading the File:


    • I attempt to download the file using a GET request to this endpoint: https://api.box.com/2.0/files/:file_id/content?access_token=${accessToken}

    • I ensure that both the access token and file ID are correctly included in the request.


Despite following these steps, I consistently receive a 404 Not Found response when attempting the file download.


Has anyone encountered a similar issue or can provide guidance on what might be going wrong? I would appreciate any insights or suggestions for resolving this problem.


Thank you for your assistance.

Hi there,  



Welcome to Box Community! 


It indicates that you have already collaborated with one of our team members. Please keep an eye out and we'll stay in touch. 


Thanks for posting!



Reply