Plugin Version Resource
A Plugin Version contains all the information about a particular version of a Plugin. Some notable fields include the URL to the plugin package, the version number and what plugin is it the version of.
Providing a URL to the built package in the plugin version provides you the flexibility of hosting your package in the software of your choice.
Property nameTypePIIDescription
The unique string that we created to identify the Flex Plugin Version resource.
Pattern: ^FV[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Flex Plugin resource this Flex Plugin Version belongs to.
Pattern: ^FP[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the Flex Plugin Version resource and owns this resource.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique version of this Flex Plugin Version.
The URL of where the Flex Plugin Version JavaScript bundle is hosted on.
A changelog that describes the changes this Flex Plugin Version brings.
Whether the Flex Plugin Version is validated. The default value is false.
Whether the Flex Plugin Version is archived. The default value is false.
date_createdstring<date-time>
The absolute URL of the Flex Plugin Version resource.
POST https://flex.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Property nameTypeRequiredPIIDescription
The SID of the Flex Plugin the resource to belongs to.
Property nameTypeRequiredPIIDescription
The Flex Plugin Version's version.
PluginUrlstring<uri>required The URL of the Flex Plugin Version bundle
The changelog of the Flex Plugin Version.
Whether this Flex Plugin Version requires authorization.
The version of Flex Plugins CLI used to create this plugin
ValidateStatusstringOptional The validation status of the plugin, indicating whether it has been validated
_21// Download the helper library from https://www.twilio.com/docs/node/install
_21const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_21// Find your Account SID and Auth Token at twilio.com/console
_21// and set the environment variables. See http://twil.io/secure
_21const accountSid = process.env.TWILIO_ACCOUNT_SID;
_21const authToken = process.env.TWILIO_AUTH_TOKEN;
_21const client = twilio(accountSid, authToken);
_21async function createPluginVersion() {
_21 const pluginVersion = await client.flexApi.v1
_21 .plugins("PluginSid")
_21 .pluginVersions.create({
_21 pluginUrl: "https://www.example.com",
_21 console.log(pluginVersion.sid);
_21createPluginVersion();
_13 "sid": "FVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_13 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_13 "plugin_sid": "PluginSid",
_13 "version": "Version",
_13 "plugin_url": "https://www.example.com",
_13 "changelog": "the changelog",
_13 "date_created": "2020-01-10T20:00:00Z",
_13 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Versions/FVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
GET https://flex.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
Property nameTypeRequiredPIIDescription
The SID of the Flex Plugin the resource to belongs to.
The SID of the Flex Plugin Version resource to fetch.
_19// Download the helper library from https://www.twilio.com/docs/node/install
_19const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19// Find your Account SID and Auth Token at twilio.com/console
_19// and set the environment variables. See http://twil.io/secure
_19const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19const authToken = process.env.TWILIO_AUTH_TOKEN;
_19const client = twilio(accountSid, authToken);
_19async function fetchPluginVersion() {
_19 const pluginVersion = await client.flexApi.v1
_19 .plugins("PluginSid")
_19 .pluginVersions("Sid")
_19 console.log(pluginVersion.sid);
_13 "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_13 "plugin_sid": "PluginSid",
_13 "plugin_url": "https://sample.twil.io/plugin.js",
_13 "changelog": "the changelog",
_13 "date_created": "2020-01-10T20:00:00Z",
_13 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Versions/FVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
GET https://flex.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Property nameTypeRequiredPIIDescription
The SID of the Flex Plugin the resource to belongs to.
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 listPluginVersion() {
_18 const pluginVersions = await client.flexApi.v1
_18 .plugins("PluginSid")
_18 .pluginVersions.list({ limit: 20 });
_18 pluginVersions.forEach((p) => console.log(p.sid));
_12 "plugin_versions": [],
_12 "first_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Versions?PageSize=50&Page=0",
_12 "previous_page_url": null,
_12 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Versions?PageSize=50&Page=0",
_12 "next_page_url": null,
_12 "key": "plugin_versions"