NAME
Twilio::Rest::Memory::V1::Identifier - The Identifier resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $identifier = $client->memory->v1->identifiers($store_id, $profile_id)->create(\%body);
for my $identifier ($client->memory->v1->identifiers($store_id, $profile_id)->read({}, 20)) {
...
}
my $identifier = $client->memory->v1->identifiers($store_id, $profile_id, $id_type)->fetch;
$client->memory->v1->identifiers($store_id, $profile_id, $id_type)->patch(\%body);
$client->memory->v1->identifiers($store_id, $profile_id, $id_type)->delete;
DESCRIPTION
This file holds IdentifierList, IdentifierPage, IdentifierContext, IdentifierInstance, CreateProfileIdentifier202ResponseInstance, CreateProfileIdentifier308ResponseInstance, PatchProfileIdentifier202ResponseInstance and DeleteProfileIdentifier202ResponseInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
IdentifierList
Returned by $client->memory->v1->identifiers($store_id, $profile_id). See also Twilio::ListResource.
create
my $identifier = $client->memory->v1->identifiers($store_id, $profile_id)->create(\%body);
Asynchronously attach a new identifier value to a profile. When multiple values exist for an idType, ordering, limits, and uniqueness checks are enforced by the corresponding identifier settings limitPolicy and reflect any normalization. If the identifier already exists and points to another profile, resolution rules or merge processes may apply. Use the identifier specific endpoint to inspect, update, or remove existing values. Returns a CreateProfileIdentifier202ResponseInstance when Twilio answers 202, and a CreateProfileIdentifier308ResponseInstance otherwise.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
idType-
Required. Identifier type as configured in the service's Identity Resolution Settings.
value-
Required. Raw value captured for the identifier. The service may normalize this value according to the
normalizationrule defined in the identifier settings before storage or matching (for example E.164 formatting for phone numbers).
read
my @records = $client->memory->v1->identifiers($store_id, $profile_id)->read(\%options, $limit, $page_size);
Retrieve all identifier types linked to a profile along with their stored values. Use this to audit which external keys (phone, email, externalId, etc.) are currently associated. Values are returned in the order enforced by each identifier settings limitPolicy and reflect any normalization applied by the service. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->memory->v1->identifiers($store_id, $profile_id)->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->memory->v1->identifiers($store_id, $profile_id)->page(\%options, $page_size, $page_token);
Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.
get_page
my $page = $client->memory->v1->identifiers($store_id, $profile_id)->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->memory->v1->identifiers($store_id, $profile_id)->get_context($id_type);
Returns a IdentifierContext, and makes no request.
IdentifierPage
A Twilio::Page of IdentifierInstance objects.
records_key
build_instance
Used by Twilio::Page.
IdentifierContext
Returned by $client->memory->v1->identifiers($store_id, $profile_id, $id_type). It makes no request until one of these methods is called.
fetch
my $identifier = $client->memory->v1->identifiers($store_id, $profile_id, $id_type)->fetch;
Retrieve all stored values for a specific identifier type on a profile. Values are normalized according to the configured identifier settings and returned in the order determined by its limitPolicy. Returns a CreateProfileIdentifier308ResponseInstance when Twilio answers 301, and a IdentifierInstance otherwise.
patch
my $identifier = $client->memory->v1->identifiers($store_id, $profile_id, $id_type)->patch(\%body);
Asynchronously replace one of the stored values associated with the identifier type on a profile. newValue is normalized according to the configured identifier settings. If the new identifier already exists and points to another profile, merge processes may apply. Returns a CreateProfileIdentifier308ResponseInstance when Twilio answers 308, and a PatchProfileIdentifier202ResponseInstance otherwise.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
idType-
Required. The identifier type to update (e.g., email, phone).
newValue-
Required. New value to store for the identifier. Normalization rules from the corresponding identifier settings apply.
oldValue-
Required. Existing stored value to replace.
delete
$client->memory->v1->identifiers($store_id, $profile_id, $id_type)->delete(\%options);
Asynchronously remove stored values for the identifier type. The optional removeAll query parameter allows bulk removal; otherwise the service selects a single value to delete using the identifier settings limitPolicy. Returns a CreateProfileIdentifier308ResponseInstance when Twilio answers 308, and a DeleteProfileIdentifier202ResponseInstance otherwise.
The options are:
remove_all-
When true, removes every stored value for the identifier type in a single operation. Defaults to false.
IdentifierInstance
See also Twilio::InstanceResource.
It has fetch, patch and delete, which work as they do on the context.
Its fields are:
- id_type
-
Identifier type defined in Identity Resolution Settings.
- values
-
Server managed collection of stored values for the identifier type. Identifier values are normalized according to the corresponding identifier settings and ordered chronologically.
CreateProfileIdentifier202ResponseInstance
Returned by create, for an answer that is not a Identifier. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
CreateProfileIdentifier308ResponseInstance
Returned by create, fetch, patch and delete, for an answer that is not a Identifier. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
- uri
-
No description in the specification.
PatchProfileIdentifier202ResponseInstance
Returned by patch, for an answer that is not a Identifier. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
DeleteProfileIdentifier202ResponseInstance
Returned by delete, for an answer that is not a Identifier. See also Twilio::InstanceResource.
Its fields are:
- message
-
No description in the specification.
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.