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:

$channel

The messaging channel for senders. Supported values are whatsapp and rcs.

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 — poll pending_display_name_status to establish the real state rather than assuming the name was rejected. When profile.name is the only field in the request, the failure is returned as an error response with a specific code instead of this status. One of updating, no_change, pending_review or error.

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_status is COMPLETED, the name now in effect (identical to name). 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, APPROVED and DECLINED are reported by Meta. PIN_MISMATCH and REGISTRATION_FAILED mean Meta approved the name but it could not be applied; EXPIRED means Meta's 14-day window to apply an approved name elapsed. In all three cases, re-submit the same profile.name to retry. COMPLETED means the name was approved and applied — name now returns it. A COMPLETED change is reported for 14 days after it completes and is absent afterwards, so treat its presence as "recently completed" rather than a permanent flag; use pending_display_name_status_date to tell how recent. Absent when no display name change has been made. One of PENDING_REVIEW, APPROVED, DECLINED, PIN_MISMATCH, REGISTRATION_FAILED, EXPIRED or COMPLETED.

pending_display_name_status_date

WhatsApp only. The date and time in UTC when pending_display_name_status last changed, specified in ISO 8601 format. Absent whenever pending_display_name_status is absent, so the three pending_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, DRAFT or STUBBED.

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.