NAME
Twilio::Rest::Conversations::V1::ConversationWithParticipants - The ConversationWithParticipants resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $conversation_with_participants = $client->conversations->v1->conversation_with_participants->create(\%options);
DESCRIPTION
A Conversation resource represents an omnichannel group conversation with an ordered list of messages and a participant roster.
This file holds ConversationWithParticipantsList and ConversationWithParticipantsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConversationWithParticipantsList
Returned by $client->conversations->v1->conversation_with_participants. See also Twilio::ListResource.
create
my $conversation_with_participants = $client->conversations->v1->conversation_with_participants->create(\%options);
Create a new conversation with the list of participants in your account's default service. Returns a ConversationWithParticipantsInstance.
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.
bindings_email_address-
The default email address that will be used when sending outbound emails in this conversation.
bindings_email_name-
The default name that will be used when sending outbound emails in this conversation.
date_created-
The date that this resource was created. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. date_updated-
The date that this resource was last updated. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. friendly_name-
The human-readable name of this conversation, limited to 256 characters. Optional.
messaging_service_sid-
The unique ID of the Messaging Service this conversation belongs to.
participant-
The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in Participant Resource. The maximum number of participants that can be added in a single request is 10. An array reference.
state-
One of
initializing,inactive,activeorclosed. timers_closed-
ISO8601 duration when conversation will be switched to
closedstate. Minimum value for this timer is 10 minutes. timers_inactive-
ISO8601 duration when conversation will be switched to
inactivestate. Minimum value for this timer is 1 minute. unique_name-
An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's
sidin the URL. x_twilio_webhook_enabled-
The X-Twilio-Webhook-Enabled HTTP request header One of
trueorfalse.
ConversationWithParticipantsInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The unique ID of the Account responsible for this conversation.
- 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.
- bindings
-
No description in the specification.
- chat_service_sid
-
The unique ID of the Conversation Service this conversation belongs to.
- 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.
- friendly_name
-
The human-readable name of this conversation, limited to 256 characters. Optional.
- links
-
Contains absolute URLs to access the participants, messages and webhooks of this conversation.
- messaging_service_sid
-
The unique ID of the Messaging Service this conversation belongs to.
- sid
-
A 34 character string that uniquely identifies this resource.
- state
-
One of
initializing,inactive,activeorclosed. - timers
-
Timer date values representing state update for this conversation.
- unique_name
-
An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's
sidin the URL. - url
-
An absolute API resource URL for this conversation.
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.