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.
The unique SID identifier of the Account.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
The URL of this resource.
GET https://insights.twilio.com/v1/Voice/Settings
The unique SID identifier of the Subaccount.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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 fetchAccountSettings() {11const setting = await client.insights.v1.settings().fetch();1213console.log(setting.accountSid);14}1516fetchAccountSettings();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"voice_trace": true,4"advanced_features": true,5"url": "https://insights.twilio.com/v1/Voice/Settings"6}
POST https://insights.twilio.com/v1/Voice/Settings
To manage subaccount Settings pass the subaccount SID as a parameter in the request.
application/x-www-form-urlencoded
A boolean flag to enable Advanced Features for Voice Insights.
The unique SID identifier of the Subaccount.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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 updateAccountSettings() {11const setting = await client.insights.v112.settings()13.update({ advancedFeatures: true });1415console.log(setting.accountSid);16}1718updateAccountSettings();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"voice_trace": true,4"advanced_features": true,5"url": "https://insights.twilio.com/v1/Voice/Settings"6}
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 updateAccountSettings() {11const setting = await client.insights.v1.settings().update({12subaccountSid: "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",13voiceTrace: true,14});1516console.log(setting.accountSid);17}1819updateAccountSettings();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"voice_trace": true,4"advanced_features": true,5"url": "https://insights.twilio.com/v1/Voice/Settings"6}