Configurations contain a snapshot of your contact center's customizations so that it can be audited or rolled back. It is a package of your plugin versions that you bundle together for a release. Configurations contain Plugin Version SIDs and are defined as a list of JSON strings. For example:
[{"plugin_version": "FV00000000000000000000000000000000"}, {"plugin_version": "FV00000000000000000000000000000001"}]
Configurations are immutable; in order to update your contact center's Configuration, you must create a new Configuration.
The unique string that we created to identify the Flex Plugin Configuration resource.
^FJ[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the Flex Plugin Configuration resource and owns this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Whether the Flex Plugin Configuration is archived. The default value is false.
The date and time in GMT when the Flex Plugin Configuration was created specified in ISO 8601 format.
POST https://flex-api.twilio.com/v1/PluginService/Configurations
The Flex-Metadata HTTP request header
application/x-www-form-urlencoded
A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version.
The Flex Plugin Configuration's description.
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 createPluginConfiguration() {11const pluginConfiguration =12await client.flexApi.v1.pluginConfigurations.create({13name: "Name",14plugins: [15{16plugin_version: "FV00000000000000000000000000000000",17},18],19});2021console.log(pluginConfiguration.sid);22}2324createPluginConfiguration();
1{2"sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"name": "Name",5"description": "description",6"archived": false,7"date_created": "2020-01-10T20:00:00Z",8"url": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"links": {10"plugins": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Plugins"11}12}
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 createPluginConfiguration() {11const pluginConfiguration =12await client.flexApi.v1.pluginConfigurations.create({13name: "Name",14plugins: [15{16plugin_version: "FV00000000000000000000000000000000",17},18{19plugin_version: "FV00000000000000000000000000000001",20},21],22});2324console.log(pluginConfiguration.sid);25}2627createPluginConfiguration();
1{2"sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"name": "Name",5"description": "description",6"archived": false,7"date_created": "2020-01-10T20:00:00Z",8"url": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"links": {10"plugins": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Plugins"11}12}
GET https://flex-api.twilio.com/v1/PluginService/Configurations/{Sid}
The Flex-Metadata HTTP request header
The SID of the Flex Plugin Configuration resource to fetch.
^FJ[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 fetchPluginConfiguration() {11const pluginConfiguration = await client.flexApi.v112.pluginConfigurations("FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.fetch();1415console.log(pluginConfiguration.sid);16}1718fetchPluginConfiguration();
1{2"sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"name": "some name",5"description": "description",6"archived": false,7"date_created": "2020-01-10T20:00:00Z",8"url": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"links": {10"plugins": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Plugins"11}12}
GET https://flex-api.twilio.com/v1/PluginService/Configurations
The Flex-Metadata HTTP request header
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 listPluginConfiguration() {11const pluginConfigurations =12await client.flexApi.v1.pluginConfigurations.list({ limit: 20 });1314pluginConfigurations.forEach((p) => console.log(p.sid));15}1617listPluginConfiguration();
1{2"configurations": [],3"meta": {4"page": 0,5"page_size": 50,6"first_page_url": "https://flex-api.twilio.com/v1/PluginService/Configurations?PageSize=50&Page=0",7"previous_page_url": null,8"url": "https://flex-api.twilio.com/v1/PluginService/Configurations?PageSize=50&Page=0",9"next_page_url": null,10"key": "configurations"11}12}