Compatibility of 'Get Embed Link' API with shared links

SOLVED
Go to solution
New Contributor

Compatibility of 'Get Embed Link' API with shared links

Hi,

 

Could I use 'Get Embed Link' API (https://developer.box.com/reference#get-embed-link) with shared links?

 

As far as I see the API only use the internal Box file id and there is no way to access previews of such files for external users or users who don't have access to the file inside the Box.

2 REPLIES 2
Highlighted
Box Employee

Re: Compatibility of 'Get Embed Link' API with shared links

Hi @becker2 ,

 

The get embed link will generate a unique URL based on a file ID, so the short answer is that you wouldn't add a shared URL to it because a unique embed link will be generated (kind of like a shared link).

 

The slightly longer answer is that if you want to have more of a shared link experience you can customize the URL with the appropriate configuration fields, specifically showDownload, showAnnotations, and by setting fields to expiring_embed_link. That will allow you to customize and control what information is shared / seen.

 

Hope that helps,

Jon

New Contributor

Re: Compatibility of 'Get Embed Link' API with shared links

Thank you! It seems that access to content by 'emded_expiring_link' works without authorisation.