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

REST API: Authorized Connect Apps


The AuthorizedConnectApps list resource shows all of the Connect Apps that you have authorized for your account. Each Connect App corresponds to a subaccount within your Twilio account, which acts as that Connect App's sandbox. The instance resource shows you the permissions you have granted for a Connect App as well as information about the Connect App itself.


AuthorizedConnectApp Instance Resource

Resource URI


_10
/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}

Resource Properties

Property nameTypePIIDescription
account_sidSID<AC>
Not PII

The SID of the Account that created the AuthorizedConnectApp resource.

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

connect_app_company_namestring

The company name set for the Connect App.


connect_app_descriptionstring

A detailed description of the Connect App.


connect_app_friendly_namestring

The name of the Connect App.


connect_app_homepage_urlstring<uri>

The public URL for the Connect App.


connect_app_sidSID<CN>

The SID that we assigned to the Connect App.

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

permissionsarray[enum<string>]

The set of permissions that you authorized for the Connect App. Can be: get-all or post-all.

Possible values:
get-allpost-all

uristring

The URI of the resource, relative to https://api.twilio.com.

HTTP GET

Example

Retrieve an Authorized Connect App

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 fetchAuthorizedConnectApp() {
_18
const authorizedConnectApp = await client
_18
.authorizedConnectApps("CN47260e643654388faabe8aaa18ea6756")
_18
.fetch();
_18
_18
console.log(authorizedConnectApp.accountSid);
_18
}
_18
_18
fetchAuthorizedConnectApp();

Output

_12
{
_12
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12
"connect_app_company_name": "aaa",
_12
"connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
_12
"connect_app_friendly_name": "aaa",
_12
"connect_app_homepage_url": "http://www.google.com",
_12
"connect_app_sid": "CN47260e643654388faabe8aaa18ea6756",
_12
"permissions": [
_12
"get-all"
_12
],
_12
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
_12
}

HTTP POST

Not supported.

HTTP PUT

Not supported.

HTTP DELETE

Not supported.


AuthorizedConnectApps List Resource

Resource URI


_10
/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps

HTTP GET

Returns a list of Connect App resource representations, each representing a Connect App you've authorized to access your account. The list includes paging information.

Example 1

Retrieve all Authorized Connect Apps

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 listAuthorizedConnectApp() {
_18
const authorizedConnectApps = await client.authorizedConnectApps.list({
_18
limit: 20,
_18
});
_18
_18
authorizedConnectApps.forEach((a) => console.log(a.accountSid));
_18
}
_18
_18
listAuthorizedConnectApp();

Output

_24
{
_24
"authorized_connect_apps": [
_24
{
_24
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_24
"connect_app_company_name": "aaa",
_24
"connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
_24
"connect_app_friendly_name": "aaa",
_24
"connect_app_homepage_url": "http://www.google.com",
_24
"connect_app_sid": "CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_24
"permissions": [
_24
"get-all"
_24
],
_24
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
_24
}
_24
],
_24
"end": 0,
_24
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=0&PageSize=50",
_24
"next_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=2&PageSize=50",
_24
"page": 0,
_24
"page_size": 50,
_24
"previous_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=1&PageSize=50",
_24
"start": 0,
_24
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json"
_24
}

HTTP POST

Not Supported.

HTTP PUT

Not Supported.

HTTP DELETE

Not Supported.


Rate this page: