# Marketing Consent

**URL:** <https://community.hubspot.com/t/marketing-consent/67996>\
**Category:** GDPR\
**Tags:** analytics-tools\
**Created:** [October 27, 2022, 9:33am UTC](https://community.hubspot.com/t/marketing-consent/67996 "2022-10-27T09:33:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WHarvey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wharvey/32/85657_2.png) [@WHarvey](https://community.hubspot.com/u/WHarvey)\
**Post date:** [October 27, 2022, 9:33am UTC](https://community.hubspot.com/t/marketing-consent/67996/1 "2022-10-27T09:33:49Z")

</div>

During our sign up process for our app we ask whether the user consents to marketing via hubspot. Via the hubspot API we can create the contact record no problem but it’s not clear how to include the marketing consent value. Can this be achieved via the API or is there a different method that doesn’t require a using a hubspot form?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [October 27, 2022, 9:37am UTC](https://community.hubspot.com/t/marketing-consent/67996/2 "2022-10-27T09:37:19Z")

</div>

Hi @WHarvey,

Yes, this is possible via the subscription API endpoints: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/marketing-api/subscriptions-preferences)

Best regards!
