You can also export a flow through code alone using the Architect Scripting library.
Interestingly the library has two methods for auth. I suspect the latter still relates to an OAuth Client's token, but seemed worth mentioning:
You can then use the library to export to YAML. Here's a snippet from my project:
// ...
const loadedFlow: ArchBaseFlow = await flowFactory.loadFlowByFlowIdAsync(
flowId,
archEnums.FLOW_TYPES.inboundShortMessage,
'latest',
);
//...
output.flowYaml = await loadedFlow.exportToObjectAsync((exportObject) => {
return exportObject;
}, archEnums.FLOW_FORMAT_TYPES.yaml);
------------------------------
Lucas Woodward
Winner of Orchestrator of the Year, Developer (2025)
LinkedIn -
https://www.linkedin.com/in/lucas-woodward-the-devNewsletter -
https://makingchatbots.com------------------------------