Getting shared link programmatically

It’s not clear in the documentation but is there anyway to programmatically generate the shareable link for a prototype without having the user do it?