Genesys Data Action JSON parse fail on Cognigy token

The Genesys Cloud Data Action for HTTP requests keeps failing with a generic JSON parse error when the response from the Cognigy profile token endpoint comes back. The payload structure looks valid, but the mapping step in Architect throws a syntax error on the nested object. Here’s the config JSON:

{
 "url": "https://api.cognigy.ai/v1/profiles/token",
 "method": "POST",
 "headers": {
 "Content-Type": "application/json"
 },
 "body": "{\"profileId\": \"12345\"}"
}

Is there a specific character encoding issue with the token response that breaks the built-in parser?

The issue likely stems from how Architect handles nested JSON responses. You might need to flatten the payload before mapping.

{
 "response": "${dataActionResponse.body.data.token}"
}

Check if the Cognigy response wraps the token in a data object.