API fix for calling workflow within API