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.
Resource properties
sid
type: SID<FV>
The unique string that we created to identify the Flex Plugin Version resource.
Pattern:
^FV[0-9a-fA-F]{32}$
plugin_sid
type: SID<FP>
The SID of the Flex Plugin resource this Flex Plugin Version belongs to.
Pattern:
^FP[0-9a-fA-F]{32}$
version
type: string
The unique version of this Flex Plugin Version.
plugin_url
type: string<uri>
The URL of where the Flex Plugin Version JavaScript bundle is hosted on.
changelog
type: string
A changelog that describes the changes this Flex Plugin Version brings.
private
type: boolean
Whether to inject credentials while accessing this Plugin Version. The default value is false.
archived
type: boolean
Whether the Flex Plugin Version is archived. The default value is false.
date_created
type: string<date-time>
url
type: string<uri>
The absolute URL of the Flex Plugin Version resource.
POST https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Request headers
Flex-Metadata
type: string
The Flex-Metadata HTTP request header
URI parameters
PluginSid
type: string
The SID of the Flex Plugin the resource to belongs to.
Request body parameters
Version
type: stringRequired
The Flex Plugin Version's version.
PluginUrl
type: string<uri>Required
The URL of the Flex Plugin Version bundle
Changelog
type: string
The changelog of the Flex Plugin Version.
Private
type: boolean
Whether this Flex Plugin Version requires authorization.
CliVersion
type: string
The version of Flex Plugins CLI used to create this plugin
ValidateStatus
type: string
The validation status of the plugin, indicating whether it has been validated
_14// Download the helper library from https://www.twilio.com/docs/node/install
_14// Find your Account SID and Auth Token at twilio.com/console
_14// and set the environment variables. See http://twil.io/secure
_14const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14const authToken = process.env.TWILIO_AUTH_TOKEN;
_14const client = require('twilio')(accountSid, authToken);
_14client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_14 pluginUrl: 'https://example.com'
_14 .then(plugin_versions => console.log(plugin_versions.sid));
_13 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_13 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_13 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_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/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
Request headers
Flex-Metadata
type: string
The Flex-Metadata HTTP request header
URI parameters
PluginSid
type: string
The SID of the Flex Plugin the resource to belongs to.
Sid
type: string
The SID of the Flex Plugin Version resource to fetch.
_11// Download the helper library from https://www.twilio.com/docs/node/install
_11// Find your Account SID and Auth Token at twilio.com/console
_11// and set the environment variables. See http://twil.io/secure
_11const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11const authToken = process.env.TWILIO_AUTH_TOKEN;
_11const client = require('twilio')(accountSid, authToken);
_11client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .pluginVersions('FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(plugin_versions => console.log(plugin_versions.sid));
_13 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_13 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_13 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_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/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://flex-api.twilio.com/v1/PluginService/Plugins/{PluginSid}/Versions
Request headers
Flex-Metadata
type: string
The Flex-Metadata HTTP request header
URI parameters
PluginSid
type: string
The SID of the Flex Plugin the resource to belongs to.
PageSize
type: integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Page
type: integer
The page index. This value is simply for client state.
PageToken
type: string
The page token. This is provided by the API.
_11// Download the helper library from https://www.twilio.com/docs/node/install
_11// Find your Account SID and Auth Token at twilio.com/console
_11// and set the environment variables. See http://twil.io/secure
_11const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11const authToken = process.env.TWILIO_AUTH_TOKEN;
_11const client = require('twilio')(accountSid, authToken);
_11client.flexApi.v1.plugins('FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11 .then(pluginVersions => pluginVersions.forEach(p => console.log(p.sid)));
_26 "sid": "FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_26 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_26 "plugin_sid": "FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_26 "plugin_url": "https://sample.twil.io/plugin.js",
_26 "changelog": "the changelog",
_26 "date_created": "2020-01-10T20:00:00Z",
_26 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions/FVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_26 "first_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_26 "previous_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_26 "url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=0",
_26 "next_page_url": "https://flex-api.twilio.com/v1/PluginService/Plugins/FPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Versions?PageSize=50&Page=1",
_26 "key": "plugin_versions"