NAME

Twilio::Rest::IpMessaging::V1::Service - The Service resource

SYNOPSIS

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

my $service = $client->ip_messaging->v1->services->create($friendly_name);
for my $service ($client->ip_messaging->v1->services->read({}, 20)) {
  ...
}
my $service = $client->ip_messaging->v1->services($sid)->fetch;
$client->ip_messaging->v1->services($sid)->update(\%options);
$client->ip_messaging->v1->services($sid)->delete;

DESCRIPTION

This file holds ServiceList, ServicePage, ServiceContext and ServiceInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ServiceList

Returned by $client->ip_messaging->v1->services. See also Twilio::ListResource.

create

my $service = $client->ip_messaging->v1->services->create($friendly_name);

Returns a ServiceInstance.

The required values are:

$friendly_name

No description in the specification.

read

my @records = $client->ip_messaging->v1->services->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->ip_messaging->v1->services->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->ip_messaging->v1->services->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->ip_messaging->v1->services->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->ip_messaging->v1->services->get_context($sid);

Returns a ServiceContext, and makes no request.

ServicePage

A Twilio::Page of ServiceInstance objects.

records_key

build_instance

Used by Twilio::Page.

ServiceContext

Returned by $client->ip_messaging->v1->services($sid). It makes no request until one of these methods is called.

fetch

my $service = $client->ip_messaging->v1->services($sid)->fetch;

Returns a ServiceInstance.

update

my $service = $client->ip_messaging->v1->services($sid)->update(\%options);

Returns a ServiceInstance.

The options are:

consumption_report_interval

No description in the specification.

default_channel_creator_role_sid

No description in the specification.

default_channel_role_sid

No description in the specification.

default_service_role_sid

No description in the specification.

friendly_name

No description in the specification.

limits_channel_members

No description in the specification.

limits_user_channels

No description in the specification.

notifications_added_to_channel_enabled

No description in the specification.

notifications_added_to_channel_template

No description in the specification.

notifications_invited_to_channel_enabled

No description in the specification.

notifications_invited_to_channel_template

No description in the specification.

notifications_new_message_enabled

No description in the specification.

notifications_new_message_template

No description in the specification.

notifications_removed_from_channel_enabled

No description in the specification.

notifications_removed_from_channel_template

No description in the specification.

post_webhook_url

No description in the specification.

pre_webhook_url

No description in the specification.

reachability_enabled

No description in the specification.

read_status_enabled

No description in the specification.

typing_indicator_timeout

No description in the specification.

webhook_filters

An array reference.

webhook_method

One of GET or POST.

webhooks_on_channel_add_method

One of GET or POST.

webhooks_on_channel_add_url

No description in the specification.

webhooks_on_channel_added_method

One of GET or POST.

webhooks_on_channel_added_url

No description in the specification.

webhooks_on_channel_destroy_method

One of GET or POST.

webhooks_on_channel_destroy_url

No description in the specification.

webhooks_on_channel_destroyed_method

One of GET or POST.

webhooks_on_channel_destroyed_url

No description in the specification.

webhooks_on_channel_update_method

One of GET or POST.

webhooks_on_channel_update_url

No description in the specification.

webhooks_on_channel_updated_method

One of GET or POST.

webhooks_on_channel_updated_url

No description in the specification.

webhooks_on_member_add_method

One of GET or POST.

webhooks_on_member_add_url

No description in the specification.

webhooks_on_member_added_method

One of GET or POST.

webhooks_on_member_added_url

No description in the specification.

webhooks_on_member_remove_method

One of GET or POST.

webhooks_on_member_remove_url

No description in the specification.

webhooks_on_member_removed_method

One of GET or POST.

webhooks_on_member_removed_url

No description in the specification.

webhooks_on_message_remove_method

One of GET or POST.

webhooks_on_message_remove_url

No description in the specification.

webhooks_on_message_removed_method

One of GET or POST.

webhooks_on_message_removed_url

No description in the specification.

webhooks_on_message_send_method

One of GET or POST.

webhooks_on_message_send_url

No description in the specification.

webhooks_on_message_sent_method

One of GET or POST.

webhooks_on_message_sent_url

No description in the specification.

webhooks_on_message_update_method

One of GET or POST.

webhooks_on_message_update_url

No description in the specification.

webhooks_on_message_updated_method

One of GET or POST.

webhooks_on_message_updated_url

No description in the specification.

delete

$client->ip_messaging->v1->services($sid)->delete;

Returns true.

channels

my $list = $object->channels;

my $context = $object->channels($sid);

See Twilio::Rest::IpMessaging::V1::Service::Channel.

roles

my $list = $object->roles;

my $context = $object->roles($sid);

See Twilio::Rest::IpMessaging::V1::Service::Role.

users

my $list = $object->users;

my $context = $object->users($sid);

See Twilio::Rest::IpMessaging::V1::Service::User.

ServiceInstance

See also Twilio::InstanceResource.

It has fetch, update, delete, channels, roles and users, which work as they do on the context.

Its fields are:

account_sid

No description in the specification.

consumption_report_interval

No description in the specification.

date_created

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

default_channel_creator_role_sid

No description in the specification.

default_channel_role_sid

No description in the specification.

default_service_role_sid

No description in the specification.

friendly_name

No description in the specification.

limits

No description in the specification.

No description in the specification.

notifications

No description in the specification.

post_webhook_url

No description in the specification.

pre_webhook_url

No description in the specification.

reachability_enabled

No description in the specification.

read_status_enabled

No description in the specification.

sid

No description in the specification.

typing_indicator_timeout

No description in the specification.

url

No description in the specification.

webhook_filters

No description in the specification.

webhook_method

No description in the specification.

webhooks

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.