NAME
Twilio::Rest::Studio::V1::Flow::Engagement::Step - The Step resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $step ($client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->read({}, 20)) {
...
}
my $step = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps($sid)->fetch;
DESCRIPTION
Steps within a Studio flow
This file holds StepList, StepPage, StepContext and StepInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
StepList
Returned by $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps. See also Twilio::ListResource.
read
my @records = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->read(\%options, $limit, $page_size);
Retrieve a list of all Steps for an Engagement. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps->get_context($sid);
Returns a StepContext, and makes no request.
StepPage
A Twilio::Page of StepInstance objects.
records_key
build_instance
Used by Twilio::Page.
StepContext
Returned by $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps($sid). It makes no request until one of these methods is called.
fetch
my $step = $client->studio->v1->flows($flow_sid)->engagements($engagement_sid)->steps($sid)->fetch;
Retrieve a Step. Returns a StepInstance.
step_context
my $context = $object->step_context;
See Twilio::Rest::Studio::V1::Flow::Engagement::Step::StepContext.
StepInstance
See also Twilio::InstanceResource.
It has fetch and step_context, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Step resource.
- context
-
The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.
- 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.
- engagement_sid
-
The SID of the Engagement.
- flow_sid
-
The SID of the Flow.
- links
-
The URLs of related resources.
- name
-
The event that caused the Flow to transition to the Step.
- parent_step_sid
-
The SID of the parent Step.
- sid
-
The unique string that we created to identify the Step resource.
- transitioned_from
-
The Widget that preceded the Widget for the Step.
- transitioned_to
-
The Widget that will follow the Widget for the Step.
- type
-
The type of the widget that was executed.
- url
-
The absolute URL of the resource.
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.