NAME
Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel - The InteractionChannel resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $interaction_channel ($client->flex_api->v1->interaction($interaction_sid)->channels->read({}, 20)) {
...
}
my $interaction_channel = $client->flex_api->v1->interaction($interaction_sid)->channels($sid)->fetch;
$client->flex_api->v1->interaction($interaction_sid)->channels($sid)->update($status, \%options);
DESCRIPTION
This file holds InteractionChannelList, InteractionChannelPage, InteractionChannelContext and InteractionChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
InteractionChannelList
Returned by $client->flex_api->v1->interaction($interaction_sid)->channels. See also Twilio::ListResource.
read
my @records = $client->flex_api->v1->interaction($interaction_sid)->channels->read(\%options, $limit, $page_size);
List all Channels for an Interaction. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->flex_api->v1->interaction($interaction_sid)->channels->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->flex_api->v1->interaction($interaction_sid)->channels->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->flex_api->v1->interaction($interaction_sid)->channels->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->flex_api->v1->interaction($interaction_sid)->channels->get_context($sid);
Returns a InteractionChannelContext, and makes no request.
InteractionChannelPage
A Twilio::Page of InteractionChannelInstance objects.
records_key
build_instance
Used by Twilio::Page.
InteractionChannelContext
Returned by $client->flex_api->v1->interaction($interaction_sid)->channels($sid). It makes no request until one of these methods is called.
fetch
my $interaction_channel = $client->flex_api->v1->interaction($interaction_sid)->channels($sid)->fetch;
Fetch a Channel for an Interaction. Returns a InteractionChannelInstance.
update
my $interaction_channel = $client->flex_api->v1->interaction($interaction_sid)->channels($sid)->update($status, \%options);
Update an existing Interaction Channel. Returns a InteractionChannelInstance.
The required values are:
The options are:
routing-
It changes the state of associated tasks. Routing status is required, When the channel status is set to
inactive. Allowed Value for routing status isclosed. Otherwise Optional, if not specified, all tasks will be set towrapping. A hash or array reference, or a string of JSON.
invites
my $list = $object->invites;
See Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel::InteractionChannelInvite.
participants
my $list = $object->participants;
my $context = $object->participants($sid);
See Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel::InteractionChannelParticipant.
transfers
my $list = $object->transfers;
my $context = $object->transfers($sid);
See Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel::InteractionTransfer.
InteractionChannelInstance
See also Twilio::InstanceResource.
It has fetch, update, invites, participants and transfers, which work as they do on the context.
Its fields are:
- error_code
-
The Twilio error code for a failed channel.
- error_message
-
The error message for a failed channel.
- interaction_sid
-
The unique string created by Twilio to identify an Interaction resource, prefixed with KD.
- links
-
No description in the specification.
- sid
-
The unique string created by Twilio to identify an Interaction Channel resource, prefixed with UO.
- status
-
One of
setup,active,failed,closed,inactive,pauseortransfer. - type
-
One of
voice,sms,email,web,whatsapp,chat,messengerorgbm. - url
-
No description in the specification.
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.