I want to pass a POST request to my autotask webhook. The autotask has a relayer connected to it. The following doesn't work -- what is the correct syntax to get 'event'? The event parameter is defined but seems to be a different object. If I disconnect the relayer and remove the credentials param below, I get the event:
The event is actually the first parameter.
Defender will automatically inject temporary credentials to access your Relayer from your Autotask. Simply pass the event object to the relayer client in place of the credentials.