In the user event webhook, is it possible to discern *how* a user is logged out?

When a user logs out of my Discourse instance, the user_event webhook is triggered. Similarly, when a user is logged out by an API call to Discourse, the user_event webhook is also triggered.

I am curious if it is possible, at the webkhook payload URL, to determine if the user logout was initiated by the user or by the API.

If you made the API call to log them out then you can also call the web hook when you do that.

The webhook is already being called. The problem I’m having is the inability to determine on the server hosting the webhook payload URL, if the incoming request was generated by an API logout or the user choosing to logout.