Node.js Lambda: Genesys Cloud Webhook Payload Decoding Issue

Handling Genesys Cloud webhooks in a Node.js Lambda function. The event.body comes in as a string, so I’m running JSON.parse(event.body). The payload structure looks correct, but the data field is always undefined when accessing event.data.

Here’s the handler logic:

exports.handler = async (event) => { 
 const payload = JSON.parse(event.body); 
 console.log(payload.data); 
 return { statusCode: 200 }; 
};

The logs show undefined. Missing a step in the parsing or is the webhook structure different?