• Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

E-Mail Abonnement Typen via API

Olli1
Member

Hallo,

wie und über welche API können Abonnementen-Typen in Hubspot für einen Kontakt gesetzt werden (speziell wie setze ich einen bestimmten Typen?) Kann dann in diesem Zuge auch ein Kontakt mit angelegt werden?

5 Replies 5
WendyGoh
HubSpot Employee
HubSpot Employee

Hey @Olli1 

 

Gerne helfen wir Ihnen weiter! Ich möchte klarstellen, dass das API-Forum derzeit nicht auf Deutsch verfügbar ist. Daher habe ich Google als Hilfe bei der Übersetzung verwendet. Ich werde mein Bestes tun, um Ihnen so klar wie möglich zu antworten.

 

Wenn Sie den E-Mail-Abonnementstatus eines Kontakts aktualisieren möchten, können Sie den folgenden Endpunkt verwenden: Aktualisieren des E-Mail-Abonnementstatus für eine E-Mail-Adresse | E-Mail-API. Hoffe das hilft!

 

Olli1
Member

Hey @WendyGoh ,

 

thanks for the feedback. It is no problme to write in english.

Related to your linked API entry i've one question.

The mentioned API entry is only related the e-mail subscription, but how can update another abonnment type, which is configured in our setup? For example the optin to get in contact via phone.

WendyGoh
HubSpot Employee
HubSpot Employee

Hey @Olli1,

 

Thank you for writing in English.

 

Just to clarify further, could you expand on the meaning of another abonnment type? Do you mean CALL engagement: Create an Engagement | Engagements API?

0 Upvotes
Olli1
Member

Hey @WendyGoh 

 

no my question ist related to the different subscription types. In hubspot we have the possibility to create different types, also this one that the customer subscripe that we are allowed to call him.

In your first reply you metioned how to subscripe / unsubscripe for the subscription type "email" but how can we differentiate these types in the API to subscribe and unsubscribe

Is it there neccesary differentiate via the ID's? If yes, can I only get the subscribtion type ID via the API or do I have a possibility to find them in hubspot it self?

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

Hey @Olli1,

 

Do you mean you'd like a list of all the subscription types here:

 

subscription.png

 

If so, you can use this endpoint: Get email subscription types for a portal | Email API to retrieve the subscription ID and use it on the POST body of this endpoint: Update email subscription status for an email address | Email API accordingly. 

 

Currently, you can only retrieve subscription ID via the API. 

0 Upvotes