SIP CredentialList resources contain the credentials of the users who are allowed to reach your SIP Domain. We only allow traffic from users who have their credentials in the credential list.
For information about the individual Credential resources in the list, such as to create, list, read, update, or delete individual credentials, see the Credential Resource.
After you create a CredentialList resource, you will need to map it to your SIP domain for it to take effect. You can map a CredentialList to more than one SIP domain.
Your Account can have up to 100 CredentialList resources.
Each CredentialList resource can contain up to 1,000 unique users.
The unique id of the Account that owns this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The date that this resource was created, given as GMT in RFC 2822 format.
The date that this resource was last updated, given as GMT in RFC 2822 format.
A human readable descriptive text that describes the CredentialList, up to 64 characters long.
A 34 character string that uniquely identifies this resource.
^CL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A list of credentials associated with this credential list.
The URI for this resource, relative to https://api.twilio.com
.
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json
The unique id of the Account that is responsible for this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
A human readable descriptive text that describes the CredentialList, up to 64 characters long.
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 createSipCredentialList() {11const credentialList = await client.sip.credentialLists.create({12friendlyName: "friendly_name",13});1415console.log(credentialList.accountSid);16}1718createSipCredentialList();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"date_created": "Wed, 11 Sep 2013 17:51:38 +0000",4"date_updated": "Wed, 11 Sep 2013 17:51:38 +0000",5"friendly_name": "friendly_name",6"sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"subresource_uris": {8"credentials": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json"9},10"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"11}
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
The unique id of the Account that is responsible for this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The credential list Sid that uniquely identifies this resource
^CL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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 fetchSipCredentialList() {11const credentialList = await client.sip12.credentialLists("CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.fetch();1415console.log(credentialList.accountSid);16}1718fetchSipCredentialList();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"date_created": "Wed, 11 Sep 2013 17:51:38 +0000",4"date_updated": "Wed, 11 Sep 2013 17:51:38 +0000",5"friendly_name": "Low Rises",6"sid": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",7"subresource_uris": {8"credentials": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json"9},10"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"11}
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json
The unique id of the Account that is responsible for this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
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 listSipCredentialList() {11const credentialLists = await client.sip.credentialLists.list({ limit: 20 });1213credentialLists.forEach((c) => console.log(c.accountSid));14}1516listSipCredentialList();
1{2"credential_lists": [3{4"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"date_created": "Wed, 11 Sep 2013 17:51:38 +0000",6"date_updated": "Wed, 11 Sep 2013 17:51:38 +0000",7"friendly_name": "Low Rises",8"sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"subresource_uris": {10"credentials": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json"11},12"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"13}14],15"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists.json?PageSize=50&Page=0",16"next_page_uri": null,17"start": 0,18"end": 0,19"page": 0,20"page_size": 50,21"previous_page_uri": null,22"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists.json?PageSize=50&Page=0"23}
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
The unique id of the Account that is responsible for this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The credential list Sid that uniquely identifies this resource
^CL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
A human readable descriptive text for a CredentialList, up to 64 characters long.
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 updateSipCredentialList() {11const credentialList = await client.sip12.credentialLists("CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.update({ friendlyName: "friendly_name" });1415console.log(credentialList.accountSid);16}1718updateSipCredentialList();
1{2"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",3"date_created": "Wed, 11 Sep 2013 17:51:38 +0000",4"date_updated": "Wed, 11 Sep 2013 17:51:38 +0000",5"friendly_name": "friendly_name",6"sid": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",7"subresource_uris": {8"credentials": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Credentials.json"9},10"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"11}
DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
The unique id of the Account that is responsible for this resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The credential list Sid that uniquely identifies this resource
^CL[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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 deleteSipCredentialList() {11await client.sip12.credentialLists("CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.remove();14}1516deleteSipCredentialList();