APIs & Integrations

laupifrpar
Member

Synchronize with Mailchimp using Zapier

Hi,

I want to know if a contact unsubscribed from Mailchimp. But I can not fill some native fields like

  • hs_email_optout_4537598
  • hs_email_optout

Because they are read_only fields.

  1. I guess I must use the API to unsubscribe an email with https://developers.hubspot.com/docs/methods/email/update_status, that is right ?
  2. How these native fields are updated ?
0 Upvotes
4 Replies 4
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Synchronize with Mailchimp using Zapier

Hi @laupifrpar,

This is a bit different now; you still can't opt in a contact who has explicitly opted out of email, but you can opt in new contacts. Check out the following docs for more details here:

Update email subscription status for an email address | Email API

PUT /email/public/v1/subscriptions/:email_address

Specifically, check out the example for opting in a contact to certain email types.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Synchronize with Mailchimp using Zapier

Hi @laupifrpar,

You can use the Email API to opt contacts out of email, but not into email. If a contact has opted out from Mailchimp, you can use the Email API to opt the contact out of email.

0 Upvotes
laupifrpar
Member

Synchronize with Mailchimp using Zapier

Thanks

But how do I subscribe (opt-in) a contact ?

0 Upvotes
laupifrpar
Member

Synchronize with Mailchimp using Zapier

@Derek_Gervais I forgot to tag you

0 Upvotes