Audit profile not recording API data

I created an audit profile to record the activities done by the different users(create profile, edit profile, etc) and we are doing these operations using api calls.
Can this be a reason(use of api call instead of queries) for not storing the operations in audit profile?

Yes, many script actions initiated on the gateway will not be audited because they're assumed to be trusted.
Consider manually inserting a call to system.util.audit when you call the other modification functions.

1 Like

As per the following doc, it says that Audit profile records Creating,editing or deleting the user in gateway. But it is not working.

https://docs.inductiveautomation.com/display/DOC81/Auditing+Actions+Reference

Can someone share why such things are not working in Audit profile.