Marketplace v1 API is now available, and the Preview API for this Resource will be discontinued in December 2024. See the API Preview to v1 Migration Guide for more information.
This subresource of the Installed Add-ons resource allows users to fetch an Extension, view a list of Extensions, or update an Extension associated with an Installed Add-on Listing. An Extension describes the specific feature or API endpoint of a Twilio product in which an Add-on Listing can be used. Extensions are disabled by default, and can be enabled using Update endpoint.
This API only supports Add-on Listings that are in General Availability (GA) or Beta state. Listings that are labeled as Coming Soon or Developer Preview are not accessible via the API and must be managed in the Console.
The unique string that we created to identify the InstalledAddOn Extension resource.
^XF[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the InstalledAddOn resource to which this extension applies.
^XE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
An application-defined string that uniquely identifies the resource.
The absolute URL of the resource.
GET https://marketplace.twilio.com/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}
The SID of the InstalledAddOn resource with the extension to fetch.
^XE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the InstalledAddOn Extension resource to fetch.
^XF[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
This endpoint returns details on a given Extension associated with a given Installed Add-on.
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 fetchInstalledAddOnExtension() {11const extension = await client.marketplace.v112.installedAddOns("XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.extensions("XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")14.fetch();1516console.log(extension.sid);17}1819fetchInstalledAddOnExtension();
1{2"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"installed_add_on_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"friendly_name": "Incoming Voice Call",5"product_name": "Programmable Voice",6"unique_name": "voice-incoming",7"enabled": true,8"url": "https://marketplace.twilio.com/v1/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"9}
GET https://marketplace.twilio.com/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions
The SID of the InstalledAddOn resource with the extensions to read.
^XE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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.
This endpoint returns all Extensions associated with a given Installed Add-on.
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 listInstalledAddOnExtension() {11const extensions = await client.marketplace.v112.installedAddOns("XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.extensions.list({ limit: 20 });1415extensions.forEach((e) => console.log(e.sid));16}1718listInstalledAddOnExtension();
1{2"extensions": [3{4"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"installed_add_on_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",6"friendly_name": "Incoming Voice Call",7"product_name": "Programmable Voice",8"unique_name": "voice-incoming",9"enabled": true,10"url": "https://marketplace.twilio.com/v1/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"11}12],13"meta": {14"page": 0,15"page_size": 50,16"first_page_url": "https://marketplace.twilio.com/v1/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",17"previous_page_url": null,18"url": "https://marketplace.twilio.com/v1/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",19"next_page_url": null,20"key": "extensions"21}22}
POST https://marketplace.twilio.com/v1/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}
The SID of the InstalledAddOn resource with the extension to update.
^XE[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the InstalledAddOn Extension resource to update.
^XF[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
Whether the Extension should be invoked.
This endpoint updates the data of a given Extension associated with a given Installed Add-on, allowing you to enable or disable the Extension.
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 updateInstalledAddOnExtension() {11const extension = await client.marketplace.v112.installedAddOns("XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.extensions("XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")14.update({ enabled: false });1516console.log(extension.sid);17}1819updateInstalledAddOnExtension();
1{2"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"installed_add_on_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"friendly_name": "Incoming Voice Call",5"product_name": "Programmable Voice",6"unique_name": "voice-incoming",7"enabled": false,8"url": "https://marketplace.twilio.com/v1/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"9}