POST
/v2/Flows
curl \
--request POST 'https://studio.twilio.com/v2/Flows' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=published&Definition=%7B%22initial_state%22%3A+%22Trigger%22%7D&FriendlyName=Test+Flow'
Request example
{"Status"=>"published", "Definition"=>"{\"initial_state\": \"Trigger\"}", "FriendlyName"=>"Test Flow"}
Response examples (201)
{
"sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"revisions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Revisions",
"executions": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Executions",
"test_users": "https://studio.twilio.com/v2/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TestUsers"
},
"valid": true,
"errors": [],
"status": "published",
"revision": 1,
"warnings": [],
"definition": {
"initial_state": "Trigger"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_url": "http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2017-11-06T12:00:00Z",
"date_updated": null,
"friendly_name": "Test Flow",
"commit_message": null
}