NAME

Twilio::Rest::Proxy::V1::Service::Session::Participant - The Participant resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $participant = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->create($identifier, \%options);
for my $participant ($client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->read({}, 20)) {
  ...
}
my $participant = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants($sid)->fetch;
$client->proxy->v1->services($service_sid)->sessions($session_sid)->participants($sid)->delete;

DESCRIPTION

This file holds ParticipantList, ParticipantPage, ParticipantContext and ParticipantInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ParticipantList

Returned by $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants. See also Twilio::ListResource.

create

my $participant = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->create($identifier, \%options);

Add a new Participant to the Session. Returns a ParticipantInstance.

The required values are:

$identifier

The phone number of the Participant.

The options are:

friendly_name

The string that you assigned to describe the participant. This value must be 255 characters or fewer. This value should not have PII.

proxy_identifier

The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool.

proxy_identifier_sid

The SID of the Proxy Identifier to assign to the Participant.

read

my @records = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->read(\%options, $limit, $page_size);

Retrieve a list of all Participants in a Session. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants->get_context($sid);

Returns a ParticipantContext, and makes no request.

ParticipantPage

A Twilio::Page of ParticipantInstance objects.

records_key

build_instance

Used by Twilio::Page.

ParticipantContext

Returned by $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants($sid). It makes no request until one of these methods is called.

fetch

my $participant = $client->proxy->v1->services($service_sid)->sessions($session_sid)->participants($sid)->fetch;

Fetch a specific Participant. Returns a ParticipantInstance.

delete

$client->proxy->v1->services($service_sid)->sessions($session_sid)->participants($sid)->delete;

Delete a specific Participant. This is a soft-delete. The participant remains associated with the session and cannot be re-added. Participants are only permanently deleted when the Session is deleted. Returns true.

message_interactions

my $list = $object->message_interactions;

my $context = $object->message_interactions($sid);

See Twilio::Rest::Proxy::V1::Service::Session::Participant::MessageInteraction.

ParticipantInstance

See also Twilio::InstanceResource.

It has fetch, delete and message_interactions, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the Participant resource.

date_created

The ISO 8601 date and time in GMT when the resource was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_deleted

The ISO 8601 date when the Participant was removed from the session. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The ISO 8601 date and time in GMT when the resource was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The string that you assigned to describe the participant. This value must be 255 characters or fewer. Supports UTF-8 characters. This value should not have PII.

identifier

The phone number or channel identifier of the Participant. This value must be 191 characters or fewer. Supports UTF-8 characters.

The URLs to resources related the participant.

proxy_identifier

The phone number or short code (masked number) of the participant's partner. The participant will call or message the partner participant at this number.

proxy_identifier_sid

The SID of the Proxy Identifier assigned to the Participant.

service_sid

The SID of the resource's parent Service resource.

session_sid

The SID of the parent Session resource.

sid

The unique string that we created to identify the Participant resource.

url

The absolute URL of the Participant 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.