Create a new Service for the given Account
Create a new Service for the given Account
Body
-
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 URL Twilio will request when executing the Webhook.
-
The HTTP method for the Webhook. One of
GET
orPOST
.Values are
GET
,POST
, orNULL
.
curl \
--request POST 'https://intelligence.twilio.com/v2/Services' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'UniqueName=something&WebhookUrl=https%3A%2F%2Fwww.twilio.com&FriendlyName=some+friendly+name&LanguageCode=en-US&WebhookHttpMethod=POST'
{"UniqueName"=>"something", "WebhookUrl"=>"https://www.twilio.com", "FriendlyName"=>"some friendly name", "LanguageCode"=>"en-US", "WebhookHttpMethod"=>"POST"}
{
"sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"version": 1,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "something",
"webhook_url": "https://www.twilio.com",
"data_logging": true,
"date_created": "2010-08-31T20:36:28Z",
"date_updated": "2010-08-31T20:36:28Z",
"friendly_name": "some friendly name",
"language_code": "en-US",
"auto_redaction": false,
"auto_transcribe": true,
"media_redaction": false,
"webhook_http_method": "POST",
"read_only_attached_operator_sids": [
"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
]
}