Studio Session Handover to Cognigy Voicebot Failing with 400 Bad Request

Trying to get a smooth handover from a Studio script to our NICE Cognigy voicebot. I’ve set up the REST proxy in Studio to call the Cognigy API endpoint. The connection works for the initial greeting, but when I try to push the session context via the sessionData object, Cognigy rejects it with a 400 Bad Request. The error message is vague, just saying ‘Invalid payload structure’.

Here’s the JSON I’m sending in the Studio ASSIGN block:

{
 "sessionId": "{{ConversationId}}",
 "userData": {
 "name": "{{UserData.Name}}",
 "intent": "billing_inquiry"
 }
}

I’ve checked the Cognigy docs and they expect a flat key-value pair for userData, not a nested object. But if I flatten it, Studio complains about the variable mapping. Is there a specific format the Cognigy API expects for the Studio handover payload? Or am I missing a header in the REST proxy configuration? I’m using the standard POST method to https://api.cognigy.ai/v1/voice/session. The status code is definitely 400, so it’s a client-side issue with the request body. Not sure where to look next.