NAME
Twilio::Rest::Intelligence::V2::Service - The Service resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $service = $client->intelligence->v2->services->create($unique_name, \%options);
for my $service ($client->intelligence->v2->services->read({}, 20)) {
...
}
my $service = $client->intelligence->v2->services($sid)->fetch;
$client->intelligence->v2->services($sid)->update(\%options);
$client->intelligence->v2->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->intelligence->v2->services. See also Twilio::ListResource.
create
my $service = $client->intelligence->v2->services->create($unique_name, \%options);
Create a new Service for the given Account. Returns a ServiceInstance.
The required values are:
$unique_name-
Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
The options are:
auto_redaction-
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
auto_transcribe-
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
data_logging-
Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
encryption_credential_sid-
The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
friendly_name-
A human readable description of this resource, up to 64 characters.
language_code-
The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
media_redaction-
Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
webhook_http_method-
One of
GET,POSTorNULL. webhook_url-
The URL Twilio will request when executing the Webhook.
read
my @records = $client->intelligence->v2->services->read(\%options, $limit, $page_size);
Retrieves a list of all Services for an account. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->intelligence->v2->services->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->intelligence->v2->services->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->intelligence->v2->services->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->intelligence->v2->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->intelligence->v2->services($sid). It makes no request until one of these methods is called.
fetch
my $service = $client->intelligence->v2->services($sid)->fetch;
Fetch a specific Service. Returns a ServiceInstance.
update
my $service = $client->intelligence->v2->services($sid)->update(\%options);
Update a specific Service. Returns a ServiceInstance.
The options are:
auto_redaction-
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
auto_transcribe-
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
data_logging-
Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
encryption_credential_sid-
The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
friendly_name-
A human readable description of this resource, up to 64 characters.
media_redaction-
Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
unique_name-
Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
webhook_http_method-
One of
GET,POSTorNULL. webhook_url-
The URL Twilio will request when executing the Webhook.
if_match-
The If-Match HTTP request header
delete
$client->intelligence->v2->services($sid)->delete;
Delete a specific Service. Returns true.
ServiceInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The unique SID identifier of the Account the Service belongs to.
- auto_redaction
-
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
- auto_transcribe
-
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
- data_logging
-
Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
- date_created
-
The date that this Service was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this Service was updated, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- encryption_credential_sid
-
The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
- friendly_name
-
A human readable description of this resource, up to 64 characters.
- language_code
-
The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
- media_redaction
-
Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
- read_only_attached_operator_sids
-
Operator sids attached to this service, read only
- sid
-
A 34 character string that uniquely identifies this Service.
- unique_name
-
Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
- url
-
The URL of this resource.
- version
-
The version number of this Service.
- webhook_http_method
-
One of
GET,POSTorNULL. - webhook_url
-
The URL Twilio will request when executing the Webhook.
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.