How can I set contacts as marketing 'on demand' using the API or any other hubspot tool?
For example, we might have many contacts but only some of them are interested in the newsletter. When the user clicks subscribe to newsletter on our website we want to set the contact as marketing using the API / hubspot form / open link to another page where he confirms this.
Hmm, workflows is the easiest way. But if you're already working with the API, maybe you create a form that you submit contacts to when they want to subscribe? HubSpot forms have the ability to set as a marketing contact upon submission which is what you would be doing with the Forms API.
Hmm, workflows is the easiest way. But if you're already working with the API, maybe you create a form that you submit contacts to when they want to subscribe? HubSpot forms have the ability to set as a marketing contact upon submission which is what you would be doing with the Forms API.
I thought of this option and if I remember correctly, in order to set contacts created as marketing, you must enable captcha - and then the form can't be used with the API.
Ah okay @Ran-ST, you could also set this up to auto-set these to Marketing Contacts in that case. Scroll to the "Set contacts created by API key apps as marketing contacts" section.
So sorry about that! I thought this was accessible via API. Turns out there's still just an idea here. As for the form, do you have access to Workflows?
{
"status": "error",
"message": "Property values were not valid: [{\"isValid\":false,\"message\":\"\\\"hs_marketable_status\\\" is a read only property; its value cannot be set.\",\"error\":\"READ_ONLY_VALUE\",\"name\":\"hs_marketable_status\"}]",
"correlationId": "70651ddb-b37b-4eb7-925c-b905e496cad9",
"category": "VALIDATION_ERROR"
}
Can you please let me know what to fix or elaborate on the forms solution?