Double opt-in when added to list from API

I am adding to my list through the API as part of a website builder tool I’m using (i.e. I didn’t write the API code).

I want to make sure subscribers have double opt-in. Is there any other way to get a double opt-in experience for new signups using automations or some other mechanism without me having to change the API code? Or do you have to pass the formID as part of the API process or use a form in order to get the double opt in flow?

Thanks for the assistance.

Double opt-in is a setting attached to the form so passing the form ID in should trigger the double opt in confirmation email to send.