Triggers a new Execution for the Flow
Executions of Studio flows
Triggers a new Execution for the Flow
Path parameters
-
The SID of the Excecution's Flow.
Body
-
The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable
{{flow.channel.address}}
. For SMS, this can also be a Messaging Service SID. -
JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in
Parameters={"name":"Zeke"}
, a widget in your Flow can reference the variable{{flow.data.name}}
, which returns "Zeke". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. -
The Contact phone number to start a Studio Flow Execution, available as variable
{{contact.channel.address}}
.
curl \
-X POST https://studio.twilio.com/v2/Flows/{FlowSid}/Executions \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'From=string&To=string'
{
"From": "string",
"To": "string"
}
{
"From": "string",
"To": "string"
}
{
"account_sid": "string",
"contact_channel_address": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"flow_sid": "string",
"links": {},
"sid": "string",
"status": "active",
"url": "https://example.com"
}
{
"account_sid": "string",
"contact_channel_address": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"flow_sid": "string",
"links": {},
"sid": "string",
"status": "active",
"url": "https://example.com"
}