HubSpot DSR integration

Automate privacy request handling by integrating MineOS with HubSpot.

✓ Preview✓ Delete✓ Get a copy✓ Unsubscribe

Missing an action you need, or an integration we don't support yet? Contact your Customer Success Manager.

This integration automates privacy requests for HubSpot. MineOS looks up the HubSpot contact that matches the requester's email address, then lets you preview, delete or copy it, or opt the requester out of your email subscriptions.

To scan HubSpot for personal data, see HubSpot data classification integration.

How It Works

  • Preview: before MineOS acts on a request, you can preview what it found for the requester. For delete and copy, that is the contact ID, email address and name. For unsubscribe, it is the email address and each HubSpot subscription with its current status.
  • Delete: MineOS finds the contact that matches the requester's email address and deletes it from HubSpot. If no contact matches, the task is reported as not found.
  • Get a copy: MineOS sends the requester a copy of the HubSpot contact record found for their email address, including its properties.
  • Unsubscribe: MineOS unsubscribes the requester's email address from every subscription they are currently subscribed to. Subscriptions they are not subscribed to are left untouched, and the contact record stays in HubSpot. If there is nothing to unsubscribe from, the task is reported as not found.

Unsubscribe on HubSpot accounts with GDPR settings

When a HubSpot account has its data privacy (GDPR) settings turned on, HubSpot requires a legal basis for every change to a contact's subscriptions. MineOS sends one with each opt-out: the legal basis is recorded as Legitimate interest – other, with an explanation that the opt-out was requested by the data subject through a MineOS privacy request, including the request ID. This gives you a record of why each subscription changed, and unsubscribe works the same way whether or not the GDPR settings are on. No extra setup is needed.

Choose the right integration type

Integration typeWhat it does
Hubspot Private appPreviews, deletes and copies the requester's contact.
HubSpot v2 (DSR Only)Previews, deletes and copies the requester's contact. Connects with a private app access token and your HubSpot portal ID.
Hubspot unsubscribeOpts the requester out of your HubSpot email subscriptions, without deleting the contact.

Use either Hubspot Private app or HubSpot v2 (DSR Only) for deletion and copy requests, not both. Add Hubspot unsubscribe if you also want to handle unsubscribe requests.

What MineOS Does in HubSpot

The integration works with HubSpot contact records and, for unsubscribe, the email subscription statuses of the requester's email address.

Hubspot Private app

  • Finds the requester by: email address — MineOS gets the contact profile for that email from the HubSpot Contacts API (/contacts/v1/contact/email/{email}/profile). HubSpot returns at most one contact.
  • Preview shows: the contact's vid (ID), email, and name (firstname and lastname).
  • Delete: the contact is deleted by its vid (DELETE /contacts/v1/contact/vid/{vid}). Only the contact record is deleted; the request does not delete companies, deals or tickets.
  • Get a copy includes: the contact's vid, the contact properties email, firstname, lastname, phone, address, city, state, zip, company, website, photo, lifecyclestage, associatedcompanyid and createdate, the contact's merge audits, and its associated company (company-id and company properties such as name, website, industry, city, state, country).

HubSpot v2 (DSR Only)

  • Finds the requester by: email address — MineOS looks up non-archived contacts by email. The request continues only if exactly one contact matches; if none matches the task is reported as not found, and if more than one matches the task fails with an error showing the number of matches.
  • Preview shows: the contact's id, email and a link to the contact in HubSpot (built from your Hubspot Portal Id).
  • Delete: the matching contact is deleted by its id.
  • Get a copy includes: the contact's id, name (firstname and lastname), email and createdAt.

Hubspot unsubscribe

  • Finds the requester by: email address — MineOS reads the subscription statuses of that email address from the HubSpot Communication Preferences API (/communication-preferences/v3/status/email/{email}).
  • Preview shows: for each subscription: the email address, the subscription name and ID, and its current status.
  • Unsubscribe: for each subscription whose status is not NOT_SUBSCRIBED, MineOS unsubscribes the email address (POST /communication-preferences/v3/unsubscribe), one subscription at a time, with the legal basis described in Unsubscribe on HubSpot accounts with GDPR settings above. The contact record and its properties are not changed.

Before You Start

  • Make sure you have permission to create private apps in your HubSpot account.
  • The Hubspot unsubscribe type needs different HubSpot scopes from Hubspot Private app. Create a separate private app for it, or add the unsubscribe scopes to an existing one.

Setting Up

Delete, get a copy and preview

Step 1: Create a private app in HubSpot

  1. Log in to HubSpot and click the settings icon in the main navigation bar.
  2. In the left sidebar, go to Integrations → Private Apps and click Create private app.
  3. On the Basic Info tab, enter a name and description for the app, and optionally upload a logo.
  4. On the Scopes tab, select:
    • Read & write for crm.objects.contacts
    • Read for conversation, crm.objects.deals and crm.objects.companies
    • tickets, e-commerce and sales-email-read
  5. Create the app and copy its access token.

Step 2: Connect in MineOS

  1. Log in to MineOS. On the left sidebar, click Inventory, then click Add data source. Search for HubSpot and add it.
  2. Open the HubSpot data source and go to the DSR & integrations tab. If the data source already has an integration, click Add instance.
  3. Under Action for fulfilling requests, select Integration, then choose Hubspot Private app in the Integration Type dropdown.
  4. Click Set up integration. In the wizard, paste the private app access token into the API Key field.
  5. Click Finish.

HubSpot v2 (DSR Only)

  1. In HubSpot, create a private app as described above (or open an existing one). On the Scopes tab, make sure it has Read & write for crm.objects.contacts, then copy its access token.
  2. Find your HubSpot portal ID (also called the Hub ID). It's shown in the account menu at the top right of HubSpot.
  3. In MineOS, open the HubSpot data source and go to the DSR & integrations tab. If the data source already has an integration, click Add instance.
  4. Under Action for fulfilling requests, select Integration, then choose HubSpot v2 (DSR Only) in the Integration Type dropdown.
  5. Click Set up integration. Paste the private app access token, and enter your portal ID in the Hubspot Portal Id field.
  6. Click Finish.

Unsubscribe

  1. In HubSpot, create a private app as described above (or open an existing one). On the Scopes tab, add:
    • crm.objects.contacts.read
    • communication_preferences.read
    • communication_preferences.write
  2. Create the app and copy its access token.
  3. In MineOS, open the HubSpot data source and go to the DSR & integrations tab. If the data source already has an integration, click Add instance.
  4. Under Action for fulfilling requests, select Integration, then choose Hubspot unsubscribe in the Integration Type dropdown.
  5. Click Set up integration. In the wizard, paste the private app access token into the Access token field.
  6. Click Finish.

You're done! MineOS has been connected to your HubSpot account.

Using several integration types together

To handle deletion, copy and opt-out requests for HubSpot, use a delete-and-copy type (Hubspot Private app or HubSpot v2 (DSR Only), not both) together with Hubspot unsubscribe.

Each integration type is a separate instance of the HubSpot data source, and you can add all of them to the same workflow:

  1. On the left sidebar, click Inventory and open the HubSpot data source.
  2. Go to the DSR & integrations tab and click Add instance.
  3. Under Action for fulfilling requests, select Integration. In the Integration Type dropdown, choose the next type (Hubspot Private app or HubSpot v2 (DSR Only), and Hubspot unsubscribe), then click Set up integration and connect it as described in Setting Up.
  4. Repeat steps 2 and 3 for each integration type you want to use.
  5. Open the privacy right's Eligibility & workflows tab. Under Data sources to process, click + Add and add each HubSpot instance. Add the delete-and-copy instance to your deletion and get a copy workflows, and the Hubspot unsubscribe instance to the workflow of the right that should opt requesters out, such as do not sell or object to direct marketing.

When a request comes in, MineOS runs every instance in the workflow and shows each one as a separate line in the request.

Using the Integration in Requests

To handle requests automatically, add the HubSpot integration to the workflows of the privacy rights it should handle, such as deletion or get a copy. Add the Hubspot unsubscribe integration to the workflow of the privacy right that should opt requesters out of your emails, such as the right to object to direct marketing under GDPR Article 21.

Need Help?

If you need any help with this integration, please contact your Customer Success Manager. They will be happy to assist you!


Did this page help you?