When building an API, there are events, such as on success. However, there are also the same events when building different workflows. I'm curious if anyone has thoughts on when to do it one way vs. the other (screenshots attached). They way I've been thinking about it is setting the event on the API itself if I know it's something I'll always want to do in that instance and setting the event in the course of a workflow if it's specific to a certain instance, but not necessarily something I would want to do in all cases where I might call the API. Also, does the event within the API get called before the event in the workflow?
Hopefully that makes sense!