CredentialList Resource
The Credential Lists subresource represents the Credential List instances associated with this Trunk. If an INVITE
is received for a domain with a Credential List, Twilio will challenge the request. Your system will need to authenticate with a username and password. The username and password must be in one of the Credential Lists for the INVITE
to be accepted.
This API will only allow you to list, add, and remove the Credential Lists associated with your Trunk. To create, remove, or list the Credential Lists in your account, check out the Credential List reference docs.
CredentialList properties
Resource Properties in REST API format | |
---|---|
account_sid
|
The SID of the Account that created the CredentialList resource. |
sid
|
The unique string that we created to identify the CredentialList resource. |
trunk_sid
|
The SID of the Trunk the credential list in associated with. |
friendly_name
|
The string that you assigned to describe the resource. |
date_created
|
The date and time in GMT when the resource was created specified in RFC 2822 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in RFC 2822 format. |
url
|
The absolute URL of the resource. |
Create a CredentialList resource
https://trunking.twilio.com/v1/Trunks/{TrunkSid}/CredentialLists
Parameters
Parameters in REST API format | |
---|---|
trunk_sid
Path
|
The SID of the Trunk to associate the credential list with. |
credential_list_sid
Required
|
The SID of the Credential List that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. |
Example 1
Read multiple CredentialList resources
https://trunking.twilio.com/v1/Trunks/{TrunkSid}/CredentialLists
Parameters
Parameters in REST API format | |
---|---|
trunk_sid
Path
|
The SID of the Trunk from which to read the credential lists. |
Example 1
Delete a CredentialList resource
https://trunking.twilio.com/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}
Parameters
Parameters in REST API format | |
---|---|
trunk_sid
Path
|
The SID of the Trunk from which to delete the credential list. |
sid
Path
|
The unique string that we created to identify the CredentialList resource to delete. |
Example 1
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.