The APIs typically creates a task after completing the execution. These tasks are created for audits purposes and cannot be disabled. You may create custom fields and trigger to differentiate the tasks created by APIs.