I am building a custom agent desktop widget using the Embeddable Client App SDK. We have a Genesys Cloud Data Action that calls our NICE Cognigy instance to fetch profile tokens. The endpoint returns valid JSON, but the Data Action fails with a 400 Bad Request. The error message says Invalid JSON format. I am passing the raw response body directly to the next step. Here is the payload structure I am seeing in the logs:
{
"token": "abc123",
"expiresIn": 3600
}
Is there a specific content-type header required in the HTTP request configuration? Or does the Data Action expect a wrapped response object? The SDK logs show the request succeeds, but the parsing fails internally. I have tried setting application/json explicitly. Nothing works.