Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Available Add-ons Extensions Subresource


(warning)

Migrate from Preview to v1

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 Available Add-ons resource allows users to fetch an Extension or view a list of Extensions associated with an Available 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.

(information)

Info

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.


Extension Properties

extension-properties page anchor
Property nameTypeRequiredDescriptionChild properties
sidSID<XF>Optional
Not PII

The unique string that we created to identify the AvailableAddOnExtension resource.

Pattern: ^XF[0-9a-fA-F]{32}$Min length: 34Max length: 34

available_add_on_sidSID<XB>Optional

The SID of the AvailableAddOn resource to which this extension applies.

Pattern: ^XB[0-9a-fA-F]{32}$Min length: 34Max length: 34

friendly_namestringOptional

The string that you assigned to describe the resource.


product_namestringOptional

The name of the Product this Extension is used within.


unique_namestringOptional

An application-defined string that uniquely identifies the resource.


urlstring<uri>Optional

The absolute URL of the resource.


Fetch an instance of an Extension for the Available Add-on.

fetch-an-instance-of-an-extension-for-the-available-add-on page anchor
GET https://marketplace.twilio.com/v1/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
AvailableAddOnSidSID<XB>required

The SID of the AvailableAddOn resource with the extension to fetch.

Pattern: ^XB[0-9a-fA-F]{32}$Min length: 34Max length: 34

SidSID<XF>required

The SID of the AvailableAddOn Extension resource to fetch.

Pattern: ^XF[0-9a-fA-F]{32}$Min length: 34Max length: 34

This endpoint returns details on a given Extension associated with a given Available Add-on.

Fetch an Extension

fetch-an-extension page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_19
// Download the helper library from https://www.twilio.com/docs/node/install
_19
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19
_19
// Find your Account SID and Auth Token at twilio.com/console
_19
// and set the environment variables. See http://twil.io/secure
_19
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19
const authToken = process.env.TWILIO_AUTH_TOKEN;
_19
const client = twilio(accountSid, authToken);
_19
_19
async function fetchAvailableAddOnExtension() {
_19
const extension = await client.marketplace.v1
_19
.availableAddOns("XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19
.extensions("XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19
.fetch();
_19
_19
console.log(extension.sid);
_19
}
_19
_19
fetchAvailableAddOnExtension();

Output

_10
{
_10
"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"available_add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"friendly_name": "Incoming Voice Call",
_10
"product_name": "Programmable Voice",
_10
"unique_name": "voice-incoming",
_10
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
_10
}


Retrieve a list of Extensions for the Available Add-on.

retrieve-a-list-of-extensions-for-the-available-add-on page anchor
GET https://marketplace.twilio.com/v1/AvailableAddOns/{AvailableAddOnSid}/Extensions

Property nameTypeRequiredPIIDescription
AvailableAddOnSidSID<XB>required

The SID of the AvailableAddOn resource with the extensions to read.

Pattern: ^XB[0-9a-fA-F]{32}$Min length: 34Max length: 34
Property nameTypeRequiredPIIDescription
PageSizeintegerOptional

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

PageintegerOptional

The page index. This value is simply for client state.

Minimum: 0

PageTokenstringOptional

The page token. This is provided by the API.

This endpoint returns all Extensions associated with a given Available Add-on.

List multiple Extensions

list-multiple-extensions page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function listAvailableAddOnExtension() {
_18
const extensions = await client.marketplace.v1
_18
.availableAddOns("XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18
.extensions.list({ limit: 20 });
_18
_18
extensions.forEach((e) => console.log(e.sid));
_18
}
_18
_18
listAvailableAddOnExtension();

Output

_21
{
_21
"extensions": [
_21
{
_21
"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_21
"available_add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_21
"friendly_name": "Incoming Voice Call",
_21
"product_name": "Programmable Voice",
_21
"unique_name": "voice-incoming",
_21
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
_21
}
_21
],
_21
"meta": {
_21
"page": 0,
_21
"page_size": 50,
_21
"first_page_url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",
_21
"previous_page_url": null,
_21
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",
_21
"next_page_url": null,
_21
"key": "extensions"
_21
}
_21
}


Rate this page: