NAME
Twilio::Rest::FlexApi::V1::Interaction::InteractionChannel::InteractionChannelInvite - The InteractionChannelInvite resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $interaction_channel_invite = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites->create($routing);
for my $interaction_channel_invite ($client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites->read({}, 20)) {
...
}
DESCRIPTION
This file holds InteractionChannelInviteList, InteractionChannelInvitePage and InteractionChannelInviteInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
InteractionChannelInviteList
Returned by $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites. See also Twilio::ListResource.
create
my $interaction_channel_invite = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites->create($routing);
Invite an Agent or a TaskQueue to a Channel. Returns a InteractionChannelInviteInstance.
The required values are:
read
my @records = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites->read(\%options, $limit, $page_size);
List all Invites for a Channel. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->flex_api->v1->interaction($interaction_sid)->channels($channel_sid)->invites->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($channel_sid)->invites->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($channel_sid)->invites->get_page($url);
Fetches the page at a URL given by Twilio.
InteractionChannelInvitePage
A Twilio::Page of InteractionChannelInviteInstance objects.
records_key
build_instance
Used by Twilio::Page.
InteractionChannelInviteInstance
See also Twilio::InstanceResource.
Its fields are:
- channel_sid
-
The Channel SID for this Invite.
- interaction_sid
-
The Interaction SID for this Channel.
- routing
-
A JSON object representing the routing rules for the Interaction Channel. See Outbound SMS Example for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see Known Task Attributes.
- sid
-
The unique string created by Twilio to identify an Interaction Channel Invite resource.
- 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.