Dynamically create a link to subscription preferences
I am looking to add a link to the unsubscribe/ subscription preference page from my website. Is there an API call or other shortcut which will allow me to populate all the URL parameters, specifically the user key?
Dynamically create a link to subscription preferences
Thank you @derekcavaliero. I had a feeling this would be the case so hopefully, @MiaSrebrnjak can find out if there's an alternative solution or something in the works.
I am unaware of any documentation on what parameters need to be passed to the unsubscribe page for it to work properly. Theoretically - all the information you would need should be available inside the contact record - but without any concrete docs from HubSpot - I can't say what exactly would need done. The biggest question being that user key value - that may be something that is dynamically generated by the email sending server and not something easily accessible via HubL or via the contacts API.
@MiaSrebrnjak can you perhaps poke the tech team at HubSpot and see if this is in fact possible? We've had clients ask about doing this before, but we've steered them away from it due to unknowns and avoiding hacking something together that may not work 100% of the time.