Skip to main content
Question

Unable to Retrieve Metadata or Upload HTML File Using Box API (404 Not Found)

  • July 22, 2026
  • 1 reply
  • 264 views

Hi Box Developer Team,

We are developing a Node.js-based Box connector and are facing an issue while working with HTML files.

We have uploaded an HTML file (for example, myhtml.html) to our Box account. However, we are unable to retrieve its metadata or upload a new version of the file using the Box API.

 

What we have tried

  • Retrieved the File ID from the Box web interface.
  • Generated a valid OAuth 2.0 access token.
  • Called the Get File Metadata endpoint using the official Box API.
  • Tested the same request using the official Box API Swagger / API Explorer.
  • Verified that the File ID and Access Token belong to the same Box account.
     

    Issue

    The API consistently returns:

    HTTP 404 Not Found

    As a result, we are unable to:

  • Retrieve the metadata of the HTML file.
  • Upload a new version of the HTML file.
  • Continue implementing our Box connector.

Questions

  1. Does Box support HTML (.html) files as regular files for metadata retrieval and version upload?
  2. Are there any limitations or special requirements for HTML files?
  3. Under what conditions would the File Metadata API return 404 Not Found, even when using a valid File ID and Access Token?
  4. Is there any additional permission or application configuration required for HTML files?

Any guidance would be greatly appreciated.

Thank you!

1 reply

  • Box Employee
  • July 27, 2026

@sharad.pandey - 404 in situations like this is most likely because the platform app “service account” has not been collaborated into the folder containing the file you are trying to access via the app.  In the develop console open up the app and, on the right hand side as shown below.  Service Accounts allows start with “AutomationUserr_...”.  Use the little “Copy Login” button to copy that service account user name.
 


Then go back into your account and “Share the folder containing the HTML file you want the app to be able access.


Be sure also that the platform app has “App + Enterprise Access” App Access Level and “Write all files and folders stored in Box” Application Scopes.