Hi,
i am already in contact with the hubspot support via e-mail and they said they dont have a solution and i should ask here.
I am a developer for one of my clients. Hubspot is new to me, maybe i just need a little hint. I am trying to get the following workflow:
- Custom form on website for newsletter (communication-preferences)
- Via API i call POST on /submissions/v3/integration/submit/{portalId}/{formGuid}
- User recieved double-opt-in email from hubspot
- After accepting, user is subcribed
i was using the POST with that body:
{
"fields": [
{
"objectTypeId": "0-1",
"name": "email",
"value": "value of the email here"
},
{
"objectTypeId": "0-1",
"name": "hidden_check_field",
"value": ""
},
{
"objectTypeId": "0-1",
"name": "lead_quelle",
"value": "/"
}
],
"context": {
"pageName": "home-footer",
"pageUri": "/",
"pageId": "abc-123d-adsfc-eewer",
"sfdcCampaignId": ""
},
"legalConsentOptions": {
"consent": {
"consentToProcess": true,
"text": "i consent",
"communications": [
{
"value": false,
"subscriptionTypeId": 86103169,
"text": "I agree to receive marketing communications from Example Company."
},
{
"value": false,
"subscriptionTypeId": 780483031,
"text": "I agree to receive marketing communications from Example Company."
},
{
"value": false,
"subscriptionTypeId": 5744496,
"text": "I agree to receive marketing communications from Example Company."
},
{
"value": false,
"subscriptionTypeId": 2700298312,
"text": "I agree to receive marketing communications from Example Company."
}
]
}
}
}
And with that, i do recieve a double-opt-in mail from hubspot, but after accepting it, i can see through the endpoint crm/objects/2026-03/contacts/search the new user.
But through communication-preferences/2026-03/statuses/{subscriberIdString} (the subscriberIdString is the e-mail, in this example it is “value of the email here”) it tells me, that this subscriberidstirng has no communication preferences. And when my client looks into his hubspot account, he can confirm that this e-mail address has no communication preferences.
Anyway.. If i set the “value” in the POST body on “true”, i dont recieve a double-opt-in mail and the user is immediately set to “SUBSCRIBED” on all subscriptionTypedId.
Any idea?
Moderator note: The HubSpot Community is a public space. I have therefore edited your content for security & confidentiality reasons.
