NAME
Twilio::Rest::Api::V2010::Account::Call::UserDefinedMessage - The UserDefinedMessage resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $user_defined_message = $client->calls($call_sid)->user_defined_messages->create($content, \%options);
DESCRIPTION
Allows your server-side application to send messages to the Voice SDK end user during an active Call.
This file holds UserDefinedMessageList and UserDefinedMessageInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
UserDefinedMessageList
Returned by $client->calls($call_sid)->user_defined_messages. See also Twilio::ListResource.
create
my $user_defined_message = $client->calls($call_sid)->user_defined_messages->create($content, \%options);
Create a new User Defined Message for the given Call SID. Returns a UserDefinedMessageInstance.
The required values are:
The options are:
idempotency_key-
A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
UserDefinedMessageInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created User Defined Message.
- call_sid
-
The SID of the Call the User Defined Message is associated with.
- date_created
-
The date that this User Defined Message was created, given in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- sid
-
The SID that uniquely identifies this User Defined Message.
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.