Zum Hauptinhalt springen
POST
/
communication-preferences
/
v3
/
unsubscribe
Einen Kontakt von einem Abonnement abmelden
curl --request POST \
  --url https://api.hubapi.com/communication-preferences/v3/unsubscribe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emailAddress": "<string>",
  "subscriptionId": "<string>",
  "legalBasis": "CONSENT_WITH_NOTICE",
  "legalBasisExplanation": "<string>"
}
'
{
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "sourceOfStatus": "BRAND_WIDE_STATUS",
  "status": "NOT_SUBSCRIBED",
  "brandId": 123,
  "legalBasis": "CONSENT_WITH_NOTICE",
  "legalBasisExplanation": "<string>",
  "preferenceGroupName": "<string>"
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Enterprise
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Kostenlos

Autorisierungen

Authorization
string
header
erforderlich

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
emailAddress
string
erforderlich

Die E-Mail-Adresse des Kontakts.

subscriptionId
string
erforderlich

ID des aktualisierten Abonnements des Kontakts.

Rechtliche Grundlage für die Verarbeitung von Kontaktdaten zum Aktualisieren des Status des Kontakts (erforderlich für DSGVO-konforme Portale).

Verfügbare Optionen:
CONSENT_WITH_NOTICE,
LEGITIMATE_INTEREST_CLIENT,
LEGITIMATE_INTEREST_OTHER,
LEGITIMATE_INTEREST_PQL,
NON_GDPR,
PERFORMANCE_OF_CONTRACT,
PROCESS_AND_STORE

Eine ausführlichere Erläuterung zur rechtlichen Grundlage für die Verarbeitung von Kontaktdaten (erforderlich für DSGVO-konforme Portale).

Antwort

successful operation

description
string
erforderlich

Eine Beschreibung des Abonnements.

id
string
erforderlich

Die ID des Abonnements.

name
string
erforderlich

Der Name des Abonnements.

sourceOfStatus
enum<string>
erforderlich

Wo der Status z. B. aus PORTAL_WIDE_STATUS ermittelt wird, wenn der Kontakt sich aus dem Portal abgemeldet hat.

Verfügbare Optionen:
BRAND_WIDE_STATUS,
PORTAL_WIDE_STATUS,
SUBSCRIPTION_STATUS
status
enum<string>
erforderlich

Ob der Kontakt angemeldet ist.

Verfügbare Optionen:
NOT_SUBSCRIBED,
SUBSCRIBED
brandId
integer<int64>

Die ID der Marke, der das Abonnement zugeordnet ist, sofern vorhanden.

Die rechtliche Grundlage für den aktuellen Status des Abonnements.

Verfügbare Optionen:
CONSENT_WITH_NOTICE,
LEGITIMATE_INTEREST_CLIENT,
LEGITIMATE_INTEREST_OTHER,
LEGITIMATE_INTEREST_PQL,
NON_GDPR,
PERFORMANCE_OF_CONTRACT,
PROCESS_AND_STORE

Eine ausführlichere Erläuterung zur rechtlichen Grundlage für die Verarbeitung von Kontaktdaten.

preferenceGroupName
string

Der Name der Einstellungsgruppe, der das Abonnement zugeordnet ist.

Last modified on January 26, 2026