Hi Naoki,
Here's how you can obtain flowInstanceIds and execution data for a given conversationId:
1. Use POST /api/v2/flows/instances/query to query flow instances by conversationId.
2. From the response, extract the flowInstanceIds.
3. For each flowInstanceId, use GET /api/v2/flows/instances/{instanceId} to initiate a job that generates a downloadable URI for the execution data.
4. Monitor the job status and retrieve the execution data once the job is complete.
You can test these APIs in the Genesys Cloud API Explorer (https://developer.genesys.cloud/devapps/api-explorer) before implementing them in your code.
There are other Architect-related endpoints that might be useful for your project. I recommend exploring the API Explorer to find additional relevant endpoints for your specific requirements.
------------------------------
Ewomazino Onokpise
Software Engineer
------------------------------