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

instance page anchor

Resource URI

instance-uri page anchor

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

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.

Example

instance-get-example-1 page anchor

Retrieve an Authorized Connect App

retrieve-an-authorized-connect-app page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_14
// Download the helper library from https://www.twilio.com/docs/node/install
_14
import twilio from "twilio";
_14
_14
// Find your Account SID and Auth Token at twilio.com/console
_14
// and set the environment variables. See http://twil.io/secure
_14
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14
const authToken = process.env.TWILIO_AUTH_TOKEN;
_14
const client = twilio(accountSid, authToken);
_14
_14
const authorizedConnectApp = await client
_14
.authorizedConnectApps("CN47260e643654388faabe8aaa18ea6756")
_14
.fetch();
_14
_14
console.log(authorizedConnectApp.accountSid);

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
}

Not supported.

Not supported.

Not supported.


AuthorizedConnectApps List Resource

list page anchor

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

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.

Retrieve all Authorized Connect Apps

retrieve-all-authorized-connect-apps page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_14
// Download the helper library from https://www.twilio.com/docs/node/install
_14
import twilio from "twilio";
_14
_14
// Find your Account SID and Auth Token at twilio.com/console
_14
// and set the environment variables. See http://twil.io/secure
_14
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14
const authToken = process.env.TWILIO_AUTH_TOKEN;
_14
const client = twilio(accountSid, authToken);
_14
_14
const authorizedConnectApps = await client.authorizedConnectApps.list({
_14
limit: 20,
_14
});
_14
_14
authorizedConnectApps.forEach((a) => console.log(a.accountSid));

Output

_24
{
_24
"authorized_connect_apps": [
_24
{
_24
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_24
"connect_app_company_name": "connect_app_company_name",
_24
"connect_app_description": "connect_app_description",
_24
"connect_app_friendly_name": "connect_app_friendly_name",
_24
"connect_app_homepage_url": "https://www.example.com",
_24
"connect_app_sid": "CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_24
"permissions": [
_24
"post-all"
_24
],
_24
"uri": "uri"
_24
}
_24
],
_24
"end": 12,
_24
"first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?PageSize=50&Page=0",
_24
"next_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?PageSize=50&Page=50",
_24
"page": 361,
_24
"page_size": 50,
_24
"previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?PageSize=50&Page=0",
_24
"start": 163,
_24
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json"
_24
}

Not Supported.

Not Supported.

Not Supported.


Rate this page: