NAME
Twilio::Rest::FlexApi::V1::WebChannel - The WebChannel resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $web_channel = $client->flex_api->v1->web_channel->create($flex_flow_sid, $identity, $customer_friendly_name, $chat_friendly_name, \%options);
for my $web_channel ($client->flex_api->v1->web_channel->read({}, 20)) {
...
}
my $web_channel = $client->flex_api->v1->web_channel($sid)->fetch;
$client->flex_api->v1->web_channel($sid)->update(\%options);
$client->flex_api->v1->web_channel($sid)->delete;
DESCRIPTION
This file holds WebChannelList, WebChannelPage, WebChannelContext and WebChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
WebChannelList
Returned by $client->flex_api->v1->web_channel. See also Twilio::ListResource.
create
my $web_channel = $client->flex_api->v1->web_channel->create($flex_flow_sid, $identity, $customer_friendly_name, $chat_friendly_name, \%options);
Returns a WebChannelInstance.
The required values are:
$flex_flow_sid-
The SID of the Flex Flow.
$identity-
The chat identity.
$customer_friendly_name-
The chat participant's friendly name.
$chat_friendly_name-
The chat channel's friendly name.
The options are:
chat_unique_name-
The chat channel's unique name.
pre_engagement_data-
The pre-engagement data.
read
my @records = $client->flex_api->v1->web_channel->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->flex_api->v1->web_channel->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->flex_api->v1->web_channel->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->flex_api->v1->web_channel->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->flex_api->v1->web_channel->get_context($sid);
Returns a WebChannelContext, and makes no request.
WebChannelPage
A Twilio::Page of WebChannelInstance objects.
records_key
build_instance
Used by Twilio::Page.
WebChannelContext
Returned by $client->flex_api->v1->web_channel($sid). It makes no request until one of these methods is called.
fetch
my $web_channel = $client->flex_api->v1->web_channel($sid)->fetch;
Returns a WebChannelInstance.
update
my $web_channel = $client->flex_api->v1->web_channel($sid)->update(\%options);
Returns a WebChannelInstance.
The options are:
chat_status-
Must be
inactive. post_engagement_data-
The post-engagement data.
delete
$client->flex_api->v1->web_channel($sid)->delete;
Returns true.
WebChannelInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the WebChannel resource and owns this Workflow.
- 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.
- flex_flow_sid
-
The SID of the Flex Flow.
- sid
-
The unique string that we created to identify the WebChannel resource.
- url
-
The absolute URL of the WebChannel 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.