HubSpot Ideas

matiaslopezd

Shareable document link through Rest API

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.

3 Replies
matiaslopezd
Member

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

DavidVendia
Member

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...

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.
MRuff4
Participant

Any Updates on this?