NAME
Twilio::Rest::Studio::V1::Flow - The Flow resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $flow ($client->studio->v1->flows->read({}, 20)) {
...
}
my $flow = $client->studio->v1->flows($sid)->fetch;
$client->studio->v1->flows($sid)->delete;
DESCRIPTION
Studio flows
This file holds FlowList, FlowPage, FlowContext and FlowInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
FlowList
Returned by $client->studio->v1->flows. See also Twilio::ListResource.
read
my @records = $client->studio->v1->flows->read(\%options, $limit, $page_size);
Retrieve a list of all Flows. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->studio->v1->flows->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->studio->v1->flows->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->studio->v1->flows->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->studio->v1->flows->get_context($sid);
Returns a FlowContext, and makes no request.
FlowPage
A Twilio::Page of FlowInstance objects.
records_key
build_instance
Used by Twilio::Page.
FlowContext
Returned by $client->studio->v1->flows($sid). It makes no request until one of these methods is called.
fetch
my $flow = $client->studio->v1->flows($sid)->fetch;
Retrieve a specific Flow. Returns a FlowInstance.
delete
$client->studio->v1->flows($sid)->delete;
Delete a specific Flow. Returns true.
engagements
my $list = $object->engagements;
my $context = $object->engagements($sid);
See Twilio::Rest::Studio::V1::Flow::Engagement.
executions
my $list = $object->executions;
my $context = $object->executions($sid);
See Twilio::Rest::Studio::V1::Flow::Execution.
FlowInstance
See also Twilio::InstanceResource.
It has fetch, delete, engagements and executions, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Flow resource.
- date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
The string that you assigned to describe the Flow.
- links
-
The URLs of the Flow's nested resources.
- sid
-
The unique string that we created to identify the Flow resource.
- status
-
One of
draftorpublished. - url
-
The absolute URL of the resource.
- version
-
The latest version number of the Flow's definition.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.