Manage Email Status

We have hosted some webforms on Word press and same is integrated to Infusion soft via Rest API. Whenever any lead provides their email address, it is automatically marked as non marketable. I can change the email status manually, however is there a way that when the data comes in Infusionsoft the email status is automatically marked as confirmed(double-opt in) or unconfirmed(single opt in).