How to track any action happens on erpnext system using it's REST APIs

i’m developing a java application that consumes erpnext api and want to know
how to track any action happens on erpnext system using it’s REST APIs .
any actions related to any document and the user activities like login, logout,register … etc

Webhooks might help you…

https://www.google.com/search?q=frappe+webhooks&rlz=1C5CHFA_enIN800IN800&oq=frappe+webhooks&aqs=chrome..69i57j33.3194j0j7&sourceid=chrome&ie=UTF-8