Parsing nested JSON for v2.analytics.conversation.aggregate webhook

{ “eventType”: “v2.analytics.conversation.aggregate”, “data”: { “metrics”: { “offered”: 12 } } }
The webhook payload keeps nesting everything under that data key. I’m looping through the POST body but my parser keeps choking on the structure.

The docs show a flat object, yet the actual hit wraps it twice. I’ve tried payload[‘data’][‘metrics’][‘offered’] and it still throws a KeyError on half the events. Messy. Just need the right indexing syntax before the next batch dumps in.