NAME
Twilio::Rest::Api::V2010::Account::Sip::CredentialList::Credential - The Credential resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $credential = $client->sip->credential_lists($credential_list_sid)->credentials->create($username, $password);
for my $credential ($client->sip->credential_lists($credential_list_sid)->credentials->read({}, 20)) {
...
}
my $credential = $client->sip->credential_lists($credential_list_sid)->credentials($sid)->fetch;
$client->sip->credential_lists($credential_list_sid)->credentials($sid)->update(\%options);
$client->sip->credential_lists($credential_list_sid)->credentials($sid)->delete;
DESCRIPTION
Username and password information for SIP Domains
This file holds CredentialList, CredentialPage, CredentialContext and CredentialInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CredentialList
Returned by $client->sip->credential_lists($credential_list_sid)->credentials. See also Twilio::ListResource.
create
my $credential = $client->sip->credential_lists($credential_list_sid)->credentials->create($username, $password);
Create a new credential resource. Returns a CredentialInstance.
The required values are:
$username-
The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long.
$password-
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg
IWasAtSignal2018)
read
my @records = $client->sip->credential_lists($credential_list_sid)->credentials->read(\%options, $limit, $page_size);
Retrieve a list of credentials. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->sip->credential_lists($credential_list_sid)->credentials->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->sip->credential_lists($credential_list_sid)->credentials->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->sip->credential_lists($credential_list_sid)->credentials->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->sip->credential_lists($credential_list_sid)->credentials->get_context($sid);
Returns a CredentialContext, and makes no request.
CredentialPage
A Twilio::Page of CredentialInstance objects.
records_key
build_instance
Used by Twilio::Page.
CredentialContext
Returned by $client->sip->credential_lists($credential_list_sid)->credentials($sid). It makes no request until one of these methods is called.
fetch
my $credential = $client->sip->credential_lists($credential_list_sid)->credentials($sid)->fetch;
Fetch a single credential. Returns a CredentialInstance.
update
my $credential = $client->sip->credential_lists($credential_list_sid)->credentials($sid)->update(\%options);
Update a credential resource. Returns a CredentialInstance.
The options are:
password-
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg
IWasAtSignal2018)
delete
$client->sip->credential_lists($credential_list_sid)->credentials($sid)->delete;
Delete a credential resource. Returns true.
CredentialInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The unique id of the Account that is responsible for this resource.
- credential_list_sid
-
The unique id that identifies the credential list that includes this credential.
- date_created
-
The date that this resource was created, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date that this resource was last updated, given as GMT in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- sid
-
A 34 character string that uniquely identifies this resource.
- uri
-
The URI for this resource, relative to
https://api.twilio.com - username
-
The username for this credential.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.