The ConnectApps list resource shows all of the Connect Apps that you have created within your Twilio account. The instance resource shows information about the ConnectApp as well as the permissions the ConnectApp will request from authorized users.
1/2010-04-01/Accounts/{AccountSid}/ConnectApps/{ConnectAppSid}2
The SID of the Account that created the ConnectApp resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
The HTTP method we use to call deauthorize_callback_url
.
GET
POST
The URL we call using the deauthorize_callback_method
to de-authorize the Connect App.
The public URL where users can obtain more information about this Connect App.
The set of permissions that your ConnectApp requests.
get-all
post-all
The unique string that that we created to identify the ConnectApp resource.
^CN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The URI of the resource, relative to https://api.twilio.com
.
Get the properties of a Connect App.
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 fetchConnectApp() {11const connectApp = await client12.connectApps("CNb989fdd207b04d16aee578018ef5fd93")13.fetch();1415console.log(connectApp.accountSid);16}1718fetchConnectApp();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"authorize_redirect_url": "http://example.com/redirect",4"company_name": "Twilio",5"deauthorize_callback_method": "GET",6"deauthorize_callback_url": "http://example.com/deauth",7"description": null,8"friendly_name": "Connect app for deletion",9"homepage_url": "http://example.com/home",10"permissions": [],11"sid": "CNb989fdd207b04d16aee578018ef5fd93",12"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"13}
Tries to update the Connect App's properties, and returns the updated resource
representation if successful. The returned response is identical to that
returned above when making a GET
request.
You may specify one or more of the following parameters to update this Connect App's respective properties:
The SID of the Account that created the ConnectApp resources to update.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio-provided string that uniquely identifies the ConnectApp resource to update.
^CN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
The HTTP method to use when calling deauthorize_callback_url
.
GET
POST
The URL to call using the deauthorize_callback_method
to de-authorize the Connect App.
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
A public URL where users can obtain more information about this Connect App.
A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: get-all
and post-all
.
get-all
post-all
Not supported.
Not supported.
1/2010-04-01/Accounts/{AccountSid}/ConnectApps2
Returns a list of Connect App resource representations, each representing a Connect App in 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 listConnectApp() {11const connectApps = await client.connectApps.list({ limit: 20 });1213connectApps.forEach((c) => console.log(c.accountSid));14}1516listConnectApp();
1{2"connect_apps": [3{4"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"authorize_redirect_url": "http://example.com/redirect",6"company_name": "Twilio",7"deauthorize_callback_method": "GET",8"deauthorize_callback_url": "http://example.com/deauth",9"description": null,10"friendly_name": "Connect app for deletion",11"homepage_url": "http://example.com/home",12"permissions": [],13"sid": "CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",14"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps/CNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"15}16],17"end": 0,18"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json?Page=0&PageSize=50",19"next_page_uri": null,20"page": 0,21"page_size": 50,22"previous_page_uri": null,23"start": 0,24"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json?Page=0&PageSize=50"25}
Not Supported.
Not Supported.
Not Supported.