Data Action JSON parsing error when querying Cognigy profile tokens

Hey folks.

I’m trying to set up a Genesys Cloud Architect Data Action to query NICE Cognigy for user profile tokens. The goal is to fetch the token based on a user ID passed from the flow.

Here is the JSON payload I’m sending in the Data Action:

{
 "method": "GET",
 "url": "https://my-cognigy-instance.com/api/v1/profiles/{{user_id}}/tokens",
 "headers": {
 "Authorization": "Bearer {{cognigy_api_key}}",
 "Content-Type": "application/json"
 }
}

The Cognigy endpoint returns a 200 OK with a simple JSON body like "token": "abc123". But when the Data Action tries to parse the response, I get a JSON_PARSE_ERROR in the logs. The error message says it expected an object but got a string or something weird.

I’ve tried wrapping the response in a wrapper object in Cognigy but that feels hacky. Is there a specific way to handle the response parsing in the Genesys Data Action configuration? Or am I missing a header that forces a specific format?

The token refresh logic is working fine on the Cognigy side so it’s not an auth issue. Just stuck on the parsing part.