NAME

Twilio::Rest::Accounts::V1::SecondaryAuthToken - The SecondaryAuthToken resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $secondary_auth_token = $client->accounts->v1->secondary_auth_token->create(\%options);
$client->accounts->v1->secondary_auth_token->delete;

DESCRIPTION

Secondary Auth Token

This file holds SecondaryAuthTokenContext and SecondaryAuthTokenInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SecondaryAuthTokenContext

Returned by $client->accounts->v1->secondary_auth_token. It makes no request until one of these methods is called.

create

my $secondary_auth_token = $client->accounts->v1->secondary_auth_token->create(\%options);

Create a new secondary Auth Token. Returns a SecondaryAuthTokenInstance.

The options are:

suppress_email_notification

Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to false, so Twilio sends the email. Set to true when rotating Auth Tokens across many subaccounts.

delete

$client->accounts->v1->secondary_auth_token->delete(\%options);

Delete the secondary Auth Token from your account. Returns true.

The options are:

suppress_email_notification

Whether to suppress the email notification that Twilio sends to the owners and administrators of the account about this Auth Token change. Defaults to false, so Twilio sends the email. Set to true when rotating Auth Tokens across many subaccounts.

SecondaryAuthTokenInstance

See also Twilio::InstanceResource.

It has create and delete, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that the secondary Auth Token was created for.

date_created

The date and time in UTC when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in UTC when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

secondary_auth_token

The generated secondary Auth Token that can be used to authenticate future API requests.

url

The URI for this resource, relative to https://accounts.twilio.com

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.