Skip to main content
Question

Get Direct Link from Upload API, Sharing Permissions for Web App

  • November 6, 2025
  • 0 replies
  • 2 views

Hello all,

 

I am using the Box API to upload files, which is working fine. But I would like to know is there a way to retrieve the “direct link” from the same api? And how would I set the sharing permissions so that my web app can access the file?

 

My use case is:

1- Upload an image using the box API.

2- Retrieve the image URL.

3- Use the image URL in a web app. (as an image source)

Current issues:

1- No clear way to generate the direct link from the API. It seems I have to share it in another API call. Or download it every time a user wants to preview it on the web app.

2- No clear way to set CORS/viewing permissions without authenticating each user. (I would like to use my service account).

 

What I’m looking for:

-Add a property that automatically shares the file when it’s uploaded in the same API.

-Have a whitelist for the web app domain or a way to allow it to preview without making the links public.

 

Thank you!

0 replies

Be the first to reply!