Skip to main content
Question

API - How to get FileRequestId from a FileRequestUrl?

  • May 22, 2025
  • 2 replies
  • 51 views

Forum|alt.badge.img

Hi,

I have a question :)

Our senario is: We created an Auth enabled file request, From an in-house application, we are going to upload files to the relative folder using BOX APIs. We only have File Request Url (Not File Request Id), how can we get File Request Id (by an api call or so*) to be able to call the following endpoint?

 
and then using the folderid  call the upload endpoints.
 
Note 1: we have a Custom app, using Box login to get an access token.
* This solution to get file request id manually does not work for us:
 
Thanks alot ^.^ in advance

2 replies

Forum|alt.badge.img

Hello, 

This screenshot if from our API documentation file requests page. That should help you find the id. Does this help solve your issue? 

BOX1_SL3fyX44rYUbw77C2Yy12A.png

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

I'm having the same issue. I used that file request id that the documentation said to use, but it says that it's not found.

I suspect the problem is a scope issue. I created the template as suggested in https://developer.box.com/guides/file-requests/template/ using my admin account on a shared folder owned by the service account. Because I created the template with my account, I assume the service account has no visibility to said template.

Is my suspicion correct?

If so, how do I create a File Request using the service account? How do I copy it from my account into the service account?