NAME

Twilio::Rest::Conversations::V1::Service::Configuration::Notification - The Notification resource

SYNOPSIS

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

my $notification = $client->conversations->v1->services($chat_service_sid)->configuration->notifications->fetch;
$client->conversations->v1->services($chat_service_sid)->configuration->notifications->update(\%options);

DESCRIPTION

A Service Notification resource manages a set of settings to determine push notification behavior at service level.

This file holds NotificationContext and NotificationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

NotificationContext

Returned by $client->conversations->v1->services($chat_service_sid)->configuration->notifications. It makes no request until one of these methods is called.

fetch

my $notification = $client->conversations->v1->services($chat_service_sid)->configuration->notifications->fetch;

Fetch push notification service settings. Returns a NotificationInstance.

update

my $notification = $client->conversations->v1->services($chat_service_sid)->configuration->notifications->update(\%options);

Update push notification service settings. Returns a NotificationInstance.

The options are:

added_to_conversation_enabled

Whether to send a notification when a participant is added to a conversation. The default is false.

added_to_conversation_sound

The name of the sound to play when a participant is added to a conversation and added_to_conversation.enabled is true.

added_to_conversation_template

The template to use to create the notification text displayed when a participant is added to a conversation and added_to_conversation.enabled is true.

log_enabled

Weather the notification logging is enabled.

new_message_badge_count_enabled

Whether the new message badge is enabled. The default is false.

new_message_enabled

Whether to send a notification when a new message is added to a conversation. The default is false.

new_message_sound

The name of the sound to play when a new message is added to a conversation and new_message.enabled is true.

new_message_template

The template to use to create the notification text displayed when a new message is added to a conversation and new_message.enabled is true.

new_message_with_media_enabled

Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is false.

new_message_with_media_template

The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and new_message.attachments.enabled is true.

removed_from_conversation_enabled

Whether to send a notification to a user when they are removed from a conversation. The default is false.

removed_from_conversation_sound

The name of the sound to play to a user when they are removed from a conversation and removed_from_conversation.enabled is true.

removed_from_conversation_template

The template to use to create the notification text displayed to a user when they are removed from a conversation and removed_from_conversation.enabled is true.

NotificationInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The unique ID of the Account responsible for this configuration.

added_to_conversation

The Push Notification configuration for being added to a Conversation.

chat_service_sid

The SID of the Conversation Service the Configuration applies to.

log_enabled

Weather the notification logging is enabled.

new_message

The Push Notification configuration for New Messages.

removed_from_conversation

The Push Notification configuration for being removed from a Conversation.

url

An absolute API resource URL for this configuration.

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.