hubspot-data-handling

Featured

Implement HubSpot GDPR compliance, data export, and contact privacy operations. Use when handling GDPR/CCPA data subject requests, implementing data export, contact deletion, or privacy-compliant HubSpot integrations. Trigger with phrases like "hubspot GDPR", "hubspot data export", "hubspot delete contact", "hubspot privacy", "hubspot CCPA", "hubspot PII".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# HubSpot Data Handling ## Overview Handle GDPR/CCPA compliance with HubSpot's built-in privacy APIs: GDPR delete, data export, consent management, and PII handling for CRM data. ## Prerequisites - HubSpot account with GDPR features enabled - Scope: `crm.objects.contacts.write` (for GDPR delete) - Understanding of GDPR/CCPA requirements ## Instructions ### Step 1: GDPR Contact Deletion HubSpot provides a dedicated GDPR delete endpoint that permanently removes all contact data and communications: ```typescript import * as hubspot from '@hubspot/api-client'; const client = new hubspot.Client({ accessToken: process.env.HUBSPOT_ACCESS_TOKEN!, }); // GDPR delete: permanently removes contact and all associated data // POST /crm/v3/objects/contacts/gdpr-delete async function gdprDeleteContact(email: string): Promise<void> { // First, find the contact const search = await client.crm.contacts.searchApi.doSearch({ filterGroups: [{ filters: [{ propertyName: 'email', operator: 'EQ', value: email }], }], properties: ['email'], limit: 1, after: 0, sorts: [], }); if (search.results.length === 0) { console.log(`Contact not found: ${email}`); return; } const contactId = search.results[0].id; // GDPR delete via API await client.apiRequest({ method: 'POST', path: '/crm/v3/objects/contacts/gdpr-delete', body: { objectId: contactId, idProperty: 'hs_object_id', }, }); // Also delete from your local system...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category