API Query is the right way. This link provides details(https://documentation.matillion.com/docs/2949006) . But at some other place it is mentioned that Task History is a Enterprise Feature(https://matillioncommunity.discourse.group/t/can-i-access-a-history-of-tasks/1144) . What kind of instance do you have?