Voice Insights Settings Resource
Voice Insights Settings determine whether
are activated for a given account.
Using the Voice Insights Settings Resource, you can
for an account or a specific subaccount.
Resource properties
account_sid
type: SID<AC>
The unique SID identifier of the Account.
Pattern:
^AC[0-9a-fA-F]{32}$
advanced_features
type: boolean
A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
voice_trace
type: boolean
A boolean flag indicating whether Voice Trace is enabled.
url
type: string<uri>
The URL of this resource.
GET https://insights.twilio.com/v1/Voice/Settings
URI parameters
SubaccountSid
type: SID<AC>
The unique SID identifier of the Subaccount.
Pattern:
^AC[0-9a-fA-F]{32}$
_10// Download the helper library from https://www.twilio.com/docs/node/install
_10// Find your Account SID and Auth Token at twilio.com/console
_10// and set the environment variables. See http://twil.io/secure
_10const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10const authToken = process.env.TWILIO_AUTH_TOKEN;
_10const client = require('twilio')(accountSid, authToken);
_10client.insights.v1.settings()
_10 .then(setting => console.log(setting.advancedFeatures));
_10 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "advanced_features": true,
_10 "url": "https://insights.twilio.com/v1/Voice/Settings"
POST https://insights.twilio.com/v1/Voice/Settings
To manage subaccount Settings pass the subaccount SID as a parameter in the request.
Request body parameters
AdvancedFeatures
type: boolean
A boolean flag to enable Advanced Features for Voice Insights.
VoiceTrace
type: boolean
A boolean flag to enable Voice Trace.
SubaccountSid
type: SID<AC>
The unique SID identifier of the Subaccount.
Pattern:
^AC[0-9a-fA-F]{32}$
_10// Download the helper library from https://www.twilio.com/docs/node/install
_10// Find your Account SID and Auth Token at twilio.com/console
_10// and set the environment variables. See http://twil.io/secure
_10const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10const authToken = process.env.TWILIO_AUTH_TOKEN;
_10const client = require('twilio')(accountSid, authToken);
_10client.insights.v1.settings()
_10 .update({advancedFeatures: true})
_10 .then(setting => console.log(setting.advancedFeatures));
_10 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "advanced_features": true,
_10 "url": "https://insights.twilio.com/v1/Voice/Settings"
_13// Download the helper library from https://www.twilio.com/docs/node/install
_13// Find your Account SID and Auth Token at twilio.com/console
_13// and set the environment variables. See http://twil.io/secure
_13const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13const authToken = process.env.TWILIO_AUTH_TOKEN;
_13const client = require('twilio')(accountSid, authToken);
_13client.insights.v1.settings()
_13 subaccountSid: 'ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab',
_13 .then(setting => console.log(setting.advancedFeatures));
_10 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "advanced_features": true,
_10 "url": "https://insights.twilio.com/v1/Voice/Settings"