I was going through the REST v2 Quickstart tutorial where you can create a Flow via the API with a JSON file. Is there a way to export a Flow from a Canvas?
I created a series of wait and reply widgets flow in the Canvas and wanted to share the JSON file to other devs to import it into their local account.
There are two options to do that, either via the UI or via the API :)
User Interface of Twilio Console
Open the Flow in the Twilio Console.
Click on the Trigger Widget and select Show Flow JSON.
This will display the JSON data that defines your Flow. You can copy this data and store it elsewhere.
Here's the docs page that explains this as well.
API
You can either use cURL or the Twilio CLI to fetch the definition of a flow:
Here's the docs page that explains how to do this with the client library in other languages.
PS: You can import via both options as well :)