# Shareable document link through Rest API

**URL:** <https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [October 28, 2020, 11:58pm UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347 "2020-10-28T23:58:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matiaslopezd](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matiaslopezd/32/79058_2.png) [@matiaslopezd](https://community.hubspot.com/u/matiaslopezd)\
**Post date:** [October 28, 2020, 11:58pm UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347/1 "2020-10-28T23:58:49Z")

</div>

I suggest adding an endpoint in documents to create a shareable link through a POST request with an email address on the body.

This actually can do it manually in Sales → Documents → Create Link, but you can’t create shareable links by email dynamically. That would be amazing to complement with Forms API.

The complete idea is adding contacts through a Hubspot form with a custom HTML in a website that sends a request to the backend, then to Hubspot Forms endpoint, then to a new **“Shareable Document Link” (idea) endpoint with the email address in the body**, and send an email with the e-book link through our mailer provider.

With that, we can collect contact data and send an email with a link or simply redirect to the document link.

---

<div class="post-metadata">

**Author:** ![matiaslopezd](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matiaslopezd/32/79058_2.png) [@matiaslopezd](https://community.hubspot.com/u/matiaslopezd)\
**Post date:** [November 17, 2020, 3:16pm UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347/2 "2020-11-17T15:16:58Z")

</div>

This also can be complemented with a fixed shareable link where can request an email to see the document.

---

<div class="post-metadata">

**Author:** ![DavidVendia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/davidvendia/32/41549_2.png) [@DavidVendia](https://community.hubspot.com/u/DavidVendia)\
**Post date:** [February 27, 2021, 12:40am UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347/3 "2021-02-27T00:40:16Z")

</div>

Any updates on this being a feature in the API?  
It looks like the endpoint the UI is hitting is:  
`[https://api.hubspot.com/presentations/v1/deck/2950183/share?portalId=1111&clienttimeout=14000&hs\_sta…](https://api.hubspot.com/presentations/v1/deck/2950183/share?portalId=1111&clienttimeout=14000&hs_static_app=documents-ui&hs_static_app_version=2.19423&sharedWith=email%40toshare-with.com&skipForm=false&=%60)  
Calling this without the cookies fails though. Would be awesome if `

hapikey=${HUBSPOT\_API\_KEY}` query param would work as well.  
We have people downloading items from a custom form setup, there isn’t a solid way to track if they open the document is opened or not.

---

<div class="post-metadata">

**Author:** ![MRuff4](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mruff4/32/202866_2.png) [@MRuff4](https://community.hubspot.com/u/MRuff4)\
**Post date:** [October 30, 2024, 4:19pm UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347/4 "2024-10-30T16:19:52Z")

</div>

Any Updates on this?

---

<div class="post-metadata">

**Author:** ![K\_Brown](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@K\_Brown](https://community.hubspot.com/u/K_Brown)\
**Post date:** [November 8, 2025, 1:33am UTC](https://community.hubspot.com/t/shareable-document-link-through-rest-api/27347/5 "2025-11-08T01:33:20Z")

</div>

+1 - Would love to be able to generate the sharable links for sales docs on the fly via an API call.
