Skip to main content
Question

Why is Box API returning incorrect Folder IDs?

  • May 12, 2026
  • 1 reply
  • 28 views

Forum|alt.badge.img

I am using Box API v10 via the Node SDK to query for Folders, specifically:

client.folders.getFolderItems(parentId) // parentId is a folder name that exists (e.g. ‘QCG Test’)

 

The value I am receiving from Box API does not match the Folder ID found in the URL of the folder when viewing My Account.

For Example:

My folder name is “QCG Test” with an Id (from Box URL) of: ********5204

The value received when I query for this Folder ID from the API returns as: ********0532

Note: The values above are edited to censor the full ID. The censored digits do not match as well.

1 reply

Forum|alt.badge.img
  • Author
  • New Participant
  • May 12, 2026

Through trial and error I have discovered this may be related to using a Service Account for authorization. I have not resolved the issue but I did identify the “As User” header and its purpose.

If I discover more I plan to report back. If anyone can please provide input I would be grateful.