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.
1/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}2
The SID of the Account that created the AuthorizedConnectApp resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID that we assigned to the Connect App.
^CN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The set of permissions that you authorized for the Connect App. Can be: get-all
or post-all
.
get-all
post-all
The URI of the resource, relative to https://api.twilio.com
.
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 fetchAuthorizedConnectApp() {11const authorizedConnectApp = await client12.authorizedConnectApps("CN47260e643654388faabe8aaa18ea6756")13.fetch();1415console.log(authorizedConnectApp.accountSid);16}1718fetchAuthorizedConnectApp();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"connect_app_company_name": "aaa",4"connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",5"connect_app_friendly_name": "aaa",6"connect_app_homepage_url": "http://www.google.com",7"connect_app_sid": "CN47260e643654388faabe8aaa18ea6756",8"permissions": [9"get-all"10],11"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"12}
Not supported.
Not supported.
Not supported.
1/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps2
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.
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 listAuthorizedConnectApp() {11const authorizedConnectApps = await client.authorizedConnectApps.list({12limit: 20,13});1415authorizedConnectApps.forEach((a) => console.log(a.accountSid));16}1718listAuthorizedConnectApp();
1{2"authorized_connect_apps": [3{4"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"connect_app_company_name": "aaa",6"connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",7"connect_app_friendly_name": "aaa",8"connect_app_homepage_url": "http://www.google.com",9"connect_app_sid": "CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",10"permissions": [11"get-all"12],13"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"14}15],16"end": 0,17"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=0&PageSize=50",18"next_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=2&PageSize=50",19"page": 0,20"page_size": 50,21"previous_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=1&PageSize=50",22"start": 0,23"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json?Page=0&PageSize=50"24}
Not Supported.
Not Supported.
Not Supported.