I’m trying to trigger an Architect flow from an external Node.js service using the REST API, but I keep hitting a 400 Bad Request. The request hits POST /api/v2/flows/executions with a standard JSON body containing the flowId and a few custom data attributes. I’ve double-checked the flow ID in the UI, and it’s definitely correct. The auth token is fresh and has the right scopes. Here’s the payload I’m sending:
{
"flowId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"customerId": "cust_123",
"source": "webhook"
}
}
The response body just says “Invalid request” without much detail. I’ve tried adding "version": 1 to the payload, but that didn’t help either. Is there a specific schema requirement for the data object that the docs are hiding? Or maybe I’m missing a header. I’m using the genesys-cloud-node SDK to generate the token, but making the raw fetch call for the execution to avoid SDK quirks.