Answer

api.sendEmail() can be called only from logic executions, which allow Object Modifications (such as Calculation Flow or Calculated Field Set, etc) or from a Logic started by formulamanager.execute backend call e.g., from outside via Rest API. See details on page: Allow Object Modification .