NAME

Twilio::Rest::Conversations::V1::Conversation::Participant - The Participant resource

SYNOPSIS

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

my $participant = $client->conversations->v1->conversations($conversation_sid)->participants->create(\%options);
for my $participant ($client->conversations->v1->conversations($conversation_sid)->participants->read({}, 20)) {
  ...
}
my $participant = $client->conversations->v1->conversations($conversation_sid)->participants($sid)->fetch;
$client->conversations->v1->conversations($conversation_sid)->participants($sid)->update(\%options);
$client->conversations->v1->conversations($conversation_sid)->participants($sid)->delete;

DESCRIPTION

A Participant resource represents a member of the conversation.

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->conversations->v1->conversations($conversation_sid)->participants. See also Twilio::ListResource.

create

my $participant = $client->conversations->v1->conversations($conversation_sid)->participants->create(\%options);

Add a new participant to the conversation. Returns a ParticipantInstance.

The options are:

attributes

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

date_created

The date that this resource was created. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

date_updated

The date that this resource was last updated. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

identity

A unique string identifier for the conversation participant as Conversation User. This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.

messaging_binding_address

The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).

messaging_binding_projected_address

The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.

messaging_binding_proxy_address

The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).

role_sid

The SID of a conversation-level Role to assign to the participant.

x_twilio_webhook_enabled

The X-Twilio-Webhook-Enabled HTTP request header One of true or false.

read

my @records = $client->conversations->v1->conversations($conversation_sid)->participants->read(\%options, $limit, $page_size);

Retrieve a list of all participants of the conversation. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->conversations->v1->conversations($conversation_sid)->participants->stream(\%options, $limit, $page_size);

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

page

my $page = $client->conversations->v1->conversations($conversation_sid)->participants->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->conversations->v1->conversations($conversation_sid)->participants->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->conversations->v1->conversations($conversation_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->conversations->v1->conversations($conversation_sid)->participants($sid). It makes no request until one of these methods is called.

fetch

my $participant = $client->conversations->v1->conversations($conversation_sid)->participants($sid)->fetch;

Fetch a participant of the conversation. Returns a ParticipantInstance.

update

my $participant = $client->conversations->v1->conversations($conversation_sid)->participants($sid)->update(\%options);

Update an existing participant in the conversation. Returns a ParticipantInstance.

The options are:

attributes

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

date_created

The date that this resource was created. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

date_updated

The date that this resource was last updated. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

identity

A unique string identifier for the conversation participant as Conversation User. This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.

last_read_message_index

Index of last “read” message in the Conversation for the Participant.

last_read_timestamp

Timestamp of last “read” message in the Conversation for the Participant.

messaging_binding_projected_address

The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.

messaging_binding_proxy_address

The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.

role_sid

The SID of a conversation-level Role to assign to the participant.

x_twilio_webhook_enabled

The X-Twilio-Webhook-Enabled HTTP request header One of true or false.

delete

$client->conversations->v1->conversations($conversation_sid)->participants($sid)->delete(\%options);

Remove a participant from the conversation. Returns true.

The options are:

x_twilio_webhook_enabled

The X-Twilio-Webhook-Enabled HTTP request header One of true or false.

ParticipantInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The unique ID of the Account responsible for this participant.

attributes

An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.

conversation_sid

The unique ID of the Conversation for this participant.

date_created

The date that this resource was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date that this resource was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

identity

A unique string identifier for the conversation participant as Conversation User. This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.

last_read_message_index

Index of last “read” message in the Conversation for the Participant.

last_read_timestamp

Timestamp of last “read” message in the Conversation for the Participant.

messaging_binding

Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.

role_sid

The SID of a conversation-level Role to assign to the participant.

sid

A 34 character string that uniquely identifies this resource.

url

An absolute API resource URL for this participant.

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.