NAME
Twilio::Rest::Conversations::V1::Service - The Service resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $service = $client->conversations->v1->services->create($friendly_name);
for my $service ($client->conversations->v1->services->read({}, 20)) {
...
}
my $service = $client->conversations->v1->services($sid)->fetch;
$client->conversations->v1->services($sid)->delete;
DESCRIPTION
A Service resource is a top-level conversation resource container that serves as a data silo.
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->conversations->v1->services. See also Twilio::ListResource.
create
my $service = $client->conversations->v1->services->create($friendly_name);
Create a new conversation service on your account. Returns a ServiceInstance.
The required values are:
read
my @records = $client->conversations->v1->services->read(\%options, $limit, $page_size);
Retrieve a list of all conversation services on your account. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->conversations->v1->services->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->conversations->v1->services->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->conversations->v1->services->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->conversations->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->conversations->v1->services($sid). It makes no request until one of these methods is called.
fetch
my $service = $client->conversations->v1->services($sid)->fetch;
Fetch a conversation service from your account. Returns a ServiceInstance.
delete
$client->conversations->v1->services($sid)->delete;
Remove a conversation service with all its nested resources from your account. Returns true.
bindings
my $list = $object->bindings;
my $context = $object->bindings($sid);
See Twilio::Rest::Conversations::V1::Service::Binding.
configuration
my $context = $object->configuration;
See Twilio::Rest::Conversations::V1::Service::Configuration.
conversations
my $list = $object->conversations;
my $context = $object->conversations($sid);
See Twilio::Rest::Conversations::V1::Service::Conversation.
conversation_with_participants
my $list = $object->conversation_with_participants;
See Twilio::Rest::Conversations::V1::Service::ConversationWithParticipants.
participant_conversations
my $list = $object->participant_conversations;
See Twilio::Rest::Conversations::V1::Service::ParticipantConversation.
roles
my $list = $object->roles;
my $context = $object->roles($sid);
See Twilio::Rest::Conversations::V1::Service::Role.
users
my $list = $object->users;
my $context = $object->users($sid);
See Twilio::Rest::Conversations::V1::Service::User.
ServiceInstance
See also Twilio::InstanceResource.
It has fetch, delete, bindings, configuration, conversations, conversation_with_participants, participant_conversations, roles and users, which work as they do on the context.
Its fields are:
- account_sid
-
The unique ID of the Account responsible for this service.
- date_created
-
The date that this resource was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this resource was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
The human-readable name of this service, limited to 256 characters. Optional.
- links
-
Contains absolute API resource URLs to access conversations, users, roles, bindings and configuration of this service.
- sid
-
A 34 character string that uniquely identifies this resource.
- url
-
An absolute API resource URL for this service.
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.