Plugin Release Resource
The Plugin Release resource lets you set a Configuration active on a Flex project. A Flex project can have multiple Plugins with different Versions. When you're confident that your Plugins all work properly and are ready for production, you can create a release to push the changes to your contact center.
This allows you to audit when a Flex project changed and rollback your changes when necessary. Releases are immutable and irreversible. A rollback requires a new Release using a previous Configuration.
Property nameTypePIIDescription
The unique string that we created to identify the Plugin Release resource.
Pattern: ^FK[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the Plugin Release resource and owns this resource.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Plugin Configuration resource to release.
Pattern: ^FJ[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
date_createdstring<date-time>
The absolute URL of the Plugin Release resource.
POST https://flex.twilio.com/v1/PluginService/Releases
Property nameTypeRequiredPIIDescription
ConfigurationIdstringrequired The SID or the Version of the Flex Plugin Configuration to release.
_18// Download the helper library from https://www.twilio.com/docs/node/install
_18const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18// Find your Account SID and Auth Token at twilio.com/console
_18// and set the environment variables. See http://twil.io/secure
_18const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18const authToken = process.env.TWILIO_AUTH_TOKEN;
_18const client = twilio(accountSid, authToken);
_18async function createPluginRelease() {
_18 const pluginRelease = await client.flexApi.v1.pluginReleases.create({
_18 configurationId: "ConfigurationId",
_18 console.log(pluginRelease.sid);
_18createPluginRelease();
_10 "sid": "FKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "configuration_sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "date_created": "2020-01-10T20:00:00Z",
_10 "url": "https://flex-api.twilio.com/v1/PluginService/Releases/FKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
GET https://flex.twilio.com/v1/PluginService/Releases/{Sid}
Property nameTypeRequiredPIIDescription
The SID of the Flex Plugin Release resource to fetch.
_16// Download the helper library from https://www.twilio.com/docs/node/install
_16const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_16// Find your Account SID and Auth Token at twilio.com/console
_16// and set the environment variables. See http://twil.io/secure
_16const accountSid = process.env.TWILIO_ACCOUNT_SID;
_16const authToken = process.env.TWILIO_AUTH_TOKEN;
_16const client = twilio(accountSid, authToken);
_16async function fetchPluginRelease() {
_16 const pluginRelease = await client.flexApi.v1.pluginReleases("Sid").fetch();
_16 console.log(pluginRelease.sid);
_10 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "configuration_sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "date_created": "2020-01-10T20:00:00Z",
_10 "url": "https://flex-api.twilio.com/v1/PluginService/Releases/FKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
GET https://flex.twilio.com/v1/PluginService/Releases
Property nameTypeRequiredPIIDescription
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum: 1
Maximum: 1000
The page index. This value is simply for client state.
Minimum: 0
The page token. This is provided by the API.
_18// Download the helper library from https://www.twilio.com/docs/node/install
_18const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18// Find your Account SID and Auth Token at twilio.com/console
_18// and set the environment variables. See http://twil.io/secure
_18const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18const authToken = process.env.TWILIO_AUTH_TOKEN;
_18const client = twilio(accountSid, authToken);
_18async function listPluginRelease() {
_18 const pluginReleases = await client.flexApi.v1.pluginReleases.list({
_18 pluginReleases.forEach((p) => console.log(p.sid));
_12 "first_page_url": "https://flex-api.twilio.com/v1/PluginService/Releases?PageSize=50&Page=0",
_12 "previous_page_url": null,
_12 "url": "https://flex-api.twilio.com/v1/PluginService/Releases?PageSize=50&Page=0",
_12 "next_page_url": null,