NAME
Twilio::Rest::Api::V2010::Account::NewKey - The NewKey resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $new_key = $client->new_keys->create(\%options);
DESCRIPTION
API keys
This file holds NewKeyList and NewKeyInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
NewKeyList
Returned by $client->new_keys. See also Twilio::ListResource.
create
my $new_key = $client->new_keys->create(\%options);
Returns a NewKeyInstance.
The options are:
friendly_name-
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
NewKeyInstance
See also Twilio::InstanceResource.
Its fields are:
- date_created
-
The date and time in GMT that the API Key was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT that the new API Key was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
The string that you assigned to describe the resource.
- secret
-
The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth
password). Note that for security reasons, this field is ONLY returned when the API Key is first created. - sid
-
The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth
userwhen authenticating to the API.
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.