# API Endpoint to get unsubscribe email

**URL:** <https://community.hubspot.com/t/api-endpoint-to-get-unsubscribe-email/110281>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [June 27, 2024, 4:32pm UTC](https://community.hubspot.com/t/api-endpoint-to-get-unsubscribe-email/110281 "2024-06-27T16:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xakpc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/xakpc/32/203098_2.png) [@xakpc](https://community.hubspot.com/u/xakpc)\
**Post date:** [June 27, 2024, 4:32pm UTC](https://community.hubspot.com/t/api-endpoint-to-get-unsubscribe-email/110281/1 "2024-06-27T16:32:35Z")

</div>

Hey, HubSpot community,

Is there a way/endpoint to get a full unsubscribe URL like the one in the sent marketing email?

Or at least obtain query values (data, \_hsenc, \_hsmi) to reconstruct it myself?

Br,

Paul

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [June 28, 2024, 11:59am UTC](https://community.hubspot.com/t/api-endpoint-to-get-unsubscribe-email/110281/2 "2024-06-28T11:59:16Z")

</div>

Hi @xakpc

HubSpot’s API does not expose the full unsubscribe URL, prioritizing the protection of sensitive data and reconstructing the URL by self is not recommended.

**Hope this helps - Happy to help further!!**  
**Thank you very much and have a great one!**  
**Warm regards**
