A Voice Intelligence Service provides control and configuration for how call recordings are processed into Transcripts. Voice Intelligence Transcripts belong to a particular Service and inherit its configuration.
The Service-level configuration includes features like data logging, auto-transcription, and auto-redaction.
The unique SID identifier of the Account the Service belongs to.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
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.
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
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.
The date that this Service was created, given in ISO 8601 format.
The date that this Service was updated, given in ISO 8601 format.
A human readable description of this resource, up to 64 characters.
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.
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 HTTP method for the Webhook. One of GET
or POST
.
GET
POST
NULL
Operator sids attached to this service, read only
The version number of this Service.
0
POST https://intelligence.twilio.com/v2/Services
application/x-www-form-urlencoded
Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
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.
A human readable description of this resource, up to 64 characters.
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.
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
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.
The HTTP method for the Webhook. One of GET
or POST
.
GET
POST
NULL
This section includes additional details for optional parameters you can pass when creating and updating a Voice Intelligence Service:
Enable auto_transcribe
if you want the Service to automatically transcribe all Twilio Voice call recordings on your Account. See the onboarding guide for additional details and the billing implications auto-transcription can have on your Account.
The webhook_url
parameter allows you to specify a URL for Twilio to send webhook requests to for each event specified in the event_type
parameter.
Twilio passes the following properties with its request to your webhook URL:
Parameter | Description |
---|---|
account_sid | Unique identifier of the Account associated with the Transcript. |
service_sid | Unique identifier of the Service associated with the Transcript. |
transcript_sid | Unique identifier of the Transcript. |
customer_key | Customer key provided by the user on the Transcript creation. |
event_type | Webhook event type. The value will be voice_intelligence_transcript_available . |
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function createService() {11const service = await client.intelligence.v2.services.create({12uniqueName: "MyService",13});1415console.log(service.accountSid);16}1718createService();
1{2"sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"unique_name": "MyService",4"friendly_name": "some friendly name",5"date_created": "2010-08-31T20:36:28Z",6"date_updated": "2010-08-31T20:36:28Z",7"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",8"auto_redaction": false,9"media_redaction": false,10"auto_transcribe": true,11"data_logging": true,12"language_code": "en-US",13"webhook_url": "https://www.twilio.com",14"webhook_http_method": "POST",15"read_only_attached_operator_sids": [16"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"17],18"version": 1,19"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20}
GET https://intelligence.twilio.com/v2/Services/{Sid}
This endpoint allows you to fetch a Voice Intelligence Service by its sid
or unique_name
.
A 34 character string that uniquely identifies this Service.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchService() {11const service = await client.intelligence.v212.services("GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.fetch();1415console.log(service.accountSid);16}1718fetchService();
1{2"sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"unique_name": "something",4"friendly_name": "some friendly name",5"date_created": "2010-08-31T20:36:28Z",6"date_updated": "2010-08-31T20:36:28Z",7"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",8"auto_redaction": false,9"media_redaction": false,10"auto_transcribe": true,11"data_logging": true,12"language_code": "en-US",13"webhook_url": "https://www.twilio.com",14"webhook_http_method": "POST",15"read_only_attached_operator_sids": [16"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"17],18"version": 1,19"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20}
GET https://intelligence.twilio.com/v2/Services
This endpoint allows you to fetch multiple Voice Intelligence Services based on the following optional query parameters.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listService() {11const services = await client.intelligence.v2.services.list({ limit: 20 });1213services.forEach((s) => console.log(s.accountSid));14}1516listService();
1{2"services": [3{4"sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"unique_name": "something",6"friendly_name": "some friendly name",7"date_created": "2010-08-31T20:36:28Z",8"date_updated": "2010-08-31T20:36:28Z",9"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",10"auto_redaction": false,11"media_redaction": false,12"auto_transcribe": true,13"data_logging": true,14"language_code": "en-US",15"webhook_url": "https://www.twilio.com",16"webhook_http_method": "POST",17"read_only_attached_operator_sids": [18"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"19],20"version": 1,21"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"22}23],24"meta": {25"key": "services",26"page": 0,27"page_size": 50,28"first_page_url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0",29"next_page_url": null,30"previous_page_url": null,31"url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0"32}33}
POST https://intelligence.twilio.com/v2/Services/{Sid}
This endpoint allows you to update an existing Voice Intelligence Service on your Account. To retrieve the configuration details of the Service you wish to update, you can fetch a specific Service or a list of Services on your Account.
When updating an existing Service, you can specify the latest version
as an If-Match header in your request to prevent concurrent updates.
It can take up to five minutes to propagate any changes to a Service.
Transcripts generated just after updating parameters like AutoTranscribe
, AutoRedaction
, or MediaRedaction
may be generated using the old configuration. Please consider this delay if you want to apply specific settings to your Voice Intelligence Transcripts. Refer to the onboarding guide for additional considerations when making changes to your Service.
See also Additional information on AutoTranscribe
and the WebhookUrl
body parameters.
The If-Match HTTP request header
A 34 character string that uniquely identifies this Service.
application/x-www-form-urlencoded
Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
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.
A human readable description of this resource, up to 64 characters.
Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
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.
The HTTP method for the Webhook. One of GET
or POST
.
GET
POST
NULL
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateService() {11const service = await client.intelligence.v212.services("GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.update({ autoTranscribe: false });1415console.log(service.accountSid);16}1718updateService();
1{2"sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"unique_name": "something",4"friendly_name": "some friendly name",5"date_created": "2010-08-31T20:36:28Z",6"date_updated": "2010-08-31T20:36:28Z",7"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",8"auto_redaction": false,9"media_redaction": false,10"auto_transcribe": false,11"data_logging": true,12"webhook_url": "https://www.sendgrid.com",13"webhook_http_method": "GET",14"language_code": "en-US",15"read_only_attached_operator_sids": [16"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"17],18"version": 2,19"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20}
DELETE https://intelligence.twilio.com/v2/Services/{Sid}
A 34 character string that uniquely identifies this Service.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function deleteService() {11await client.intelligence.v212.services("GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.remove();14}1516deleteService();