NAME

Twilio::Rest::Iam::V1::GetApiKeys - The GetApiKeys resource

SYNOPSIS

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

for my $get_api_keys ($client->iam->v1->get_api_keys->read({}, 20)) {
  ...
}

DESCRIPTION

API keys

This file holds GetApiKeysList, GetApiKeysPage and GetApiKeysInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

GetApiKeysList

Returned by $client->iam->v1->get_api_keys. See also Twilio::ListResource.

read

my @records = $client->iam->v1->get_api_keys->read($account_sid, \%options, $limit, $page_size);

Retrieve a list of all Keys for a account. Returns the records as a list, fetching as many pages as it needs.

The required values are:

$account_sid

The SID of the Account that created the Payments resource.

The required values are kept with the options, so page takes them there.

stream

my $stream = $client->iam->v1->get_api_keys->stream($account_sid, \%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->iam->v1->get_api_keys->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->iam->v1->get_api_keys->get_page($url);

Fetches the page at a URL given by Twilio.

GetApiKeysPage

A Twilio::Page of GetApiKeysInstance objects.

records_key

build_instance

Used by Twilio::Page.

GetApiKeysInstance

See also Twilio::InstanceResource.

Its fields are:

date_created

The date and time in GMT that the resource 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 resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

flags

No description in the specification.

friendly_name

The string that you assigned to describe the resource.

sid

The unique string that we created to identify the Key resource.

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.