Skip to main content
Question

Could not get file info

  • May 22, 2025
  • 5 replies
  • 20 views

Forum|alt.badge.img

Hi All!

I have url - https://dfya.app.box.com/master/appId/folderId/0/fileId.

 

When I put this url in browser all working fine and I can see image (and I logged in box of course).
But I can not get file info API call.

Here is my url:

 

https://dfya.app.box.com/2.0/files/fileId?fields=expiring_embed_link

And return 404.

And I tried:

https://dfya.app.box.com/2.0/appId/folderId/0/fileId?fields=expiring_embed_link

And anyway I fetch 404.

 

Could you please help me?

Best regards, Evgen.

5 replies

Forum|alt.badge.img

 

 

The structure of the get file info call is: 

 

https://api.box.com/2.0/files/file_id

 

It looks like your accessing a file via the content manager. Does the token you're using to make this call have collaborator access or own this file? If not, it's expected you'd receive a 404. 

 

If you need further guidance and can provide your file ID's please do. If you're not comfortable sharing them here please open a case including all information at support.box.com!


Forum|alt.badge.img
Does the token you're using to make this call have collaborator access or own this file? 
Yes, this file has no collaborators. And I found that owner of this file is not me. But I can view this file via content manager... Here is file id - 4***phone number removed for privacy***

Forum|alt.badge.img

 Who is the user associated with your token? You will need to have the owner add that user as a collaborator in order to make a successful API call. 


Forum|alt.badge.img

Hi  .

I try to explain.

Owner of file is app A.

And I try get file via app B.

Thanks, Evgen.


Forum|alt.badge.img

Hi  .

I have 2 applications.

First app uses for creating folders and files in box.

And second for reading.

Is it possible grant access to second app?

Thanks, Evgen.