Are workflow emails triggered from API

Are workflow emails triggered from API

I have a workflow with an alert rule that when a new lead is created, send an email to the owner and someone else that i add in the other field.

This works fine when I add the lead directly with in Zoho.

However, when I call the api and add a lead, the lead is created the same way but no email is sent.

Do the alerts work when triggered from the api?

Thanks