post
https://api.mesh.complyadvantage.com/v1/scenarios/generate
This endpoint generates a scenario from a user_prompt, along with an optional chat_identifier, current_scenario, and scenario_configuration_type. The response is a stream of server-sent events (text/event-stream): zero or more THINKING events with the agent's progress, then one COMPLETED or FAILED event with the result. To refine the scenario, send the chat_identifier from the last COMPLETED event and, if you edited it, the scenario as current_scenario. The generated scenario is not saved; it must be created separately.
You need the "Create artifacts using the Artifact Builder." and "Create and update scenarios" permissions to use this endpoint.