APIs & Integrations

jmichaelTest
Member

API to unsubscribe from specific type of emails

Hi,
Does HubSpot have an API to unsubscribe contacts from specific email types: say marketing emails, blog subscription etc?

I have looked at the subscription API https://developers.hubspot.com/docs/methods/email/update_status

But, the subscription API is specific to campaigns.

Thanks,
Johnson

0 Upvotes
2 Replies 2
jmichaelTest
Member

API to unsubscribe from specific type of emails

Thanks Derek. That was helpful. I was confused by the samples shown on the documentation page which said “To unsubscribe from specific campaigns”. I guess this should say subscriptions or email types instead of campaigns

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

API to unsubscribe from specific type of emails

Hi @jmichaelRS,

In the context of this endpoint, campaigns refers to email subscription types. If you include the id from a specific email type, you can opt a contact out of a specific email type instead of opting them out of all email. You can get the relevant email type’s id using the following endpoint:

Get email subscription types for a portal | Email API

GET /email/public/v1/subscriptions

0 Upvotes