Skip to main content
Solved

Why is Box API returning incorrect Folder IDs?

  • May 12, 2026
  • 2 replies
  • 196 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.

Best answer by ZackQCG

Fellow Boxers,

I have discovered the missing piece. I am proud to share that this was a guess on my part.

You MUST invite the Service Account that is generated. The email will look like:

2 replies

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.


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

Fellow Boxers,

I have discovered the missing piece. I am proud to share that this was a guess on my part.

You MUST invite the Service Account that is generated. The email will look like: