Webhooks Identify the Changing Agent
It'd be great to know if the change object the webhooks fire off contained the user agent be it an API, User, or Automated process. Providing it through a header value like meta tags would keep handling request meta consistent as well.
Comments: 6
-
22 Nov, '19
Jared King AdminAlthough this is not formally documented, there is a `user` property on the Event object that will tell you the user that caused the event.
-
13 Dec, '19
Ryley SevierOh I missed that! Thank you sir!
-
03 Jan, '20
Ryley SevierI went to go try and implement this. The event object does include a user object but it's not returned as part of the events API so far as I can tell. It's visible when you go to the history of an object but is left out of the response when querying via API.
I have an alternative request to modify the events api! 🤣 -
06 Jan, '20
Jared King AdminSorry about that! I left out a key piece of information. If you add `?include=user` to your events API call you will have the user object available to you.
-
11 Aug, '20
Ryley SevierWhat's the enumeration on the API for the user?
I think -1 is an API key, -3 is an external user. -
14 Aug, '20
Jared King AdminIt would be -2 for the API user