When I insert data in CRM via REST api (from my website) I can able to add a campaign with it (contact) but my campaign not running successfully because in campaign there is an item “Email” sending to contact.
This is occur because every contact made by REST has Non-Marketable email status. This prevent the campaign running.
Please help me to make every contacts Email status “Marketable” Via REST Api or from infusionsoft CRM.
Creating a contact with the API (regardless of which api you’re using) will not, as you have discovered, automatically optin in that contact. optin status is managed on the email level not with the contact so contact creation is actually a separate issue from opt in status (it’s not obvious but that is the case). To resolve for that, an optin method with the api must be called on the email address itself. This will make the email address (and by extension, any contact using that email address) marketable by setting them to ‘unconfirmed’ (which just means they haven’t double opted in but are still marketable at that point)
It will only return true if the email is markets as Non-marketable. So if the email is already opted in for instance it will return false as well. Same goes for any other status like if they opted out at some point or emails bounced to this email previously.