Skip to contentSkip to navigationSkip to topbar
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
Fetch an ExtensionLink to code sample: Fetch an Extension
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function fetchAvailableAddOnExtension() {
11
const extension = await client.marketplace.v1
12
.availableAddOns("XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.extensions("XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
14
.fetch();
15
16
console.log(extension.sid);
17
}
18
19
fetchAvailableAddOnExtension();

Output

1
{
2
"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3
"available_add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
"friendly_name": "Incoming Voice Call",
5
"product_name": "Programmable Voice",
6
"unique_name": "voice-incoming",
7
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
8
}

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.

1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function listAvailableAddOnExtension() {
11
const extensions = await client.marketplace.v1
12
.availableAddOns("XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.extensions.list({ limit: 20 });
14
15
extensions.forEach((e) => console.log(e.sid));
16
}
17
18
listAvailableAddOnExtension();

Output

1
{
2
"extensions": [
3
{
4
"sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5
"available_add_on_sid": "XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
6
"friendly_name": "Incoming Voice Call",
7
"product_name": "Programmable Voice",
8
"unique_name": "voice-incoming",
9
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
10
}
11
],
12
"meta": {
13
"page": 0,
14
"page_size": 50,
15
"first_page_url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",
16
"previous_page_url": null,
17
"url": "https://marketplace.twilio.com/v1/AvailableAddOns/XBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions?PageSize=50&Page=0",
18
"next_page_url": null,
19
"key": "extensions"
20
}
21
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.