Hi @Rogerio Acquadro ,
On SharePoint, we could also use CSOM API to generated a URL for a single file with an expiration timeout.
The method is Web.CreateAnonymousLinkWithExpiration: https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-server/mt143090(v=office.15)
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
If the response is helpful, please click "Accept Answer" and upvote it.