Getting Event Schema from Sentinel -> Autotask?

@spalladino I am able to see the data I want using the solution you presented. Thank you. I tried to drill down further into the data and I was not able to actually extract the event parameters I want.

I believe the path for what I am looking for is within :

credentials.request.body.matchReasons

But when I console log that to doublecheck the values, I get 'undefined'

console.log(JSON.stringify(credentials.request.body.matchReasons, null, 2))

Ultimately, I just want to be able to store the "params" object that is within matchReasons so I can reference it in my autotask (which are the event parameters). I am just trying to console log it to see the values first before assigning it to a variable.

  "matchReasons": [               // the reasons why sentinel triggered
    {
      "type": "event",            // event, function, or transaction
      "signature": "...",         // signature of your event/function
      "condition": "value > 5",   // condition expression (if any)
      "args": ["5"],              // parameters by index (unnamed are present)
      "params": { "value": "5" }  // parameters by name (unnamed are not present)
      "metadata": {...}           // metadata injected by Autotask Condition (if applicable)
    }
  ]

I was using the path that is specified in the docs:

exports.handler = async function(params) {
  const payload = params.request.body;
  const matchReasons = payload.matchReasons;
  //additional logic
}