NAME
Twilio::Rest::Messaging::V2::ChannelsSender - The ChannelsSender resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $channels_sender = $client->messaging->v2->channels_senders->create(\%body);
for my $channels_sender ($client->messaging->v2->channels_senders->read({}, 20)) {
...
}
my $channels_sender = $client->messaging->v2->channels_senders($sid)->fetch;
$client->messaging->v2->channels_senders($sid)->update(\%body);
$client->messaging->v2->channels_senders($sid)->delete;
DESCRIPTION
The Senders resource represents a messaging channel sender (WhatsApp, RCS).
This file holds ChannelsSenderList, ChannelsSenderPage, ChannelsSenderContext and ChannelsSenderInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ChannelsSenderList
Returned by $client->messaging->v2->channels_senders. See also Twilio::ListResource.
create
my $channels_sender = $client->messaging->v2->channels_senders->create(\%body);
Create a Sender. Returns a ChannelsSenderInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
configuration-
No description in the specification.
friendly_name-
Optional display label for the sender in the Twilio Console.
profile-
No description in the specification.
sender_id-
Required. No description in the specification.
webhook-
No description in the specification.
read
my @records = $client->messaging->v2->channels_senders->read($channel, \%options, $limit, $page_size);
Retrieve a list of Senders for an account. Returns the records as a list, fetching as many pages as it needs.
The required values are:
The required values are kept with the options, so page takes them there.
stream
my $stream = $client->messaging->v2->channels_senders->stream($channel, \%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->messaging->v2->channels_senders->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->messaging->v2->channels_senders->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->messaging->v2->channels_senders->get_context($sid);
Returns a ChannelsSenderContext, and makes no request.
ChannelsSenderPage
A Twilio::Page of ChannelsSenderInstance objects.
records_key
build_instance
Used by Twilio::Page.
ChannelsSenderContext
Returned by $client->messaging->v2->channels_senders($sid). It makes no request until one of these methods is called.
fetch
my $channels_sender = $client->messaging->v2->channels_senders($sid)->fetch;
Retrieve a Sender. Returns a ChannelsSenderInstance.
update
my $channels_sender = $client->messaging->v2->channels_senders($sid)->update(\%body);
(WhatsApp only) Update a Sender. You can update a sender's information, including profile, webhook, and configuration. To verify a phone number, set configuration.verification_code to the One-time Password (OTP) that you received. Returns a ChannelsSenderInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
Its fields are:
configuration-
No description in the specification.
friendly_name-
Optional display label for the sender in the Twilio Console.
profile-
No description in the specification.
webhook-
No description in the specification.
delete
$client->messaging->v2->channels_senders($sid)->delete;
(WhatsApp only) Delete a Sender. Returns true.
ChannelsSenderInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- compliance
-
No description in the specification.
- configuration
-
No description in the specification.
- display_name_status
-
WhatsApp only. The outcome of the display name operation in this request. Present only when the request included
profile.name.updating— accepted; either submitted to Meta for review, or, when Meta had already approved this exact name, routed straight to re-registration.no_change— the name already matches the sender's active display name; nothing was submitted to Meta.pending_review— the same name is already under review at Meta; the existing request continues unchanged.error— the display name could not be processed, while other profile fields in the same request were still applied. Returned with a 202 and carries no error code or message. This covers every failure mode, including the case where Meta accepted the name but tracking could not be started — pollpending_display_name_statusto establish the real state rather than assuming the name was rejected. Whenprofile.nameis the only field in the request, the failure is returned as an error response with a specific code instead of this status. One ofupdating,no_change,pending_revieworerror. - friendly_name
-
Optional display label for the sender in the Twilio Console.
- offline_reasons
-
No description in the specification.
- pending_display_name
-
WhatsApp only. The display name the most recent change applies to — awaiting Meta review, approved by Meta and awaiting re-registration, or, once
pending_display_name_statusisCOMPLETED, the name now in effect (identical toname). Absent when no display name change has been made, and once a completed change stops being reported. - pending_display_name_status
-
WhatsApp only. The status of the most recent display name change.
PENDING_REVIEW,APPROVEDandDECLINEDare reported by Meta.PIN_MISMATCHandREGISTRATION_FAILEDmean Meta approved the name but it could not be applied;EXPIREDmeans Meta's 14-day window to apply an approved name elapsed. In all three cases, re-submit the sameprofile.nameto retry.COMPLETEDmeans the name was approved and applied —namenow returns it. ACOMPLETEDchange is reported for 14 days after it completes and is absent afterwards, so treat its presence as "recently completed" rather than a permanent flag; usepending_display_name_status_dateto tell how recent. Absent when no display name change has been made. One ofPENDING_REVIEW,APPROVED,DECLINED,PIN_MISMATCH,REGISTRATION_FAILED,EXPIREDorCOMPLETED. - pending_display_name_status_date
-
WhatsApp only. The date and time in UTC when
pending_display_name_statuslast changed, specified in ISO 8601 format. Absent wheneverpending_display_name_statusis absent, so the threepending_display_name*fields are always present or absent together. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize. - profile
-
No description in the specification.
- properties
-
No description in the specification.
- sender_id
-
No description in the specification.
- sid
-
The SID of the sender.
- status
-
One of
CREATING,ONLINE,OFFLINE,PENDING_VERIFICATION,VERIFYING,ONLINE:UPDATING,TWILIO_REVIEW,DRAFTorSTUBBED. - url
-
The URL of the resource.
- webhook
-
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.